
Create one-way deterministic sensitivity analysis object
Source:R/dsa_oneway.R
create_dsa_oneway.RdThe object returned by this function can be passed to
owsa to do a one-way sensitivity analysis on each
parameter of interest.
Usage
create_dsa_oneway(
parameters,
effectiveness = NULL,
strategies,
cost = NULL,
currency = "$",
other_outcome = NULL
)Arguments
- parameters
parameter values associated with costs, effectiveness, or other outcomes. The table must have two columns, with each parameter name in the first column and the associated parameter value in the second column:
parameter value param1 name param1 val1 ... ... param2 name param2 val1 ... ... - strategies
vector with the names of the strategies, in the same order as the columns of the outcome data frames. Names are kept exactly as provided, so they can contain spaces and other characters (for example "Standard of care"), and are used as labels in tables and plots. They must be unique and not missing or empty. If
NULL, strategies are namedStrategy_1,Strategy_2, and so on.- 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
strategiesvector.- currency
symbol for the currency being used (ex. "$", "£")
Value
a class dsa_oneway object that can be passed to the owsa function
to visualize the one-way sensitivity analyses contained in the object.