run_twsa_det {dampack}  R Documentation 
This function runs a deterministic twoway 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,
...
)
params_range 
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 
params_basecase 
a named list of basecase values for input parameters needed by 
nsamp 
number of parameter values. If 
FUN 
Function that takes the basecase in 
outcomes 
String vector with the outcomes of interest from 
strategies 
vector of strategy names. The default (NULL) will use strategy names in FUN 
progress 

... 
Additional arguments to userdefined 
A list containing dataframes with the results of the sensitivity analyses. The list will contain a dataframe for each outcome specified.
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.