Description Usage Arguments Value Author(s) Examples
View source: R/reference_two_state_markov.R
This is a two state Markov model - modelling smoking cessation - used as a baseline and reference. Unlike other markov functions the reference functions contain all model setup, sampling, simulation and analysis code. It has been developed primarily using base R and makes use of a nested array structure. This array is then looped over using a series of nested for loops with a core loop running a the markov model for each sample and intervention. Profiling suggestions that this core loop may take the majority of compute time.
1 | reference_two_state_markov(cycles = NULL, samples = NULL)
|
cycles |
Numeric, the number of cycles (time horizon / cycle length). No default supplied. |
samples |
Numeric, the number of samples to use. No default supplied. |
A named list of cost effectiveness output.
Howard Thom
1 2 | ## Example model run
reference_two_state_markov(cycles = 10, samples = 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.