Description Usage Arguments Value Examples
View source: R/sample_markov.R
This model agnostic function samples a markov model specification. It wraps multiple approaches that may offer various advantages and disadvantages.
1 | sample_markov(markov_model = NULL, type = "rcpp", debug = FALSE, samples = 1)
|
markov_model |
A list of functions that define a markov model across multiple interventions. See |
type |
A character string specifying the approach to use to sample the model. Currently implemented approaches are "base" and "rcpp" with "rcpp" as the default. |
debug |
Logical, defaults to |
samples |
Numeric, defaults to 1. The number of samples to take from the Markov model |
A data.frame of samples of a model encoded in the SpeedyMarkov
format (see example_two_state_markov
for details).
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.