Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SEQTaRget/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: SEQTaRget
Type: Package
Title: Sequential Trial Emulation
Version: 1.1.0
Version: 1.1.1
Authors@R: c(person(given = "Ryan",
family = "O'Dea",
role = c("aut", "cre"),
Expand Down
3 changes: 3 additions & 0 deletions SEQTaRget/R/SEQopts.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ SEQopts <- function(bootstrap = FALSE, bootstrap.nboot = 100, bootstrap.sample =
weight.upper <- as.numeric(weight.upper)
weight.eligible_cols <- as.list(weight.eligible_cols)

# Temporarily disabling deviation - work in progress method
if (deviation) stop("Deviation is currently under further development and is currently not suitable for analysis.
We apologize for this inconvenience")
deviation.col <- as.character(deviation.col)
deviation.conditions <- as.list(deviation.conditions)
deviation.excused_cols <- as.list(deviation.excused_cols)
Expand Down
12 changes: 12 additions & 0 deletions SEQTaRget/tests/testthat/test_deviation.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
test_that("Post-Expansion Excused Censoring", {
data <- copy(SEQdata)
data[N > 10, deviation := TRUE]
model <- expect_error(SEQuential(data, "ID", "time", "eligible", "tx_init", "outcome",
list("N", "L", "P"), list("sex"),
method = "censoring",
options = SEQopts(
weighted = TRUE, deviation = TRUE,
deviation.col = "deviation",
weight.preexpansion = FALSE)
))
})
Loading