| compare_tna_models | R Documentation |
Compare multiple TNA estimators on the same sequences
compare_tna_models(
data,
models = c("tna", "ftna", "ctna", "atna"),
format = c("auto", "long", "wide"),
id = "id",
period = "period",
state = "state",
group = NULL,
...
)
data |
Sequence data accepted by |
models |
One or more TNA model types. |
format, id, period, state, group |
Input arguments passed to |
... |
Estimator arguments. |
A tidy edge-list simulab_sim base data.frame with one row per
model/group/edge and columns model, from, to, and weight
(with group inserted when group is supplied). A stacked model_info
table, one row per fitted model and group, is available through
as.data.frame(). The fitted native models are stored as a named list and
returned by as_tna_model().
data <- simulate_sequences(n = 40, n_states = 3, chain_length = 12, seed = 1)
if (requireNamespace("tna", quietly = TRUE)) {
compare_tna_models(data, models = c("tna", "ftna"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.