Lag Sequential Analysis, Dynamics, and Lag Transition Networks
Overview
A modern, tidy 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 a directed transfer-entropy measure. The lag sequential analysis framework follows Sackett and others (1979) doi:10.3758/BF03205679.
New features
transitions()now reads inference results, not only fitted models. It accepts the output ofbootstrap_lsa(),certainty_lsa(),stability_lsa(),permute_lsa(),compare_lsa(),bayes_compare_lsa()andlsa_lags(), and returns the same tidy one-row-per-transition data frame.significant = TRUEkeeps the transitions the method itself flags, andsort = "strength"orders them by that method's signed effect. Previously the per-transition table of an inference result was reachable only throughas.data.frame(), because the print methods show a header summary alone.- The
transitions()generic is nowtransitions(fit, ...), so each class declares only the arguments backed by columns it actually has. Existing calls on a fit are unaffected.
Show all changes in 0.32Hide the rest of the changes in 0.32
Documentation
- Vignettes restore the user's
options()after changingdigits, as CRAN requires. - Vignettes read every result with
transitions()rather than coercing it withas.data.frame(), and select rows with thesignificantargument rather than subsetting. - Removed the citations, reference lists, DOIs, documentation URLs and linked author metadata that 0.31 added to the shipped vignettes.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK7 OK2026-07-22
Documentation
- Help pages
- 39 (1 internal)includes a package overview page
- Examples that run
- 71%27 run in a plain check (1 of them under a condition) · 11 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 96%
- Return-value docs
- 100%
- Help pages citing references
- 23%
Downloads
Repository
Forks over time
Commits over time
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/mohsaqr/lagdynamics on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-16 · The repository has a site deploy workflow
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-05-13Named in .Rbuildignore: .claudeNamed in .gitignore: CLAUDE.mdCommits: at least 1 crediting it in the message
- Claude Opus 5.51 commit · Oct 2026
Dependencies
Code & Tests
Datasets
People & History
- 0.32Latest2026-07-21 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-07-21
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 138 KB / 4 files
- Download size
- 4.3 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("lagdynamics")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.