radpc {random.cdisc.data} | R Documentation |
Pharmacokinetics Analysis Dataset (ADPC)
Description
Function for generating a random Pharmacokinetics Analysis Dataset for a given
Subject-Level Analysis Dataset.
Usage
radpc(
adsl,
avalu = "ug/mL",
constants = c(D = 100, ka = 0.8, ke = 1),
duration = 2,
seed = NULL,
na_percentage = 0,
na_vars = list(AVAL = c(NA, 0.1)),
cached = FALSE
)
Arguments
adsl |
(data.frame ) Subject-Level Analysis Dataset (ADSL).
|
avalu |
(character ) Analysis value units.
|
constants |
(character vector ) Constant parameters to be used in formulas for creating analysis values.
|
duration |
(numeric ) Duration in number of days.
|
seed |
(numeric ) Seed to use for reproducible random number generation.
|
na_percentage |
(proportion ) Default percentage of values to be replaced by NA .
|
na_vars |
(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.
|
cached |
boolean whether the cached ADPC data cadpc should be returned or new data
should be generated. If set to TRUE then the other arguments to radpc will be ignored.
|
Details
One record per study, subject, parameter, and time point.
Value
data.frame
Examples
adsl <- radsl(N = 10, seed = 1, study_duration = 2)
adpc <- radpc(adsl, seed = 2)
adpc
adpc <- radpc(adsl, seed = 2, duration = 3)
adpc
[Package
random.cdisc.data version 0.3.16
Index]