test_that("Survival Return", { data <- copy(SEQdata) model <- SEQuential(data, "ID", "time", "eligible", "tx_init", "outcome", list("N", "L", "P"), list("sex"), method = "ITT", options = SEQopts(km.curves = TRUE)) expect_s4_class(model, "SEQoutput") expect_s3_class(model@survival.curve[[1]], "ggplot") }) test_that("Bootstrapped Survival", { data <- copy(SEQdata) model <- SEQuential(data, "ID", "time", "eligible", "tx_init", "outcome", list("N", "L", "P"), list("sex"), method = "ITT", options = SEQopts(km.curves = TRUE, bootstrap = TRUE, bootstrap.nboot = 2)) expect_s4_class(model, "SEQoutput") expect_s3_class(model@survival.curve[[1]], "ggplot") })