View source: R/check_ae_withdr_ds_discon.R
check_ae_withdr_ds_discon | R Documentation |
This checks that if there is an AE with AEACN="DRUG WITHDRAWN" then there should be a treatment discontinuation record indicated by DS.DSSCAT
check_ae_withdr_ds_discon(AE, DS, TS, preproc = identity, ...)
AE |
Adverse Events SDTM dataset with variables USUBJID, AEACN |
DS |
Disposition SDTM dataset with variables USUBJID, DSCAT, DSSCAT |
TS |
Trial Summary SDTM dataset with variables TSPARMCD, TSVAL |
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
Yuliia Bahatska
AE <- data.frame(
USUBJID = 1:6,
AEACN = c("DRUG WITHDRAWN",NA,NA,NA,NA,NA),
AETOXGR = c(NA,NA,NA,NA,"5",NA),
AEDECOD=c("NAUSEA","HEADACHE"),
AESPID = "FORMNAME-R:5/L:5XXXX"
)
DS <- data.frame(
USUBJID = 1:3,
DSCAT="DISPOSITION EVENT",
DSSCAT="STUDY TREATMENT",
DSDECOD=c("COMPLETED","ADVERSE EVENT","DEATH")
)
TS <- data.frame(
TSPARMCD="TRT",
TSVAL="CHECK"
)
check_ae_withdr_ds_discon(AE,DS,TS)
check_ae_withdr_ds_discon(AE,DS,TS,preproc=roche_derive_rave_row)
DS$DSSCAT = NULL
check_ae_withdr_ds_discon(AE,DS,TS)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.