Package: lagdynamics 0.1.0

Mohammed Saqr

lagdynamics: Lag Sequential Analysis, Dynamics, and Lag Transition Networks

A modern, tidy, pipe-friendly toolkit for lag sequential analysis and lag transition networks of categorical event and sequence data. It provides an accessible, unified workflow for fitting, inspecting, visualising, and comparing lagged transition patterns, with tidy outputs throughout. Includes confirmatory tools for uncertainty, robustness, and group differences, including bootstrap intervals, analytic certainty, split-half reliability, case-drop stability, permutation tests, and Bayesian group comparisons. Supports long-format event-log import, import from common sequence and state-sequence objects, multi-lag analysis, structural-zero constraints, transition and initial probabilities, plotting of transition structures, and an experimental directed transfer-entropy measure (Schreiber, 2000) <doi:10.1103/PhysRevLett.85.461>. Numerical methods are implemented from primary literature and cross-validated against base-R primitives and hand-formula identities.

Authors:Mohammed Saqr [aut, cre, cph]

lagdynamics_0.1.0.tar.gz
lagdynamics_0.1.0.zip(r-4.7)lagdynamics_0.1.0.zip(r-4.6)lagdynamics_0.1.0.zip(r-4.5)
lagdynamics_0.1.0.tgz(r-4.6-any)lagdynamics_0.1.0.tgz(r-4.5-any)
lagdynamics_0.1.0.tar.gz(r-4.7-any)lagdynamics_0.1.0.tar.gz(r-4.6-any)
lagdynamics_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
lagdynamics/json (API)

# Install 'lagdynamics' in R:
install.packages('lagdynamics', repos = c('https://mohsaqr.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mohsaqr/lagdynamics/issues

Datasets:

On CRAN:

Conda:

4.18 score 32 exports 0 dependencies

Last updated from:96b4e6fe34. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK165
source / vignettesOK246
linux-release-x86_64OK156
macos-release-arm64OK127
macos-oldrel-arm64OK155
windows-develOK139
windows-releaseOK118
windows-oldrelOK119
wasm-releaseOK111

Exports:bayes_compare_lsabootstrap_lsacertainty_lsacompare_lsaget_lsa_engineinitiallag_profilelist_lsa_engineslsalsa_bidirectionallsa_classicallsa_datalsa_ipflsa_lagslsa_nonparallel_dominancelsa_parallel_dominancelsa_transitionslsa_two_cellnodespermute_lsaplot_chordsplot_forestplot_polarplot_transitionsregister_lsa_enginereliability_lsastability_lsateststransfer_entropytransition_probabilitiestransitionsunregister_lsa_engine

Dependencies:

Lag transition networks
The data and the fitted model | Reading the model | The network | Inference | Summary | References

Last update: 2026-07-01
Started: 2026-07-01

A complete workflow: from sequences to a group comparison
The data: engagement trajectories | Fit | Read the fit | Plot - the full gallery | Residual heatmap | Residual network | Transition network (a TNA model) | Chord and sunburst | Verify and validate | Starting from a raw event log | Group | Compare the groups | In short

Last update: 2026-07-01
Started: 2026-06-19

Confirmatory testing: matching claims to evidence
A specific transition: edge-level uncertainty | A significant transition: robustness to information loss | The whole network: structural reliability | More than chance: an assumption-free null | Two groups: inference under exchangeability | In short

Last update: 2026-07-01
Started: 2026-06-20

Get started with lagdynamics
The Method | Why lagdynamics | Hands-On Tour | Fit | Read a Fit | Visualise | Get Data In | Lags | Groups | Validate and Confirm | Engines | Structural Zeros | Network Views | Related methods

Last update: 2026-07-01
Started: 2026-06-25

Plotting lag-sequential models
Residual heatmap | Residual network | Transition network (a TNA model) | Chord and sunburst | Uncertainty forests | Group comparison | Grouped fits | The worker functions | In short

Last update: 2026-07-01
Started: 2026-06-04

Readme and manuals

Help Manual

Help pageTopics
Human-AI Vibe Coding Interaction Eventsai_long
Tidy a Group Comparisonas.data.frame.lsa_comparison as.data.frame.lsa_comparison_pairwise
Tidy the Canonical Sequence Objectas.data.frame.lsa_data
Tidy the per-replicate split-half correlationsas.data.frame.lsa_reliability as.data.frame.lsa_reliability_group
Bayesian Comparison of Group Transition Structures (Dirichlet-Multinomial)bayes_compare_lsa
Bootstrap Confidence Intervals for an LSA Fitbootstrap_lsa
Analytic Certainty of Transition Edges (Dirichlet-Multinomial)certainty_lsa
Compare Groups' Transition Structurescompare_lsa
Student Engagement Trajectoriesengagement
Retrieve a Registered LSA Engineget_lsa_engine
Collaborative Learning Self-Regulation Sequencesgroup_regulation
Group Regulation Long Event Loggroup_regulation_long
Initial-State Distribution of an LSA Fit (Tidy)initial initial.lsa initial.lsa_group
Lag Profile of a Single Transitionlag_profile
List All Registered LSA Engineslist_lsa_engines
Lag Sequential Analysislsa lsa_bidirectional lsa_classical lsa_nonparallel_dominance lsa_parallel_dominance lsa_two_cell
Canonicalize Sequence Input for Lag Sequential Analysislsa_data
Iterative Proportional Fitting for Two-Way Tables with Structural Zeroslsa_ipf
Lag Sequential Analysis Across Several Lagslsa_lags
Tidy Transition Counts at a Given Laglsa_transitions
Nodes of an LSA Fit (Tidy)nodes nodes.lsa nodes.lsa_group
Permutation Test for an LSA Fitpermute_lsa
Circular (Chord) Diagram of an LSA Fitplot_chords
Circular Bootstrap Forest of an LSA Fitplot.lsa_bootstrap plot_forest
Polar Sunburst of an LSA Fitplot_polar
Plot the Transition Networkplot_transitions
Plot an LSA Fitplot.lsa plot.lsa_group
Plot an Analytic-Certainty Resultplot.lsa_certainty
Plot a Group Comparisonplot.lsa_comparison plot.lsa_comparison_pairwise
Register a Lag Sequential Analysis Engineregister_lsa_engine
Split-Half Reliability for an LSA Fitreliability_lsa reliability_lsa.lsa reliability_lsa.lsa_group
Case-Drop Stability for an LSA Fitstability_lsa
Tablewise Independence Tests of an LSA Fit (Tidy)tests tests.lsa tests.lsa_group
Directed transfer entropy for categorical sequences (experimental)transfer_entropy
Transition-Probability Matrix of an LSA Fittransition_probabilities transition_probabilities.lsa transition_probabilities.lsa_group
Transitions of an LSA Fit (Tidy)transitions transitions.lsa transitions.lsa_group
Remove a Registered LSA Engineunregister_lsa_engine