Skip to contents

Options that apply to all doses of a simulation, as on the app's Simulation page ("Transform Dose" and the infusion settings), for mvp_simulate(), mvp_sensitivity() and mvp_batch().

Usage

mvp_dose_options(
  weight_based = FALSE,
  wt_name = "WT",
  mw = NULL,
  mw_factor = 1e+06,
  model_duration = NULL,
  model_rate = NULL
)

Arguments

weight_based

If TRUE, doses are per kg: each dose is multiplied by the subject's weight (wt_name).

wt_name

Name of the weight parameter or covariate.

mw

Molecular weight (g/mol) to convert doses: each dose is divided by mw and multiplied by mw_factor. NULL (default): doses are used as given.

mw_factor

Multiplication factor for mw. The default, 1e6, converts mg to nmol (and mg/kg to nmol/kg).

model_duration, model_rate

Infusion duration (D_) or rate (R_) set in the model code. NULL (default) turns them on when the model code sets them, as the app does.

Value

An mvp_dose_options object.

Examples

mvp_dose_options(weight_based = TRUE)    # doses in mg/kg
#> <mvp_dose_options> doses per kg (WT)
mvp_dose_options(mw = 150000)            # doses in mg, model amounts in nmol
#> <mvp_dose_options> doses as given; divided by MW 150000 and multiplied by 1e+06