radsl {random.cdisc.data} | R Documentation |
Subject-Level Analysis Dataset (ADSL)
Description
The Subject-Level Analysis Dataset (ADSL) is used to provide the variables that describe attributes of a subject. ADSL is a source for subject-level variables used in other analysis data sets, such as population flags and treatment variables. There is only one ADSL per study. ADSL and its related metadata are required in a CDISC-based submission of data from a clinical trial even if no other analysis data sets are submitted.
Usage
radsl(
N = 400,
study_duration = 2,
seed = NULL,
with_trt02 = TRUE,
na_percentage = 0,
na_vars = list(AGE = NA, SEX = NA, RACE = NA, STRATA1 = NA, STRATA2 = NA, BMRKR1 =
c(seed = 1234, percentage = 0.1), BMRKR2 = c(1234, 0.1), BEP01FL = NA),
ae_withdrawal_prob = 0.05,
cached = FALSE
)
Arguments
N |
( |
study_duration |
( |
seed |
( |
with_trt02 |
( |
na_percentage |
( |
na_vars |
(
|
ae_withdrawal_prob |
( |
cached |
boolean whether the cached ADSL data |
Details
One record per subject.
Keys: STUDYID
, USUBJID
Value
data.frame
Examples
adsl <- radsl(N = 10, study_duration = 2, seed = 1)
adsl
adsl <- radsl(
N = 10, seed = 1,
na_percentage = 0.1,
na_vars = list(
DTHDT = c(seed = 1234, percentage = 0.1),
LSTALVDT = c(seed = 1234, percentage = 0.1)
)
)
adsl
adsl <- radsl(N = 10, seed = 1, na_percentage = .1)
adsl