sens_run: Run ad-hoc parameter sensitivity analyses with mrgsolve

Description Usage Arguments Examples

View source: R/sens_run.R

Description

Run ad-hoc parameter sensitivity analyses with mrgsolve

Usage

1
2
3
4
5
6
7
8
9
sens_run(
  mod,
  par = NULL,
  var = NULL,
  method = c("factor", "cv", "range", "manual"),
  vary = c("each", "grid"),
  ...,
  sargs = list()
)

Arguments

mod

a mrgsolve model object

par

parameter names for sensitivity analysis; this can be a character vector or a comma-separated string (see examples)

var

names of model output variables to include in simulated output; this could be the name of a compartment or another output derived inside of the model (e.g. DV or CP or logV, but is specific to what is coded into mod)

method

parameter sequence generation method

vary

use each to vary one parameter at a time or grid to vary all combinations of parameters

...

passed to method function

sargs

a named list of arguments passed to sens_each() or sens_grid() and eventually to mrgsolve::mrgsim()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
mod <- mrgsolve::house()

dose <- mrgsolve::ev(amt = 100)

sens_run(
  mod, 
  par = "CL,VC", 
  method = "cv", 
  vary = "each", 
  sargs = list(events = dose)
)

mrgsim.sa documentation built on Nov. 30, 2020, 5:08 p.m.