Skip to content

Commit

Permalink
reproduce disposition snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
wangben718 committed Aug 22, 2024
1 parent 0496ee0 commit 32c6bb9
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 135 deletions.
3 changes: 2 additions & 1 deletion R/meta_sl_example.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ meta_sl_example <- function() {
levels = c("F", "M"),
labels = c("Female", "Male")
)

set.seed(123)
# Create a variable EOSSTT indicating the end of end of study status
adsl$EOSSTT <- sample(x = c("Participants Ongoing", "Discontinued"),
size = length(adsl$USUBJID),
Expand Down Expand Up @@ -170,6 +170,7 @@ meta_sl_exposure_example <- function() {

adexsum$APERIODC <- "Base"
adexsum$APERIOD <- 1
set.seed(123)
adexsum$AVAL <- sample(x = 0:(24*7), size = length(adexsum$USUBJID), replace = TRUE)
adexsum$EXDURGR <- "not treated"
adexsum$EXDURGR[adexsum$AVAL>=1] <- ">=1 day"
Expand Down
134 changes: 67 additions & 67 deletions tests/testthat/_snaps/independent-testing-disposition/disposition1.rtf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 32c6bb9

Please sign in to comment.