| fit_tna_batch | R Documentation |
Fit TNA models to multiple datasets
fit_tna_batch(inputs, ...)
inputs |
List of sequence data frames, with at least one element.
Element names label the datasets; when |
... |
Arguments passed to |
A simulab_sim edge list with one row per dataset and transition: a
leading dataset column followed by the columns fit_tna() returns
(from, to, weight, and group when a grouped fit is requested). The
model_info component holds one row per dataset describing the fitted
model.
inputs <- list(
first = simulate_sequences(n = 30, n_states = 3, chain_length = 10, seed = 1),
second = simulate_sequences(n = 30, n_states = 3, chain_length = 10, seed = 2)
)
if (requireNamespace("tna", quietly = TRUE)) {
head(fit_tna_batch(inputs, model = "tna"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.