Description Usage Value Author(s) Examples
View source: R/example_two_state_markov.R
This is a two state Markov model - modelling smoking cessation - it was adapted from reference_two_state_markov
to use the SpeedyMarkov
framework. It essentially contains a list of functions that are then used to sample a markov model
that can then be simulated and analysed. Unlike reference_two_state_markov
this is not a standalone analysis pipeline
but instead represents a model definition.
1 |
A named list of functions that all require a samples argument and pass additional arguments (using ...). The list contains:
transitions_list: a list of transition functions, with the first taking the number of samples as an argument and the following being dependent on the a previous transition.
qalys: a function that samples the qaly cost for each intervention.
intervention_costs: a function that returns the costs for each intervention.
state_costs: a function that returns the state costs for each intervention.
cohorts: a function that returns the initial state for each intervention.
Please see the code for more details on each required list item.
Sam Abbott
1 2 | ## Example model run
example_two_state_markov()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.