Performs reliability analysis and outputs a concise summary of key metrics. The results can also be visualized.
Usage
reliability(x, ...)
# S3 method for class 'tna'
reliability(
x,
types = NULL,
split = 0.5,
iter = 1000,
scaling = "none",
actor = NULL,
...
)Arguments
- x
A
tnaobject. Grouped models with scaled edge weights, and their networks, are not resampled (an error of classtna_error_scaling).- ...
Ignored.
- types
A
charactervector giving the model types to fit. The defaultNULLuses the type ofx. For every type, the transitions are counted from the sequence data ofxas that type defines them, with the parameters (params) and scaling ofx. Seebuild_model()for the available types.- split
A
numericvalue between0and1specifying the proportion of data for the split. The default is0.5for an even split.- iter
An
integerspecifying number of iterations (splits). The default is1000.- scaling
A
characterstring naming the scaling applied to the weights of the two halves before they are compared. The default is"none". Seecompare()for the options.- actor
An optional actor identifier for sequences nested in actors: a
characterstring naming a non-sequence column of the data the model was built from, or a vector with one identifier per sequence. When given, the actors are split, so that all sequences of an actor fall in the same half, andsplitis the proportion of actors. The defaultNULLsplits single sequences.
Value
A tna_reliability object, which is a list with two tibbles:
metrics: One row per split and comparison metric, with the columnscategory,metric, andvalue(andmodel_typewhen severaltypesare given).summary: One row per metric with themean,sd,median,min,max, and quartiles (q25,q75) of the metric over the splits.
summary.tna_reliability() returns all metrics with their category as
a tidy table.
See also
Validation functions
bootstrap(),
deprune(),
estimate_cs(),
markov_order(),
permutation_test(),
permutation_test.group_tna(),
plot.group_tna_bootstrap(),
plot.group_tna_permutation(),
plot.group_tna_stability(),
plot.tna_bootstrap(),
plot.tna_markov_order(),
plot.tna_permutation(),
plot.tna_reliability(),
plot.tna_stability(),
print.group_tna_bootstrap(),
print.group_tna_permutation(),
print.group_tna_stability(),
print.summary.group_tna_bootstrap(),
print.summary.tna_bootstrap(),
print.summary.tna_markov_order(),
print.tna_bootstrap(),
print.tna_markov_order(),
print.tna_permutation(),
print.tna_reliability(),
print.tna_stability(),
prune(),
pruning_details(),
reprune(),
summary.group_tna_bootstrap(),
summary.tna_bootstrap(),
summary.tna_markov_order(),
summary.tna_permutation(),
summary.tna_reliability(),
summary.tna_stability()
Examples
# Small number of iterations for CRAN
model <- tna(engagement)
rel <- reliability(model, iter = 20)
