| assess_tna_reliability | R Documentation |
Splits the sequences at random into two halves, fits the same estimator to
each, and compares the two networks. Repeating that over iterations
independent splits shows how stable an estimate this much data supports.
assess_tna_reliability(
data,
model = c("tna", "ftna", "ctna", "atna"),
iterations = 100L,
split = 0.5,
format = c("auto", "long", "wide"),
id = "id",
period = "period",
state = "state",
seed = NULL,
...
)
data |
Sequence data accepted by |
model |
TNA estimator, one of |
iterations |
Number of random split halves. A single whole number of at
least 2, defaulting to |
split |
Fraction of the sequences assigned to the first half, rounded
down. A single number strictly between 0 and 1, defaulting to |
format, id, period, state |
Input-format arguments passed on when the
sequences are prepared: |
seed |
Optional seed. A single number, or |
... |
Arguments passed to |
A plain base data.frame, not a simulab_sim, with one row per
split, holding iteration, model and the compare_networks() agreement
metrics for the two halves.
data <- simulate_sequences(n = 40, n_states = 3, chain_length = 12, seed = 1)
if (requireNamespace("tna", quietly = TRUE)) {
assess_tna_reliability(data, model = "tna", iterations = 2, seed = 1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.