radpp {random.cdisc.data}R Documentation

Pharmacokinetics Parameters Dataset (ADPP)

Description

[Stable]

Function for generating a random Pharmacokinetics Parameters Dataset for a given Subject-Level Analysis Dataset.

Usage

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
)

Arguments

adsl

(data.frame)
Subject-Level Analysis Dataset (ADSL).

ppcat

(⁠character vector⁠)
Categories of parameters.

ppspec

(⁠character vector⁠)
Specimen material types.

paramcd

(⁠character vector⁠)
Parameter code values.

param

(⁠character vector⁠)
Parameter values.

paramu

(⁠character vector⁠)
Parameter unit values.

aval_mean

(⁠numeric vector⁠)
Mean values corresponding to each parameter.

visit_format

(character)
Type of visit. Options are "WEEK" and "CYCLE".

n_days

(integer)
Number of days in each cycle (only used if visit_format is "CYCLE").

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 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.

Details

One record per study, subject, parameter category, parameter and visit.

Value

data.frame

Examples

adsl <- radsl(N = 10, seed = 1, study_duration = 2)

adpp <- radpp(adsl, seed = 2)
adpp

[Package random.cdisc.data version 0.3.15 Index]