run_psa
calculates outcomes using a user-defined function and creates PSA objects
corresponding to the specified outcomes.
run_psa(
psa_samp,
params_basecase = NULL,
FUN,
outcomes = NULL,
strategies = NULL,
currency = "$",
progress = TRUE,
...
)
A dataframe with samples of parameters for a probabilistic sensitivity analysis (PSA)
a named list of basecase values for input parameters needed by FUN
,
the user-defined function.
Function that takes the parameter values in psa_samp
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
.
vector of strategy names. The default NULL
will use
strategy names in FUN
symbol for the currency being used (ex. "$", "<U+00A3>")
TRUE
or FALSE
for whether or not function progress
should be displayed in console.
Additional arguments to user-defined FUN
A list containing PSA objects for each outcome in outcomes
.