Package index
-
lagdynamicslagdynamics-package - lagdynamics: Lag Sequential Analysis, Dynamics, and Lag Transition Networks
Fitting models
Lag sequential analysis of sequences or event logs at one lag or at several, with a choice of engine.
-
lsa()lsa_classical()lsa_two_cell()lsa_bidirectional()lsa_parallel_dominance()lsa_nonparallel_dominance() - Fit a lag sequential analysis model
-
lsa_lags()print(<lsa_lags>)as.data.frame(<lsa_lags>) - Fit lag sequential analysis models at several lags
Preparing data
Canonical sequence data, transition counts and expected counts under structural zeros.
-
lsa_data() - Convert sequence input to the canonical form used by lag sequential analysis
-
as.data.frame(<lsa_data>)print(<lsa_data>) - Read the events of canonical sequence data as a table
-
lsa_transitions()print(<lsa_transitions>)as.data.frame(<lsa_transitions>) - Count transitions at a given lag
-
lsa_ipf() - Fit expected counts with structural zeros by iterative proportional fitting
-
transitions() - Read the transitions of a fit or an inference result
-
nodes() - Read the states of a lag sequential analysis fit
-
tests() - Read the tablewise tests of independence of a fit
-
initial() - Read the initial-state distribution of a fit
-
transition_probabilities() - Read the transition probabilities of a fit
-
lag_profile() - Trace one transition across lags
-
print(<lsa_group>)print(<lsa>)summary(<lsa>)print(<summary.lsa>)as.data.frame(<summary.lsa>)as.data.frame(<lsa>)as.data.frame(<lsa_group>)summary(<lsa_group>)nobs(<lsa>) - Print, summarise and tidy a lag sequential analysis fit
Evaluating transitions
Uncertainty, stability, reliability and a permutation null for the transitions of a fit.
-
bootstrap_lsa() - Estimate bootstrap confidence intervals for transitions
-
certainty_lsa()print(<lsa_certainty>)as.data.frame(<lsa_certainty_group>)print(<lsa_certainty_group>) - Compute the analytic certainty of transition probabilities
-
stability_lsa() - Assess the case-drop stability of significant transitions
-
reliability_lsa()print(<lsa_reliability_group>)print(<lsa_reliability>) - Estimate the split-half reliability of a lag transition network
-
as.data.frame(<lsa_reliability>)as.data.frame(<lsa_reliability_group>) - Read the tables of a split-half reliability result
-
permute_lsa() - Test transitions against no sequential structure by permutation
-
print(<lsa_bootstrap>)print(<lsa_permutation>)print(<lsa_stability>)as.data.frame(<lsa_bootstrap>)as.data.frame(<lsa_permutation>)as.data.frame(<lsa_stability>) - Print and read resampling results
Comparing groups
Transition-level differences between groups by permutation or by a Bayesian Dirichlet-multinomial contrast.
-
compare_lsa() - Compare transition structures between groups with a permutation test
-
bayes_compare_lsa()print(<lsa_bayes>)print(<lsa_bayes_pairwise>) - Compare transition probabilities between groups with a Bayesian model
-
as.data.frame(<lsa_comparison>)as.data.frame(<lsa_comparison_pairwise>)print(<lsa_comparison>)print(<lsa_comparison_pairwise>) - Read the tables of a group comparison
Plots
Residual heatmaps, lag transition networks, chord diagrams, sunbursts, uncertainty forests and comparison plots.
-
plot(<lsa>)plot(<lsa_group>) - Plot a lag sequential analysis fit
-
plot_transitions() - Plot a lag transition network
-
plot_chords() - Plot a chord diagram of transitions
-
plot_polar() - Plot a polar sunburst of transitions
-
plot_forest()plot(<lsa_bootstrap>) - Plot a circular forest of bootstrap confidence intervals
-
plot(<lsa_certainty>) - Plot credible intervals of transition probabilities
-
plot(<lsa_comparison>)plot(<lsa_comparison_pairwise>) - Plot a comparison of transitions between groups
Beyond LSA
Directed information transfer between states, and hand-off to transition network analysis.
-
transfer_entropy() - Estimate directed transfer entropy between categorical sequences
-
lsa_to_tna() - Convert a lag sequential analysis fit to a transition network for tna
-
list_lsa_engines() - List the registered engines
-
get_lsa_engine() - Retrieve a registered engine
-
register_lsa_engine() - Register a lag sequential analysis engine
-
unregister_lsa_engine() - Remove a registered engine
-
engagement - Engagement states of students over time
-
group_regulation - Regulation actions in collaborative learning, as sequences
-
group_regulation_long - Regulation actions in collaborative learning, as an event log
-
ai_long - Coded AI behaviours in human-AI programming sessions