raddv {random.cdisc.data} | R Documentation |
Protocol Deviations Analysis Dataset (ADDV)
Description
Function for generating random Protocol Deviations Analysis Dataset for a given Subject-Level Analysis Dataset.
Usage
raddv(
adsl,
max_n_dv = 3L,
p_dv = 0.15,
lookup = NULL,
seed = NULL,
na_percentage = 0,
na_vars = list(ASTDT = c(seed = 1234, percentage = 0.1), DVCAT = c(seed = 1234,
percentage = 0.1)),
cached = FALSE
)
Arguments
adsl |
( |
max_n_dv |
( |
p_dv |
( |
lookup |
( |
seed |
( |
na_percentage |
( |
na_vars |
(
|
cached |
boolean whether the cached ADDV data |
Details
One record per each record in the corresponding SDTM domain.
Keys: STUDYID
, USUBJID
, ASTDT
, DVTERM
, DVSEQ
Value
data.frame
Examples
adsl <- radsl(N = 10, seed = 1, study_duration = 2)
addv <- raddv(adsl, seed = 2)
addv