View source: R/check_ss_ssdtc_dead_ds.R
check_ss_ssdtc_dead_ds | R Documentation |
This check looks for missing death date in DS dataset if there is DEAD status date in SS dataset or if Subject Status Date/Time of Assessments is less than Start Date/Time of Disposition Event(SS.SSDTC < DS.DSSTDTC)
check_ss_ssdtc_dead_ds(SS, DS, preproc = identity, ...)
SS |
Subject Status SDTM dataset with variables USUBJID, SSDTC, SSSTRESC, VISIT |
DS |
Disposition SDTM dataset with variables USUBJID, DSSTDTC, DSDECOD, DSCAT |
preproc |
An optional company specific preprocessing script |
... |
Other arguments passed to methods |
boolean value if check failed or passed with 'msg' attribute if the test failed
Vira Vrakina
SS <- data.frame(
USUBJID = 1:5,
SSDTC = "2020-01-02",
SSSTRESC = c("DEAD","DEAD","ALIVE","DEAD","ALIVE"),
VISIT = "FOLLOW-UP",
SSSPID = "FORMNAME-R:13/L:13XXXX"
)
DS <- data.frame(
USUBJID = 1:5,
DSSTDTC = c("2020-01-02","2020-01-02", "2020-01-01", "2020-01-03", "2020-01-01"),
DSDECOD = c(rep('DEATH', 5)),
DSSPID = "FORMNAME-R:13/L:13XXXX",
DSCAT = c("OTHER EVENT", rep("DISPOSITION EVENT", 4))
)
check_ss_ssdtc_dead_ds(SS, DS)
check_ss_ssdtc_dead_ds(SS, DS, preproc=roche_derive_rave_row)
SS <- data.frame(
USUBJID = 1:5,
SSDTC = "2020-01-02",
SSSTRESC = c( rep("DEAD", 5)),
VISIT = "FOLLOW-UP",
SSSPID = "FORMNAME-R:13/L:13XXXX"
)
DS <- data.frame(
USUBJID = 1:5,
DSSTDTC = c("2020-01-02","2020-01-02", "2020-01-01", "2020-01-03", "2020-01-01"),
DSDECOD = c(rep('DEATH', 5)),
DSSPID = "FORMNAME-R:13/L:13XXXX",
DSCAT = c(rep("DISPOSITION EVENT", 5))
)
check_ss_ssdtc_dead_ds(SS, DS)
check_ss_ssdtc_dead_ds(SS, DS, preproc=roche_derive_rave_row)
SS <- data.frame(
USUBJID = 1:5,
SSDTC = "2020-01-02",
SSSTRESC = c(rep("DEAD", 5)),
VISIT = "FOLLOW-UP",
SSSPID = "FORMNAME-R:13/L:13XXXX"
)
DS <- data.frame(
USUBJID = 1:5,
DSSTDTC = 2,
DSDECOD = c(rep('DEATH', 5)),
DSSPID = "FORMNAME-R:13/L:13XXXX",
DSCAT = c(rep("DISPOSITION EVENT", 5))
)
check_ss_ssdtc_dead_ds(SS, DS)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.