Function for generating a random Anti-Drug Antibody Analysis Dataset for a given Subject-Level Analysis Dataset and Pharmacokinetics Analysis Dataset.
radab(
adsl,
adpc,
constants = c(D = 100, ka = 0.8, ke = 1),
paramcd = c("R1800000", "RESULT1", "R1800001", "RESULT2", "ADASTAT1", "INDUCD1",
"ENHANC1", "TRUNAFF1", "EMERNEG1", "EMERPOS1", "PERSADA1", "TRANADA1", "BFLAG1",
"TIMADA1", "ADADUR1", "ADASTAT2", "INDUCD2", "ENHANC2", "EMERNEG2", "EMERPOS2",
"BFLAG2", "TRUNAFF2"),
param = c("Antibody titer units", "ADA interpreted per sample result",
"Neutralizing Antibody titer units", "NAB interpreted per sample result",
"ADA Status of a patient", "Treatment induced ADA", "Treatment enhanced ADA",
"Treatment unaffected", "Treatment Emergent - Negative",
"Treatment Emergent - Positive", "Persistent ADA", "Transient ADA", "Baseline",
"Time to onset of ADA", "ADA Duration", "NAB Status of a patient",
"Treatment induced ADA, Neutralizing Antibody",
"Treatment enhanced ADA, Neutralizing Antibody",
"Treatment Emergent - Negative, Neutralizing Antibody",
"Treatment Emergent - Positive, Neutralizing Antibody",
"Baseline, Neutralizing Antibody", "Treatment unaffected, Neutralizing Antibody"),
avalu = c("titer", "", "titer", "", "", "", "", "", "", "", "", "", "", "weeks",
"weeks", "", "", "", "", "", "", ""),
seed = NULL,
na_percentage = 0,
na_vars = list(AVAL = c(NA, 0.1)),
cached = FALSE
)
data.frame
(data.frame
)
Subject-Level Analysis Dataset (ADSL).
(data.frame
)
Pharmacokinetics Analysis Dataset.
(character vector
)
Constant parameters to be used in formulas for creating analysis values.
(character vector
)
Parameter code values.
(character vector
)
Parameter values.
(character
)
Analysis value units.
(numeric
)
Seed to use for reproducible random number generation.
(proportion
)
Default percentage of values to be replaced by NA
.
(list
)
A named list where the name of each element is a column name of ds
. Each
element of this list should be a numeric vector with two elements:
seed
(numeric
)
The seed to be used for this element - can be NA
.
percentage
(proportion
)
Percentage of elements to be replaced with NA
.
If NA
, na_percentage
is used as a default.
boolean whether the cached ADAB data cadab
should be returned or new data
should be generated. If set to TRUE
then the other arguments to radab
will be ignored.
One record per study per subject per parameter per time point: "R1800000", "RESULT1", "R1800001", "RESULT2".
adsl <- radsl(N = 10, seed = 1, study_duration = 2)
adpc <- radpc(adsl, seed = 2, duration = 9 * 7)
adab <- radab(adsl, adpc, seed = 2)
adab
Run the code above in your browser using DataLab