reference_two_state_markov: Reference Two State Markov Model

Description Usage Arguments Value Author(s) Examples

View source: R/reference_two_state_markov.R

Description

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.

Usage

1
reference_two_state_markov(cycles = NULL, samples = NULL)

Arguments

cycles

Numeric, the number of cycles (time horizon / cycle length). No default supplied.

samples

Numeric, the number of samples to use. No default supplied.

Value

A named list of cost effectiveness output.

Author(s)

Howard Thom

Examples

1
2
## Example model run
reference_two_state_markov(cycles = 10, samples = 100)

seabbs/SpeedyMarkov documentation built on Dec. 26, 2019, 4:38 a.m.