Description Usage Arguments Value
View source: R/markov_wrapper.R
This is a wrapper function to calculate the outcome for every strategy.
1 2 3 4 5 6 | markov_decision_wrapper(
vary_param_ls = NULL,
other_input_ls = NULL,
userfun,
strategy_set
)
|
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()'. |
The function returns a 'data.frame' with first column as the strategies, the other columns are the outcomes of interest.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.