{
  "_id": "6ac0f1b3552a13804ac7e11e",
  "Package": "tsn",
  "Title": "Time-Series Network Construction",
  "Version": "1.4.1",
  "Authors@R": "c(\nperson(\"Mohammed\", \"Saqr\",\nemail = \"saqr@saqr.me\", role = c(\"aut\", \"cre\", \"cph\")),\nperson(\"Sonsoles\", \"L\\u00f3pez-Pernas\", role = c(\"aut\", \"cph\")),\nperson(\"Manuel J.\", \"Gomez\", role = \"aut\",\ncomment = c(affiliation = \"University of Murcia\"))\n)",
  "Description": "Constructs distance, visibility, and state-transition\nnetworks from univariate time series. The core constructor\nprovides whole-series and sliding-window distance networks,\nnatural and horizontal visibility graphs following Lacasa et\nal. (2008) <doi:10.1073/pnas.0709247105> and Luque et al.\n(2009) <doi:10.1103/PhysRevE.80.046103>, and optional state\naggregation. Companion verbs expose discretization, trend\nclassification, and an optional bridge to the 'Nestimate'\ntransition-network models. Core network construction uses only\npackages distributed with R.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/mohsaqr/tsn/, https://pak.dynasite.org/tsn/",
  "BugReports": "https://github.com/mohsaqr/tsn/issues/",
  "VignetteBuilder": "knitr, rmarkdown",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Repository": "https://mohsaqr.r-universe.dev",
  "Date/Publication": "2026-09-03 07:51:47 UTC",
  "RemoteUrl": "https://github.com/mohsaqr/tsn",
  "RemoteRef": "HEAD",
  "RemoteSha": "7e3b1f2966de3293494cd8b4d08e6f7891689dff",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-03 12:10:07 UTC",
    "User": "root"
  },
  "Author": "Mohammed Saqr [aut, cre, cph],\nSonsoles López-Pernas [aut, cph],\nManuel J. Gomez [aut] (affiliation: University of Murcia)",
  "Maintainer": "Mohammed Saqr <saqr@saqr.me>",
  "_user": "mohsaqr",
  "_type": "src",
  "_file": "tsn_1.4.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/05da2e2120524d50de2eb4eda68eb441bb05e0bc8f0aadf479b00d7d8eb8cb6e",
  "_filesize": 6744232,
  "_sha256": "05da2e2120524d50de2eb4eda68eb441bb05e0bc8f0aadf479b00d7d8eb8cb6e",
  "_expires": "2027-01-11T12:14:41.000Z",
  "_created": "2026-10-03T12:10:07.000Z",
  "_published": "2026-10-03T12:14:43.623Z",
  "_jobs": [
    {
      "job": 111199823176,
      "time": 150,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11274205505"
    },
    {
      "job": 111199823163,
      "time": 135,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11273966063"
    },
    {
      "job": 111199823156,
      "time": 226,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11274020884"
    },
    {
      "job": 111199823179,
      "time": 231,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11274445100"
    },
    {
      "job": 111199345742,
      "time": 183,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11273731299"
    },
    {
      "job": 111199823160,
      "time": 84,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11274030717"
    },
    {
      "job": 111199823186,
      "time": 159,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11274335358"
    },
    {
      "job": 111199823191,
      "time": 113,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11273319744"
    },
    {
      "job": 111199823181,
      "time": 89,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11273611537"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/37121833527",
  "_status": "success",
  "_upstream": "https://github.com/mohsaqr/tsn",
  "_commit": {
    "id": "7e3b1f2966de3293494cd8b4d08e6f7891689dff",
    "author": "mohsaqr <hamada@saqr.me>",
    "committer": "mohsaqr <hamada@saqr.me>",
    "message": "Release 1.4.1: bring the tarball under CRAN's size guidance and pin the new vignette claims\n\nThe 1.4.0 build had crossed CRAN's 5,000,000-byte guidance at 5,125,349\nbytes, so `R CMD check --as-cran` reported `Size of tarball` inside the\nincoming-feasibility NOTE. html_vignette is self-contained, so every figure\nis base64-embedded and `dpi` drives the whole number: three vignettes were\nrendering at 150 while two were at 110. Setting all five to 110 gives a\n4,095,301-byte tarball (-20%) and an installed size of 5.8Mb, of which doc\nfalls from 5.9Mb to 4.5Mb. No reported number changes, and the two vignettes\nalready at 110 re-render byte-identically.\n\nThe vignette copyedit in d91116d introduced three new numeric claims, all in\nthe bootstrap sections: the `low -> low` p-value of 0.060, the\n`high -> moderate` weight of 0.260, and `low` filling 24.4% of the days. All\nthree were re-derived from live output and are correct (0.05970149,\n0.2603270, 0.2437589), as are the named five surviving and four failing\nbootstrap edges.\n\nThe tests pinned only `sum(boot$sig) == 5L`, so a reshuffle of which five\nedges survived would have stayed green while falsifying that prose. Both\ntutorial test files now pin the edge identities, the two edge weights, the\np-value, the low-state share, and the prune-versus-bootstrap trade. Bracket\nindexing stays inside the new nw_edge_ids()/nw_edge() helpers.\n\nChecked with a TeX-enabled `R CMD check --as-cran`: 0 errors, 0 warnings,\n2 NOTEs (New submission; unable to verify current time, a local network\nartifact). PDF manual, vignette rebuild and tests all pass. Local suite\n1,182 pass / 0 fail / 1 expected skip, and the same under LC_ALL=C.\n\nCo-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>\nClaude-Session: https://claude.ai/code/session_01GkcqHHEjkpviS5hvyADKGs\n",
    "time": 1788421907
  },
  "_maintainer": {
    "name": "Mohammed Saqr",
    "email": "saqr@saqr.me",
    "login": "loxavian",
    "description": "",
    "uuid": 52792889
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "cograph",
      "role": "Suggests"
    },
    {
      "package": "igraph",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "Nestimate",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "mohsaqr",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-32",
      "n": 5
    },
    {
      "week": "2026-34",
      "n": 17
    },
    {
      "week": "2026-35",
      "n": 3
    },
    {
      "week": "2026-36",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0-legacy",
      "date": "2026-07-06"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "mohsaqr",
      "count": 19,
      "uuid": 194697827
    },
    {
      "user": "mjgm97",
      "count": 7,
      "uuid": 60471576
    },
    {
      "user": "sonsoleslp",
      "count": 2,
      "uuid": 10948559
    }
  ],
  "_userbio": {
    "uuid": 194697827,
    "type": "user",
    "name": "Mohammed Saqr",
    "followers": 13,
    "description": "Professor of Computer Science"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tsn"
  },
  "_devurl": "https://github.com/mohsaqr/tsn",
  "_pkgdown": "https://pak.dynasite.org/tsn/",
  "_searchresults": 3,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/tsn.html",
    "LICENSE"
  ],
  "_cranurl": false,
  "_exports": [
    "discretize",
    "series_networks",
    "trend",
    "ts_atna",
    "ts_cna",
    "ts_ftna",
    "ts_tna",
    "tsn",
    "vg"
  ],
  "_datasets": [
    {
      "name": "esm_srl",
      "title": "Momentary Self-Regulated Learning Experience-Sampling Data",
      "object": "esm_srl",
      "class": [
        "data.frame"
      ],
      "fields": [
        "name",
        "occasion",
        "date",
        "day_type",
        "efficacy",
        "value",
        "planning",
        "monitoring",
        "effort",
        "regulation",
        "motivated",
        "enjoyment",
        "anxiety"
      ],
      "rows": 2820,
      "table": true,
      "tojson": true
    },
    {
      "name": "srl",
      "title": "Daily Self-Regulated Learning Panel",
      "object": "srl",
      "class": [
        "data.frame"
      ],
      "fields": [
        "name",
        "day",
        "efficacy",
        "value",
        "planning",
        "monitoring",
        "effort",
        "control",
        "help",
        "social",
        "organizing"
      ],
      "rows": 5616,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "as.data.frame.ts_tna",
      "title": "Coerce a transition network to a tidy edge table",
      "topics": [
        "as.data.frame.ts_tna"
      ]
    },
    {
      "page": "as.data.frame.ts_tna_group",
      "title": "Coerce a grouped transition network to a tidy data frame",
      "topics": [
        "as.data.frame.ts_tna_group"
      ]
    },
    {
      "page": "as.data.frame.tsn",
      "title": "Coerce a TSN result to a data frame",
      "topics": [
        "as.data.frame.tsn"
      ]
    },
    {
      "page": "as.matrix.ts_tna",
      "title": "Coerce a transition network to a weighted adjacency matrix",
      "topics": [
        "as.matrix.ts_tna"
      ]
    },
    {
      "page": "as.matrix.tsn",
      "title": "Coerce a TSN result to a weighted adjacency matrix",
      "topics": [
        "as.matrix.tsn"
      ]
    },
    {
      "page": "discretize",
      "title": "Discretize a Time Series into States",
      "topics": [
        "discretize"
      ]
    },
    {
      "page": "esm_srl",
      "title": "Momentary Self-Regulated Learning Experience-Sampling Data",
      "topics": [
        "esm_srl"
      ]
    },
    {
      "page": "plot.ts_tna",
      "title": "Plot a Time-Series Transition Network",
      "topics": [
        "plot.ts_tna"
      ]
    },
    {
      "page": "plot.ts_tna_group",
      "title": "Plot One Network of a Grouped Transition Model",
      "topics": [
        "plot.ts_tna_group"
      ]
    },
    {
      "page": "plot.tsn",
      "title": "Plot a TSN Result",
      "topics": [
        "plot.tsn"
      ]
    },
    {
      "page": "plot.tsn_series_networks",
      "title": "Plot One Per-Series Transition Network",
      "topics": [
        "plot.tsn_series_networks"
      ]
    },
    {
      "page": "plot.tsn_states",
      "title": "Plot a state discretization",
      "topics": [
        "plot.tsn_states"
      ]
    },
    {
      "page": "plot.tsn_trend",
      "title": "Plot a trend classification",
      "topics": [
        "plot.tsn_trend"
      ]
    },
    {
      "page": "print.tsn",
      "title": "Print a TSN network",
      "topics": [
        "print.tsn"
      ]
    },
    {
      "page": "print.tsn_states",
      "title": "Print a state discretization",
      "topics": [
        "print.tsn_states"
      ]
    },
    {
      "page": "print.tsn_trend",
      "title": "Print a trend classification",
      "topics": [
        "print.tsn_trend"
      ]
    },
    {
      "page": "series_networks",
      "title": "Per-Series Transition Networks",
      "topics": [
        "series_networks"
      ]
    },
    {
      "page": "srl",
      "title": "Daily Self-Regulated Learning Panel",
      "topics": [
        "srl"
      ]
    },
    {
      "page": "summary.tsn",
      "title": "Summarize a TSN network",
      "topics": [
        "summary.tsn"
      ]
    },
    {
      "page": "summary.tsn_series_networks",
      "title": "Summarize Per-Series Transition Networks",
      "topics": [
        "as.data.frame.tsn_series_networks",
        "print.tsn_series_networks",
        "summary.tsn_series_networks"
      ]
    },
    {
      "page": "summary.tsn_states",
      "title": "Summarize a state discretization",
      "topics": [
        "summary.tsn_states"
      ]
    },
    {
      "page": "summary.tsn_trend",
      "title": "Summarize a trend classification",
      "topics": [
        "summary.tsn_trend"
      ]
    },
    {
      "page": "trend",
      "title": "Classify Rolling Trends in a Time Series",
      "topics": [
        "trend"
      ]
    },
    {
      "page": "ts_tna",
      "title": "Transition Network Analysis of Time Series",
      "topics": [
        "ts_atna",
        "ts_cna",
        "ts_ftna",
        "ts_tna"
      ]
    },
    {
      "page": "tsn",
      "title": "Build a Time-Series Network",
      "topics": [
        "tsn"
      ]
    },
    {
      "page": "vg",
      "title": "Build a Visibility Graph",
      "topics": [
        "vg"
      ]
    }
  ],
  "_pkglogo": "https://github.com/mohsaqr/tsn/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/mohsaqr/tsn/raw/HEAD/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "constructing-time-series-networks.Rmd",
      "filename": "constructing-time-series-networks.html",
      "title": "Constructing Time Series Networks",
      "author": "Mohammed Saqr, Sonsoles López-Pernas, Manuel J. Gómez",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Data",
        "Transition Network Analysis",
        "Transition probabilities with ts_tna()",
        "Transition frequencies with ts_ftna()",
        "State co-occurrence with ts_cna()",
        "Attention-weighted transitions with ts_atna()",
        "Indexing the model with series_networks()",
        "Local direction with trend()",
        "Visibility with vg()",
        "Window similarity with tsn()"
      ],
      "created": "2026-08-25 10:45:02",
      "modified": "2026-09-03 07:51:47",
      "commits": 2
    },
    {
      "source": "group-models.Rmd",
      "filename": "group-models.html",
      "title": "Grouped Transition Models: One Network per Condition",
      "author": "Mohammed Saqr, Sonsoles López-Pernas, Manuel J. Gómez",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The question",
        "One call, one network per condition",
        "Why not subset the data and build each model by hand?",
        "First failure: the subset welds broken time back together",
        "Second failure: each subset learns its own thresholds",
        "The collection is data",
        "Composition and dynamics",
        "Composition",
        "Mean first passage times",
        "Entropy and centrality",
        "Drawing the networks",
        "Are the differences real?",
        "The permutation test",
        "The metric panel",
        "Bootstrap and Bayesian certainty per group",
        "Is first order enough, per group?",
        "Stability under case dropping",
        "Pruning the collection",
        "What to watch for",
        "When to use which",
        "References"
      ],
      "created": "2026-08-25 08:36:25",
      "modified": "2026-08-25 14:20:09",
      "commits": 3
    },
    {
      "source": "plotting-time-series-networks.Rmd",
      "filename": "plotting-time-series-networks.html",
      "title": "Plotting Time Series Networks",
      "author": "Mohammed Saqr, Sonsoles López-Pernas, Manuel J. Gómez",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Data",
        "Discrete-state plots",
        "Overlay",
        "Ribbon",
        "Heatmap",
        "Stack",
        "Local-direction plots",
        "Points",
        "Panels",
        "Constructed-network plots",
        "Network",
        "Source series",
        "Weighted distance network",
        "Adjusting the network encoding",
        "Transition Network Analysis plots",
        "Combined",
        "Extracted-model plots",
        "Selecting a plot"
      ],
      "created": "2026-08-19 13:02:10",
      "modified": "2026-09-03 07:51:47",
      "commits": 5
    },
    {
      "source": "nestimate-compatibility.Rmd",
      "filename": "nestimate-compatibility.html",
      "title": "The Nestimate Compatibility Map",
      "author": "Mohammed Saqr, Sonsoles López-Pernas, Manuel J. Gómez",
      "engine": "knitr::rmarkdown",
      "headings": [
        "One object, two packages",
        "Reading the model as data",
        "Where the process spends its time",
        "Which states and edges carry the structure?",
        "How the process moves",
        "Mean first passage times",
        "Persistence, return, and sojourn",
        "Is the chain well-behaved?",
        "How predictable is the process?",
        "Does history beyond one step matter?",
        "Simplifying the model",
        "How sure are we about the estimates?",
        "Sequence bootstrap",
        "Bayesian edge certainty",
        "Whole-network statistics: the vertex bootstrap",
        "Case dropping, in two flavours",
        "Split-half reliability",
        "Comparing two models",
        "The difference itself",
        "Four more verdicts on the same pair",
        "Link prediction",
        "Grouped models",
        "What does not apply, and why",
        "The compatibility map",
        "References"
      ],
      "created": "2026-08-25 08:36:25",
      "modified": "2026-08-25 14:20:09",
      "commits": 3
    },
    {
      "source": "nestimate-workflow.Rmd",
      "filename": "nestimate-workflow.html",
      "title": "Transition Networks from Time Series: Estimation and Inference with Nestimate",
      "author": "Mohammed Saqr, Sonsoles López-Pernas, Manuel J. Gómez",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "From measurements to a model",
        "The bridge: this object is a Nestimate model",
        "Four constructors, one interface",
        "One series, and what it can support",
        "Choosing states that mean something",
        "One network per person",
        "Describing the model",
        "Centrality",
        "How much of the sequence is structure, and how much is noise",
        "Pruning",
        "Bootstrap: which edges survive resampling?",
        "Stability: would the same states rank first in a smaller study?",
        "Markov order: is a first-order model enough?",
        "Comparing two periods",
        "More than two groups: one model per condition",
        "Plotting a model",
        "Where the line falls"
      ],
      "created": "2026-08-21 05:12:27",
      "modified": "2026-09-03 07:51:47",
      "commits": 6
    }
  ],
  "_score": 4.301029995663981,
  "_indexed": true,
  "_nocasepkg": "tsn",
  "_universes": [
    "mohsaqr",
    "loxavian"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.1",
      "date": "2026-10-03T12:12:05.000Z",
      "distro": "resolute",
      "commit": "7e3b1f2966de3293494cd8b4d08e6f7891689dff",
      "fileid": "https://r2.ropensci.org/9645b0f7b192f75832d79e8879f7f846511fcb507108e4a8b266a6bb5c3f5e33",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/37121833527"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.4.1",
      "date": "2026-10-03T12:12:03.000Z",
      "distro": "resolute",
      "commit": "7e3b1f2966de3293494cd8b4d08e6f7891689dff",
      "fileid": "https://r2.ropensci.org/3b239eb49a137cf8ab11c5a9a8b726e11371602769516126a829b81cde17160b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/37121833527"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.4.1",
      "date": "2026-10-03T12:13:25.000Z",
      "commit": "7e3b1f2966de3293494cd8b4d08e6f7891689dff",
      "fileid": "https://r2.ropensci.org/c40916c61c643508cd54325915faf8113b14f16a4a124cc6094c073a6fee0b73",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/37121833527"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.4.1",
      "date": "2026-10-03T12:13:43.000Z",
      "commit": "7e3b1f2966de3293494cd8b4d08e6f7891689dff",
      "fileid": "https://r2.ropensci.org/e6515585abd1df9ef61267849df1a57e61d2526c8a74ba1471c9c38c37e3d4cc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/37121833527"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.4.1",
      "date": "2026-10-03T12:11:52.000Z",
      "commit": "7e3b1f2966de3293494cd8b4d08e6f7891689dff",
      "fileid": "https://r2.ropensci.org/6e2c73568236f2f71e2d0615c02c7518c8d1fe9737c45f7e182afab04f8e87b4",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/37121833527"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4.1",
      "date": "2026-10-03T12:11:53.000Z",
      "commit": "7e3b1f2966de3293494cd8b4d08e6f7891689dff",
      "fileid": "https://r2.ropensci.org/73fc758605dfbbe94b21846257c14a9eca381c2d86983f748098fde31e7c484e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/37121833527"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.4.1",
      "date": "2026-10-03T12:11:15.000Z",
      "commit": "7e3b1f2966de3293494cd8b4d08e6f7891689dff",
      "fileid": "https://r2.ropensci.org/73111c9211e631d06a4bd9df802d067df948c2a8fcbdb4b6fbeef3d81aae761b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/37121833527"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.4.1",
      "date": "2026-10-03T12:11:07.000Z",
      "commit": "7e3b1f2966de3293494cd8b4d08e6f7891689dff",
      "fileid": "https://r2.ropensci.org/6ecd8dfb73f24a805388cc3187f221a05d00e22c9f58646d8717ec08e8804e4d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mohsaqr/actions/runs/37121833527"
    }
  ]
}