| random_group_tna | R Documentation |
Construct a fully-functional group_tna object from synthetic parameters.
Each group receives its own randomly drawn transition matrix and initial
probabilities over a shared alphabet, so groups have heterogeneous
dynamics by default. Per-group overrides allow custom group sizes,
sparsity, stickiness, or hand-supplied transition matrices.
random_group_tna(
n_groups = NULL,
group_names = NULL,
n_states = NULL,
states = NULL,
category = NULL,
alpha = NULL,
diag_boost = NULL,
n_sequences = NULL,
seq_length = NULL,
type = "relative",
per_group = NULL,
seed = NULL
)
n_groups |
An |
group_names |
An optional |
n_states |
An |
states |
An optional |
category |
An optional |
alpha |
A positive |
diag_boost |
A non-negative |
n_sequences |
An |
seq_length |
An |
type |
A |
per_group |
An optional |
seed |
An |
A group_tna object: a named list with one tna object per
group (see group_model()).
Other data:
import_data(),
import_onehot(),
list_random_state_pools(),
prepare_data(),
print.tna_data(),
random_tna(),
random_tna_mmm(),
simulate.group_tna(),
simulate.tna()
# Fresh random group model on every call
model <- random_group_tna()
# Explicit two-group engagement demo with per-group differences
model <- random_group_tna(
n_groups = 2,
n_states = 3,
category = "engagement",
per_group = list(
list(n_sequences = 400, diag_boost = 3),
list(n_sequences = 100, alpha = 0.3)
),
seed = 42
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.