lsa {mrgsim.sa} | R Documentation |
Perform local sensitivity analysis
Description
Perform local sensitivity analysis
Usage
lsa(mod, par, var, fun = .lsa_fun, eps = 1e-07, ...)
lsa_plot(x, ...)
Arguments
mod |
a mrgsolve model object. |
par |
parameter names as character vector or comma-separated string. |
var |
output names (compartment or capture) as character vector or comma-separated string. |
fun |
generating simulated for sensitivity analysis (see details). |
eps |
parameter change value for sensitivity analysis. |
... |
passed to |
x |
output from |
Value
A tibble with class lsa
.
Examples
mod <- mrgsolve::house(delta=0.1)
par <- "CL,VC,KA"
var <- "CP"
dose <- ev(amt = 100)
fun <- function(mod, ...) mrgsolve::mrgsim_e(mod, dose, output="df")
out <- lsa(mod, par, var, fun)
head(out)
lsa_plot(out)
[Package mrgsim.sa version 0.2.0 Index]