sens_fun: Run an ad-hoc sensitivity analysis

Description Usage Arguments Value See Also Examples

Description

Use sens_each() to examine sequences of parameters one at a time. Use sens_grid() to examine all combinations of sequences of parameters. The sens_each_data() and sens_grid_data() variants allow you to pass in a data set to simulate from.

Usage

1
2
3
4
5
6
7
sens_each(mod, idata = NULL, ...)

sens_each_data(mod, data, idata = NULL, ...)

sens_grid(mod, idata = NULL, ...)

sens_grid_data(mod, data, idata = NULL, ...)

Arguments

mod

an mrgsolve model object (usually read in with mrgsolve::mread())

idata

included only to prevent users from passing through; the function will create an idata set if appropriate

...

passed to mrgsolve::mrgsim_d()

data

a simulation input data set (see mrgsolve::data_set())

Value

A tibble-like object with class sens_each or sens_grid, depending on the vary method that was used. These objects will look just like a tibble, but they can be plotted with sens_plot().

See Also

sens_plot()

Examples

1
2
3
4
5
6
7
mod <- mrgsolve::house()

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

out_each <- parseq_cv(mod, CL, VC) %>% sens_each()

out_grid <- parseq_cv(mod, CL, VC) %>% sens_grid()

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