run_psa calculates outcomes using a user-defined function and creates PSA objects
corresponding to the specified outcomes.
Usage
run_psa(
psa_samp,
params_basecase = NULL,
FUN,
outcomes = NULL,
strategies = NULL,
currency = "$",
progress = TRUE,
...
)Arguments
- psa_samp
A data frame with samples of parameters for a probabilistic sensitivity analysis (PSA)
- params_basecase
a named list of base case values for input parameters needed by
FUN, the user-defined function.- FUN
Function that takes the parameter values in
psa_sampand...to produce theoutcomeof interest. TheFUNmust return a data frame where the first column are the strategy names and the rest of the columns must be outcomes.- outcomes
String vector with the outcomes of interest from
FUN.- strategies
vector of strategy names. The default
NULLwill use strategy names inFUN- currency
symbol for the currency being used (ex. "$", "£")
- progress
TRUEorFALSEfor whether or not function progress should be displayed in console.- ...
Additional arguments to user-defined
FUN
See also
run_psa,
make_psa_obj,
gen_psa_samp,
