markov_decision_wrapper: Wrapper function running a Markov model for each strategy.

Description Usage Arguments Value

View source: R/markov_wrapper.R

Description

This is a wrapper function to calculate the outcome for every strategy.

Usage

1
2
3
4
5
6
markov_decision_wrapper(
  vary_param_ls = NULL,
  other_input_ls = NULL,
  userfun,
  strategy_set
)

Arguments

vary_param_ls

This argument takes a list of parameters that are varied in deterministic or probabilistic sensitivity analyses. The list should be named and the length of each element should be 1. For example, 'list(par1 = 0.2, par2 = 0.3, par3 = 0.2)'.

other_input_ls

The argument is a named list. This argument takes parameters or data that do not change in deterministic or probablistic sensitivity analysis.

userfun

This is a user defined markov model function. See the example function 'markov_model()'.

strategy_set

The set of strategies that are embedded in the 'markov_model()'.

Value

The function returns a 'data.frame' with first column as the strategies, the other columns are the outcomes of interest.


syzoekao/CEAutil documentation built on Oct. 31, 2021, 12:29 a.m.