View source: R/05b_deterministic_analysis_functions.R
owsa_det | R Documentation |
This function runs a deterministic one-way sensitivity analysis (OWSA) on a given function that produces outcomes.
owsa_det(parms, ranges, nsamps = 100, params_basecase, FUN, outcome,
strategies = NULL, ...)
parms |
Vector with strings with the name of the parameters of interest |
ranges |
A named list of the form c("parm" = c(0, 1), ...) that gives
the ranges for the parameters of interest. The number of samples from this
range is determined by |
nsamps |
number of parameter values. If NULL, 100 parameter values are used |
params_basecase |
List with parameters for the base case |
FUN |
Function that takes |
outcome |
String with the outcome of interest produced by |
strategies |
vector of strategy names. The default (NULL) will use strategy names in FUN |
... |
Further arguments to FUN (not used) |
A dataframe with the results of the sensitivity analysis. Can be
visualized with plot.owsa
, owsa_opt_strat
and
owsa_tornado
from dampack
FUN must return a dataframe where the first column are the strategy names and the rest of the columns must be outcomes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.