sens_fun {mrgsim.sa} | R Documentation |
Run an ad-hoc sensitivity analysis
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
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
|
idata |
included only to prevent users from passing through; the
function will create an |
... |
passed to |
data |
a simulation input data set (see |
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
Examples
mod <- mrgsolve::house()
mod <- mrgsolve::ev(mod, amt = 100)
out_each <- parseq_cv(mod, CL, VC, .n = 3) %>% sens_each()
sens_plot(out_each, dv_name = "CP,RESP", layout = "facet_grid")
out_grid <- parseq_cv(mod, CL, VC) %>% sens_grid()
sens_plot(out_grid, dv_name = "CP")
[Package mrgsim.sa version 0.2.0 Index]