View source: R/educational_sequences.R
| generate_transition_system | R Documentation |
Generate a transition system
generate_transition_system(
n_states = 8L,
states = NULL,
concentration = 1,
diagonal_concentration = 0,
state_categories = c("metacognitive", "cognitive"),
seed = NULL,
batch = NULL
)
n_states |
Number of states. |
states |
Optional state labels. |
concentration |
Dirichlet concentration applied to every transition and to the initial-state probabilities. |
diagonal_concentration |
Optional extra concentration added to the
self-transition (diagonal) entries only. The default |
state_categories |
Learning-state categories the state labels are
drawn from with |
seed |
Optional random seed. |
batch |
Optional single positive whole number. When given, the
simulator runs |
A tidy transition-edge simulab_sim base data.frame with
n_states^2 rows and columns from, to, and probability; every
from state's probabilities sum to one. An initial_probabilities table
(state, probability) is available through as.data.frame().
result <- generate_transition_system(n_states = 3, seed = 1)
result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.