Description Usage Arguments Value Examples
Inner Markov Loop in base R
1 | markov_loop(sim = NULL, cohort, transition = NULL, duration = NULL)
|
sim |
Matrix with the same number of rows as the duration of the model and the same number of columns as the number of states in the model. |
cohort |
A vector containing the initial state. |
transition |
A transition matrix, see |
duration |
Numeric, how many long to run the model for. |
A matrix of the same size as the inputted sim matrix.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.