create_dsa_twoway: Create one-way deterministic sensitivity analysis object

Description Usage Arguments Value

View source: R/dsa_twoway.R

Description

The object returned by this function can be passed to owsa to do a one-way sensitivity analysis on each parameter of interest.

Usage

1
2
3
4
5
6
7
8
create_dsa_twoway(
  parameters,
  effectiveness = NULL,
  strategies,
  cost = NULL,
  currency = "$",
  other_outcome = NULL
)

Arguments

parameters

parameter values associated with effectiveness and outcomes. The table must have two columns, one for each parameter. The parameter names must be the column names.

param1 name param2 name
param1 val1 param2 val1
param1 val2 param2 val2
... ...
effectiveness

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 strategies vector.

strategies

vector with the names of the strategies. Due to requirements in certain uses of this vector, this function uses make.names to modify strategy names as necessary. It is strongly suggested that you follow the rules in the make.names help page, to avoid unexpected errors.

cost

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 strategies vector.

currency

symbol for the currency being used (ex. "$", "£")

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 strategies vector.

Value

a class dsa_twoway object that can be passed to the twsa function to visualize the two-way sensitivity analysis contained in the object.


DARTH-git/dampack documentation built on Aug. 8, 2021, 2:58 a.m.