Nothing
test_that("Pre-Expansion Excused Censoring - No excusedOne given", {
data <- copy(SEQdata)
model <- SEQuential(data, "ID", "time", "eligible", "tx_init", "outcome",
list("N", "L", "P"), list("sex"),
method = "censoring",
options = SEQopts(
weighted = TRUE, excused = TRUE,
excused.cols = c("excusedZero")))
expect_s4_class(model, "SEQoutput")
})
test_that("Pre-Expansion Excused Censoring - No excusedZero given", {
data <- copy(SEQdata)
model <- SEQuential(data, "ID", "time", "eligible", "tx_init", "outcome",
list("N", "L", "P"), list("sex"),
method = "censoring",
options = SEQopts(
weighted = TRUE, excused = TRUE,
excused.cols = c(NA, "excusedOne")))
expect_s4_class(model, "SEQoutput")
})
test_that("Unweighted Censoring and Dose-Reponse", {
data <- copy(SEQdata)
model <- SEQuential(data, "ID", "time", "eligible", "tx_init", "outcome", list("N", "L", "P"), list("sex"),
method = "censoring",
options = SEQopts(weighted = FALSE))
expect_s4_class(model, "SEQoutput")
})
test_that("ITT - Followup Class", {
data <- copy(SEQdata)[time <= 5, ]
model <- suppressWarnings(SEQuential(data, "ID", "time", "eligible", "tx_init", "outcome", list("N", "L", "P"), list("sex"),
method = "ITT",
options = SEQopts(followup.class = TRUE, followup.include = FALSE)))
expect_s4_class(model, "SEQoutput")
})
test_that("ITT - Followup Spline", {
data <- copy(SEQdata)
model <- SEQuential(data, "ID", "time", "eligible", "tx_init", "outcome", list("N", "L", "P"), list("sex"),
method = "ITT",
options = SEQopts(followup.spline = TRUE, followup.include = FALSE))
expect_s4_class(model, "SEQoutput")
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.