This function runs a deterministic two-way sensitivity analysis (TWSA) on a given function that produces outcomes.
run_twsa_det(
params_range,
params_basecase,
nsamp = 40,
FUN,
outcomes = NULL,
strategies = NULL,
progress = TRUE,
...
)
A list containing dataframes with the results of the sensitivity analyses. The list will contain a dataframe for each outcome specified.
data.frame with 2 rows and 3 columns in the following order: "pars",
"min", and "max". The number of samples from this range is
determined by nsamp
. "pars" are the 2 parameters of interest, which must be a subset of
the parameters from params_basecase
.
a named list of base case values for input parameters needed by FUN
,
the user-defined function.
number of parameter values. If NULL
, 40 parameter values are
used
Function that takes the base case in params_all
and ...
to
produce the outcome
of interest. The FUN
must return a dataframe
where the first column are the strategy names and the rest of the columns must be outcomes.
String vector with the outcomes of interest from FUN
produced by nsamp
vector of strategy names. The default (NULL) will use strategy names in FUN
TRUE
or FALSE
for whether or not function progress
should be displayed in console.
Additional arguments to user-defined FUN
params_range
"pars" are the names of the two input parameters of interest. The two variables in "pars" column
must be a subset of variables in params_basecase
"min" and "max" are the mininum and maximum values of the parameters of interest.