| random_tna_mmm | R Documentation |
Construct a synthetic tna_mmm object that mirrors the structure a
fitted seqHMM mixed Markov model exposes to tna without depending on
seqHMM at runtime. The returned object can be passed to
group_model() (dispatching via group_model.tna_mmm) and to
mmm_stats() (dispatching via mmm_stats.tna_mmm).
Real seqHMM mhmm objects continue to dispatch via the original
*.mhmm methods.
random_tna_mmm(
n_clusters = NULL,
n_states = NULL,
states = NULL,
category = NULL,
alpha = NULL,
diag_boost = NULL,
n_sequences = NULL,
seq_length = NULL,
n_covariates = 1L,
seed = NULL
)
n_clusters |
An |
n_states |
An |
states |
An optional |
category |
An optional |
alpha |
A positive |
diag_boost |
A non-negative |
n_sequences |
An |
seq_length |
An |
n_covariates |
An |
seed |
An |
An object of class tna_mmm containing fields
observations, transition_probs, initial_probs, coefficients,
vcov, most_probable_cluster, cluster_names, state_names,
n_clusters, n_states, n_sequences, n_covariates.
Other data:
import_data(),
import_onehot(),
list_random_state_pools(),
prepare_data(),
print.tna_data(),
random_group_tna(),
random_tna(),
simulate.group_tna(),
simulate.tna()
model <- random_tna_mmm(seed = 1)
mmm_stats(model)
grp <- group_model(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.