create_sa {dampack} | R Documentation |
A generic sensitivity analysis object
Description
This function is called by make_psa_obj
,
create_dsa_oneway
,
and create_dsa_oneway
, and checks the structure of
each of the arguments before creating an SA object.
Usage
create_sa(
parameters,
parnames,
effectiveness,
strategies,
cost,
currency,
other_outcome
)
Arguments
parameters |
a data frame with parameter values for each model run. Each
column should represent a different parameter, and each row should represent a
simulation (in the same order as |
parnames |
names for the parameters. |
strategies |
vector with the names of the strategies. Due to requirements in
certain uses of this vector, this function uses |
cost , effectiveness , other_outcome |
data frames containing data for costs,
effectiveness or another outcome (user-defined), respectively.
Each simulation should be a row of the data frame, and each strategy should be a column.
Naming the columns of the data frames is not necessary, as they will be renamed with
the |
currency |
symbol for the currency being used (ex. "$", "£") |
Value
returns "sa" sensitivity analysis object.