View source: R/time_series_model.R
| markov_two_states | R Documentation |
missingness_model)Constructs a missingness_model representing a two-state Markov process
for missing/observed indicators. The process takes values in {0, 1},
where 1 indicates observed and 0 indicates missing.
markov_two_states(p1 = NULL, p2 = NULL)
p1 |
Transition probability from observed (1) to missing (0). |
p2 |
Transition probability from missing (0) to observed (1). |
A missingness_model object.
mod <- markov_two_states(p1 = 0.05, p2 = 0.95)
mod
z <- generate(mod, n = 200, seed = 123)
plot(z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.