Function for generating a random Pharmacokinetics Parameters Dataset for a given Subject-Level Analysis Dataset.
radpp(
adsl,
ppcat = c("Plasma Drug X", "Plasma Drug Y", "Metabolite Drug X", "Metabolite Drug Y"),
ppspec = c("Plasma", "Plasma", "Plasma", "Matrix of PD", "Matrix of PD", "Urine",
"Urine", "Urine", "Urine"),
paramcd = c("AUCIFO", "CMAX", "CLO", "RMAX", "TON", "RENALCL", "RENALCLD", "RCAMINT",
"RCPCINT"),
param = c("AUC Infinity Obs", "Max Conc", "Total CL Obs", "Time of Maximum Response",
"Time to Onset", "Renal CL", "Renal CL Norm by Dose", "Amt Rec from T1 to T2",
"Pct Rec from T1 to T2"),
paramu = c("day*ug/mL", "ug/mL", "ml/day/kg", "hr", "hr", "L/hr", "L/hr/mg", "mg",
"%"),
aval_mean = c(200, 30, 5, 10, 3, 0.05, 0.005, 1.5613, 15.65),
visit_format = "CYCLE",
n_days = 2L,
seed = NULL,
na_percentage = 0,
na_vars = list(AVAL = c(NA, 0.1)),
cached = FALSE
)
data.frame
(data.frame
)
Subject-Level Analysis Dataset (ADSL).
(character vector
)
Categories of parameters.
(character vector
)
Specimen material types.
(character vector
)
Parameter code values.
(character vector
)
Parameter values.
(character vector
)
Parameter unit values.
(numeric vector
)
Mean values corresponding to each parameter.
(character
)
Type of visit. Options are "WEEK" and "CYCLE".
(integer
)
Number of days in each cycle (only used if visit_format
is "CYCLE").
(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 ADPP data cadpp
should be returned or new data
should be generated. If set to TRUE
then the other arguments to radpp
will be ignored.
One record per study, subject, parameter category, parameter and visit.
adsl <- radsl(N = 10, seed = 1, study_duration = 2)
adpp <- radpp(adsl, seed = 2)
adpp
Run the code above in your browser using DataLab