{
  "_id": "6a4585a96ff6f2357552bffa",
  "Package": "lagdynamics",
  "Title": "Lag Sequential Analysis, Dynamics, and Lag Transition Networks",
  "Version": "0.1.0",
  "Authors@R": "person(\"Mohammed\", \"Saqr\", email = \"saqr@saqr.me\",\nrole = c(\"aut\", \"cre\", \"cph\"))",
  "Description": "A modern, tidy, pipe-friendly toolkit for lag sequential\nanalysis and lag transition networks of categorical event and\nsequence data. It provides an accessible, unified workflow for\nfitting, inspecting, visualising, and comparing lagged\ntransition patterns, with tidy outputs throughout. Includes\nconfirmatory tools for uncertainty, robustness, and group\ndifferences, including bootstrap intervals, analytic certainty,\nsplit-half reliability, case-drop stability, permutation tests,\nand Bayesian group comparisons. Supports long-format event-log\nimport, import from common sequence and state-sequence objects,\nmulti-lag analysis, structural-zero constraints, transition and\ninitial probabilities, plotting of transition structures, and\nan experimental directed transfer-entropy measure (Schreiber,\n2000) <doi:10.1103/PhysRevLett.85.461>. Numerical methods are\nimplemented from primary literature and cross-validated against\nbase-R primitives and hand-formula identities.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/mohsaqr/lagdynamics,\nhttps://saqr.me/lagdynamics/",
  "BugReports": "https://github.com/mohsaqr/lagdynamics/issues",
  "Language": "en-US",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Repository": "https://mohsaqr.r-universe.dev",
  "Date/Publication": "2026-07-01 20:11:42 UTC",
  "RemoteUrl": "https://github.com/mohsaqr/lagdynamics",
  "RemoteRef": "HEAD",
  "RemoteSha": "96b4e6fe344c6f2d115764cf2f5ba8726c583989",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-01 21:21:20 UTC",
    "User": "root"
  },
  "Author": "Mohammed Saqr [aut, cre, cph]",
  "Maintainer": "Mohammed Saqr <saqr@saqr.me>",
  "MD5sum": "6639d644f6cbfb33955b299acb45c5ed",
  "_user": "mohsaqr",
  "_type": "src",
  "_file": "lagdynamics_0.1.0.tar.gz",
  "_fileid": "f3fdf3bf131365a76156518df7b29b0e8f0f89f54deeedd79c245de66ec2299d",
  "_filesize": 11030437,
  "_sha256": "f3fdf3bf131365a76156518df7b29b0e8f0f89f54deeedd79c245de66ec2299d",
  "_created": "2026-07-01T21:21:20.000Z",
  "_published": "2026-07-01T21:24:57.716Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 84640042419,
      "time": 165,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8022918338"
    },
    {
      "job": 84640042436,
      "time": 156,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8022915534"
    },
    {
      "job": 84640042469,
      "time": 155,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8022914300"
    },
    {
      "job": 84640042495,
      "time": 127,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8022906196"
    },
    {
      "job": 84639353017,
      "time": 246,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8022864047"
    },
    {
      "job": 84640042425,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8022900870"
    },
    {
      "job": 84640042485,
      "time": 139,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8022909441"
    },
    {
      "job": 84640042455,
      "time": 119,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8022903613"
    },
    {
      "job": 84640042542,
      "time": 118,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8022903061"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/28548369598",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mohsaqr/lagdynamics",
  "_commit": {
    "id": "96b4e6fe344c6f2d115764cf2f5ba8726c583989",
    "author": "mohsaqr <hamada@saqr.me>",
    "committer": "mohsaqr <hamada@saqr.me>",
    "message": "pkgdown: use github.io url (avoid claiming the saqr.me apex CNAME)\n",
    "time": 1782936702
  },
  "_maintainer": {
    "name": "Mohammed Saqr",
    "email": "saqr@saqr.me",
    "login": "loxavian",
    "description": "",
    "uuid": 52792889
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "grid",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "cograph",
      "version": ">= 2.3.6",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    }
  ],
  "_owner": "mohsaqr",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-20",
      "n": 1
    },
    {
      "week": "2026-23",
      "n": 3
    },
    {
      "week": "2026-24",
      "n": 2
    },
    {
      "week": "2026-25",
      "n": 6
    },
    {
      "week": "2026-26",
      "n": 2
    },
    {
      "week": "2026-27",
      "n": 9
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "mohsaqr",
      "count": 23,
      "uuid": 194697827
    }
  ],
  "_userbio": {
    "uuid": 194697827,
    "type": "user",
    "name": "Mohammed Saqr",
    "followers": 8,
    "description": "Professor of Computer Science"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/lagdynamics"
  },
  "_devurl": "https://github.com/mohsaqr/lagdynamics",
  "_searchresults": 0,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/lagdynamics.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "bayes_compare_lsa",
    "bootstrap_lsa",
    "certainty_lsa",
    "compare_lsa",
    "get_lsa_engine",
    "initial",
    "lag_profile",
    "list_lsa_engines",
    "lsa",
    "lsa_bidirectional",
    "lsa_classical",
    "lsa_data",
    "lsa_ipf",
    "lsa_lags",
    "lsa_nonparallel_dominance",
    "lsa_parallel_dominance",
    "lsa_transitions",
    "lsa_two_cell",
    "nodes",
    "permute_lsa",
    "plot_chords",
    "plot_forest",
    "plot_polar",
    "plot_transitions",
    "register_lsa_engine",
    "reliability_lsa",
    "stability_lsa",
    "tests",
    "transfer_entropy",
    "transition_probabilities",
    "transitions",
    "unregister_lsa_engine"
  ],
  "_datasets": [
    {
      "name": "ai_long",
      "title": "Human-AI Vibe Coding Interaction Events",
      "object": "ai_long",
      "class": [
        "data.frame"
      ],
      "fields": [
        "message_id",
        "project",
        "session_id",
        "timestamp",
        "session_date",
        "code",
        "cluster",
        "code_order",
        "order_in_session"
      ],
      "rows": 8551,
      "table": true,
      "tojson": true
    },
    {
      "name": "engagement",
      "title": "Student Engagement Trajectories",
      "object": "engagement",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9",
        "10",
        "11",
        "12",
        "13",
        "14",
        "15"
      ],
      "rows": 138,
      "table": true,
      "tojson": true
    },
    {
      "name": "group_regulation",
      "title": "Collaborative Learning Self-Regulation Sequences",
      "object": "group_regulation",
      "class": [
        "data.frame"
      ],
      "fields": [
        "T1",
        "T2",
        "T3",
        "T4",
        "T5",
        "T6",
        "T7",
        "T8",
        "T9",
        "T10",
        "T11",
        "T12",
        "T13",
        "T14",
        "T15",
        "T16",
        "T17",
        "T18",
        "T19",
        "T20",
        "T21",
        "T22",
        "T23",
        "T24",
        "T25",
        "T26"
      ],
      "rows": 2000,
      "table": true,
      "tojson": true
    },
    {
      "name": "group_regulation_long",
      "title": "Group Regulation Long Event Log",
      "object": "group_regulation_long",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Actor",
        "Achiever",
        "Group",
        "Course",
        "Time",
        "Action"
      ],
      "rows": 27533,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ai_long",
      "title": "Human-AI Vibe Coding Interaction Events",
      "topics": [
        "ai_long"
      ]
    },
    {
      "page": "as.data.frame.lsa_comparison",
      "title": "Tidy a Group Comparison",
      "topics": [
        "as.data.frame.lsa_comparison",
        "as.data.frame.lsa_comparison_pairwise"
      ]
    },
    {
      "page": "as.data.frame.lsa_data",
      "title": "Tidy the Canonical Sequence Object",
      "topics": [
        "as.data.frame.lsa_data"
      ]
    },
    {
      "page": "as.data.frame.lsa_reliability",
      "title": "Tidy the per-replicate split-half correlations",
      "topics": [
        "as.data.frame.lsa_reliability",
        "as.data.frame.lsa_reliability_group"
      ]
    },
    {
      "page": "bayes_compare_lsa",
      "title": "Bayesian Comparison of Group Transition Structures (Dirichlet-Multinomial)",
      "topics": [
        "bayes_compare_lsa"
      ]
    },
    {
      "page": "bootstrap_lsa",
      "title": "Bootstrap Confidence Intervals for an LSA Fit",
      "topics": [
        "bootstrap_lsa"
      ]
    },
    {
      "page": "certainty_lsa",
      "title": "Analytic Certainty of Transition Edges (Dirichlet-Multinomial)",
      "topics": [
        "certainty_lsa"
      ]
    },
    {
      "page": "compare_lsa",
      "title": "Compare Groups' Transition Structures",
      "topics": [
        "compare_lsa"
      ]
    },
    {
      "page": "engagement",
      "title": "Student Engagement Trajectories",
      "topics": [
        "engagement"
      ]
    },
    {
      "page": "get_lsa_engine",
      "title": "Retrieve a Registered LSA Engine",
      "topics": [
        "get_lsa_engine"
      ]
    },
    {
      "page": "group_regulation",
      "title": "Collaborative Learning Self-Regulation Sequences",
      "topics": [
        "group_regulation"
      ]
    },
    {
      "page": "group_regulation_long",
      "title": "Group Regulation Long Event Log",
      "topics": [
        "group_regulation_long"
      ]
    },
    {
      "page": "initial",
      "title": "Initial-State Distribution of an LSA Fit (Tidy)",
      "topics": [
        "initial",
        "initial.lsa",
        "initial.lsa_group"
      ]
    },
    {
      "page": "lag_profile",
      "title": "Lag Profile of a Single Transition",
      "topics": [
        "lag_profile"
      ]
    },
    {
      "page": "list_lsa_engines",
      "title": "List All Registered LSA Engines",
      "topics": [
        "list_lsa_engines"
      ]
    },
    {
      "page": "lsa",
      "title": "Lag Sequential Analysis",
      "topics": [
        "lsa",
        "lsa_bidirectional",
        "lsa_classical",
        "lsa_nonparallel_dominance",
        "lsa_parallel_dominance",
        "lsa_two_cell"
      ]
    },
    {
      "page": "lsa_data",
      "title": "Canonicalize Sequence Input for Lag Sequential Analysis",
      "topics": [
        "lsa_data"
      ]
    },
    {
      "page": "lsa_ipf",
      "title": "Iterative Proportional Fitting for Two-Way Tables with Structural Zeros",
      "topics": [
        "lsa_ipf"
      ]
    },
    {
      "page": "lsa_lags",
      "title": "Lag Sequential Analysis Across Several Lags",
      "topics": [
        "lsa_lags"
      ]
    },
    {
      "page": "lsa_transitions",
      "title": "Tidy Transition Counts at a Given Lag",
      "topics": [
        "lsa_transitions"
      ]
    },
    {
      "page": "nodes",
      "title": "Nodes of an LSA Fit (Tidy)",
      "topics": [
        "nodes",
        "nodes.lsa",
        "nodes.lsa_group"
      ]
    },
    {
      "page": "permute_lsa",
      "title": "Permutation Test for an LSA Fit",
      "topics": [
        "permute_lsa"
      ]
    },
    {
      "page": "plot_chords",
      "title": "Circular (Chord) Diagram of an LSA Fit",
      "topics": [
        "plot_chords"
      ]
    },
    {
      "page": "plot_forest",
      "title": "Circular Bootstrap Forest of an LSA Fit",
      "topics": [
        "plot.lsa_bootstrap",
        "plot_forest"
      ]
    },
    {
      "page": "plot_polar",
      "title": "Polar Sunburst of an LSA Fit",
      "topics": [
        "plot_polar"
      ]
    },
    {
      "page": "plot_transitions",
      "title": "Plot the Transition Network",
      "topics": [
        "plot_transitions"
      ]
    },
    {
      "page": "plot.lsa",
      "title": "Plot an LSA Fit",
      "topics": [
        "plot.lsa",
        "plot.lsa_group"
      ]
    },
    {
      "page": "plot.lsa_certainty",
      "title": "Plot an Analytic-Certainty Result",
      "topics": [
        "plot.lsa_certainty"
      ]
    },
    {
      "page": "plot.lsa_comparison",
      "title": "Plot a Group Comparison",
      "topics": [
        "plot.lsa_comparison",
        "plot.lsa_comparison_pairwise"
      ]
    },
    {
      "page": "register_lsa_engine",
      "title": "Register a Lag Sequential Analysis Engine",
      "topics": [
        "register_lsa_engine"
      ]
    },
    {
      "page": "reliability_lsa",
      "title": "Split-Half Reliability for an LSA Fit",
      "topics": [
        "reliability_lsa",
        "reliability_lsa.lsa",
        "reliability_lsa.lsa_group"
      ]
    },
    {
      "page": "stability_lsa",
      "title": "Case-Drop Stability for an LSA Fit",
      "topics": [
        "stability_lsa"
      ]
    },
    {
      "page": "tests",
      "title": "Tablewise Independence Tests of an LSA Fit (Tidy)",
      "topics": [
        "tests",
        "tests.lsa",
        "tests.lsa_group"
      ]
    },
    {
      "page": "transfer_entropy",
      "title": "Directed transfer entropy for categorical sequences (experimental)",
      "topics": [
        "transfer_entropy"
      ]
    },
    {
      "page": "transition_probabilities",
      "title": "Transition-Probability Matrix of an LSA Fit",
      "topics": [
        "transition_probabilities",
        "transition_probabilities.lsa",
        "transition_probabilities.lsa_group"
      ]
    },
    {
      "page": "transitions",
      "title": "Transitions of an LSA Fit (Tidy)",
      "topics": [
        "transitions",
        "transitions.lsa",
        "transitions.lsa_group"
      ]
    },
    {
      "page": "unregister_lsa_engine",
      "title": "Remove a Registered LSA Engine",
      "topics": [
        "unregister_lsa_engine"
      ]
    }
  ],
  "_readme": "https://github.com/mohsaqr/lagdynamics/raw/HEAD/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "workflow.Rmd",
      "filename": "workflow.html",
      "title": "A complete workflow: from sequences to a group comparison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-06-19 21:32:15",
      "modified": "2026-07-01 18:29:15",
      "commits": 4
    },
    {
      "source": "confirmatory.Rmd",
      "filename": "confirmatory.html",
      "title": "Confirmatory testing: matching claims to evidence",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-06-20 09:14:56",
      "modified": "2026-07-01 18:29:15",
      "commits": 3
    },
    {
      "source": "lagdynamics.Rmd",
      "filename": "lagdynamics.html",
      "title": "Get started with lagdynamics",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-06-25 16:53:19",
      "modified": "2026-07-01 18:29:15",
      "commits": 2
    },
    {
      "source": "lag-transition-networks.Rmd",
      "filename": "lag-transition-networks.html",
      "title": "Lag transition networks",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The data and the fitted model",
        "Reading the model",
        "The network",
        "Inference",
        "Summary",
        "References"
      ],
      "created": "2026-07-01 18:29:15",
      "modified": "2026-07-01 19:12:49",
      "commits": 3
    },
    {
      "source": "plotting.Rmd",
      "filename": "plotting.html",
      "title": "Plotting lag-sequential models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Residual heatmap",
        "Residual network",
        "Transition network (a TNA model)",
        "Chord and sunburst",
        "Uncertainty forests",
        "Group comparison",
        "Grouped fits",
        "The worker functions",
        "In short"
      ],
      "created": "2026-06-04 17:24:07",
      "modified": "2026-07-01 18:29:15",
      "commits": 4
    }
  ],
  "_score": 4.176091259055681,
  "_indexed": true,
  "_nocasepkg": "lagdynamics",
  "_universes": [
    "mohsaqr",
    "loxavian"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-01T21:23:42.000Z",
      "distro": "resolute",
      "commit": "96b4e6fe344c6f2d115764cf2f5ba8726c583989",
      "fileid": "f46f10978a86d69bc057339089dc7d60a6f7992bc0be03ce3a3e79cc198ef13c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/28548369598"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-01T21:23:34.000Z",
      "distro": "resolute",
      "commit": "96b4e6fe344c6f2d115764cf2f5ba8726c583989",
      "fileid": "4815ca2a1ffbe8c1f29d3978e448ec6ba07e291798cbbfb9ed57e87620c7f35f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/28548369598"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-01T21:23:27.000Z",
      "commit": "96b4e6fe344c6f2d115764cf2f5ba8726c583989",
      "fileid": "3322fdd5590aa396bd0f0b671f1058ef44345c080a89d56572fee0d76cabb6c5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/28548369598"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-01T21:23:16.000Z",
      "commit": "96b4e6fe344c6f2d115764cf2f5ba8726c583989",
      "fileid": "dee13f21c39d8b20141f6d0f3112128110db474aa3941f30e742c304d9e2c9a6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/28548369598"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-07-01T21:23:37.000Z",
      "commit": "96b4e6fe344c6f2d115764cf2f5ba8726c583989",
      "fileid": "b160d31e3e55f6e75cd29d136f167496af8162e6351fd29444aa08ca98073854",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/28548369598"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-01T21:22:56.000Z",
      "commit": "96b4e6fe344c6f2d115764cf2f5ba8726c583989",
      "fileid": "d95a4dc5a81a1dcaaa4c604f6a5594c6cc429ba79704d1a644adc5031ca6c8dd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/28548369598"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-01T21:22:42.000Z",
      "commit": "96b4e6fe344c6f2d115764cf2f5ba8726c583989",
      "fileid": "19bc36cb729460a2b65873ec0660e8224c630261e705f6133da1bbd044c60c5d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/28548369598"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-01T21:22:39.000Z",
      "commit": "96b4e6fe344c6f2d115764cf2f5ba8726c583989",
      "fileid": "9621d91bff233980a481149f41ac08a5c2376999c573cfae84c8844585b7d6c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/28548369598"
    }
  ]
}