Implements lag sequential analysis of categorical event and sequence data. For each ordered pair of states it tests whether one state follows another at a given lag more or less often than expected under independence, reporting adjusted residuals, transitional probabilities and Yule's Q in tidy data frames. Five test engines are provided (classical, two-cell, bidirectional, parallel dominance and non-parallel dominance). Transitions can be evaluated with bootstrap intervals, analytic certainty, split-half reliability, case-drop stability and permutation tests, and groups compared by permutation or by a Bayesian Dirichlet-multinomial contrast. Supports long-format event logs, sequence objects, multiple lags, structural zeros, transition and initial probabilities, plots of lag transition networks, and a directed transfer-entropy measure. The method follows Sackett and others (1979) <doi:10.3758/BF03205679>.
| Version: | 0.35.0 |
| Depends: | R (≥ 4.1.0) |
| Imports: | cograph (≥ 2.3.6), ggplot2 (≥ 3.4.0), graphics, grDevices, grid, parallel, stats, utils |
| Suggests: | testthat (≥ 3.0.0), Nestimate, tna, knitr, rmarkdown |
| Published: | 2026-11-18 |
| DOI: | 10.32614/CRAN.package.lagdynamics |
| Author: | Mohammed Saqr |
| Maintainer: | Mohammed Saqr <saqr at saqr.me> |
| BugReports: | https://github.com/mohsaqr/lagdynamics/issues |
| License: | MIT + file LICENSE |
| URL: | https://github.com/mohsaqr/lagdynamics, https://pak.dynasite.org/lagdynamics/ |
| NeedsCompilation: | no |
| Language: | en-US |
| Materials: | README, NEWS |
| CRAN checks: | lagdynamics results |
| Reference manual: | lagdynamics.html , lagdynamics.pdf |
| Vignettes: |
Evaluating transitions (source, R code) Comparing groups (source, R code) Lag transition networks (source, R code) Lag sequential analysis (source, R code) |
| Package source: | lagdynamics_0.35.0.tar.gz |
| Windows binaries: | r-devel: lagdynamics_0.35.0.zip, r-release: lagdynamics_0.32.zip, r-oldrel: lagdynamics_0.32.zip |
| macOS binaries: | r-release (arm64): lagdynamics_0.35.0.tgz, r-oldrel (arm64): lagdynamics_0.35.0.tgz, r-release (x86_64): lagdynamics_0.35.0.tgz, r-oldrel (x86_64): lagdynamics_0.35.0.tgz |
| Old sources: | lagdynamics archive |
Please use the canonical form https://CRAN.R-project.org/package=lagdynamics to link to this page.