Function for generating a random Hy's Law Analysis Dataset for a given Subject-Level Analysis Dataset.
radhy(
adsl,
param = c("TBILI <= 2="" times="" uln="" and="" alt="" value="" category",="" "tbili=""> 2 times ULN and AST value category",
"TBILI > 2 times ULN and ALT value category",
"TBILI <= 2="" times="" uln="" and="" ast="" value="" category",="" "tbili=""> 2 times ULN and ALKPH <= 2="" times="" uln="" and="" alt="" value="" category",="" "tbili=""> 2 times ULN and ALKPH <= 2="" times="" uln="" and="" ast="" value="" category",="" "tbili=""> 2 times ULN and ALKPH <= 5="" times="" uln="" and="" alt="" value="" category",="" "tbili=""> 2 times ULN and ALKPH <= 5="" times="" uln="" and="" ast="" value="" category",="" "tbili="" <="2" two="" consecutive="" elevations="" of="" alt="" in="" relation="" to="" uln",=""> 2 times ULN and two consecutive elevations of AST in relation to ULN",
"TBILI <= 2="" times="" uln="" and="" two="" consecutive="" elevations="" of="" ast="" in="" relation="" to="" uln",="" "tbili=""> 2 times ULN and two consecutive elevations of ALT in relation to ULN",
"TBILI > 2 times ULN and two consecutive elevations of ALT in relation to Baseline",
"TBILI <= 2="" times="" uln="" and="" two="" consecutive="" elevations="" of="" alt="" in="" relation="" to="" baseline",="" "tbili=""> 2 times ULN and two consecutive elevations of AST in relation to Baseline",
"TBILI <= 2="" times="" uln="" and="" two="" consecutive="" elevations="" of="" ast="" in="" relation="" to="" baseline",="" "alt=""> 3 times ULN by Period", "AST > 3 times ULN by Period",
"ALT or AST > 3 times ULN by Period", "ALT > 3 times Baseline by Period",
"AST > 3 times Baseline by Period", "ALT or AST > 3 times Baseline by Period"),
paramcd = c("BLAL", "BGAS", "BGAL", "BLAS", "BA2AL", "BA2AS", "BA5AL", "BA5AS",
"BL2AL2CU", "BG2AS2CU", "BL2AS2CU", "BG2AL2CU", "BG2AL2CB", "BL2AL2CB", "BG2AS2CB",
"BL2AS2CB", "ALTPULN", "ASTPULN", "ALTASTPU", "ALTPBASE", "ASTPBASE", "ALTASTPB"),
seed = NULL,
cached = FALSE
)=>=>=>=>=>=>=>=>=>
data.frame
(data.frame
)
Subject-Level Analysis Dataset (ADSL).
(character vector
)
Parameter values.
(character vector
)
Parameter code values.
(numeric
)
Seed to use for reproducible random number generation.
boolean whether the cached ADHY data cadhy
should be returned or new data
should be generated. If set to TRUE
then the other arguments to radhy
will be ignored.
wojciakw
One record per subject per parameter per analysis visit per analysis date.
Keys: STUDYID
, USUBJID
, PARAMCD
, AVISITN
, ADTM
, SRCSEQ
adsl <- radsl(N = 10, seed = 1, study_duration = 2)
adhy <- radhy(adsl, seed = 2)
adhy
Run the code above in your browser using DataLab