{
  "_id": "6a49ac2ac8f6781c04fb74ff",
  "Package": "BTSPAS",
  "Version": "2026.3.1",
  "Date": "2026-03-01",
  "Title": "Bayesian Time-Stratified Population Analysis",
  "Authors@R": "c(person(given = c(\"Carl\", \"J\"),\nfamily = \"Schwarz\",\nrole = c(\"aut\", \"cre\"),\nemail = \"cschwarz.stat.sfu.ca@gmail.com\"),\nperson(given = c(\"Simon\", \"J\"),\nfamily = \"Bonner\",\nrole = \"aut\",\nemail = \"sbonner6@uwo.ca\"))",
  "SystemRequirements": "JAGS",
  "Description": "Provides advanced Bayesian methods to estimate abundance\nand run-timing from temporally-stratified Petersen\nmark-recapture experiments. Methods include hierarchical\nmodelling of the capture probabilities and spline smoothing of\nthe daily run size. Theory described in Bonner and Schwarz\n(2011) <doi:10.1111/j.1541-0420.2011.01599.x>.",
  "License": "GPL (>=2)",
  "URL": "https://github.com/cschwarz-stat-sfu-ca/BTSPAS",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "R.rsp",
  "Config/pak/sysreqs": "libfontconfig1-dev libfreetype6-dev jags libicu-dev",
  "Repository": "https://cschwarz-stat-sfu-ca.r-universe.dev",
  "Date/Publication": "2026-02-19 19:46:22 UTC",
  "RemoteUrl": "https://github.com/cschwarz-stat-sfu-ca/btspas",
  "RemoteRef": "HEAD",
  "RemoteSha": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-19 08:34:33 UTC",
    "User": "root"
  },
  "Author": "Carl J Schwarz [aut, cre],\nSimon J Bonner [aut]",
  "Maintainer": "Carl J Schwarz <cschwarz.stat.sfu.ca@gmail.com>",
  "_user": "cschwarz-stat-sfu-ca",
  "_type": "src",
  "_file": "BTSPAS_2026.3.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/aabc7626f850389d7d7fb9a4c3b46720451ed0a6fcbee2755f22883aa7b9d4f1",
  "_filesize": 3647915,
  "_sha256": "aabc7626f850389d7d7fb9a4c3b46720451ed0a6fcbee2755f22883aa7b9d4f1",
  "_expires": "2026-10-13T00:58:16.000Z",
  "_created": "2026-06-19T08:34:33.000Z",
  "_published": "2026-07-05T00:58:17.980Z",
  "_jobs": [
    {
      "job": 85180777286,
      "time": 169,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7745314960"
    },
    {
      "job": 85180777257,
      "time": 192,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745322388"
    },
    {
      "job": 85180777337,
      "time": 192,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7745311842"
    },
    {
      "job": 85180777333,
      "time": 182,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745307970"
    },
    {
      "job": 85180777163,
      "time": 204,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745257070"
    },
    {
      "job": 85180777293,
      "time": 119,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745299060"
    },
    {
      "job": 85180777240,
      "time": 108,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7745295116"
    },
    {
      "job": 85180777389,
      "time": 110,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7745295689"
    },
    {
      "job": 85180777346,
      "time": 121,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745300099"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/27814797602",
  "_status": "success",
  "_upstream": "https://github.com/cschwarz-stat-sfu-ca/btspas",
  "_commit": {
    "id": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
    "author": "cschwarz-stat-sfu-cae <cschwarz.stat.sfu.ca@gmail.com>",
    "committer": "cschwarz-stat-sfu-cae <cschwarz.stat.sfu.ca@gmail.com>",
    "message": "Move max.logU.error and max.logitP to arguments rather than hard code\n",
    "time": 1771530382
  },
  "_maintainer": {
    "name": "Carl J Schwarz",
    "email": "cschwarz.stat.sfu.ca@gmail.com",
    "login": "cschwarz-stat-sfu-ca",
    "description": "",
    "uuid": 7244742
  },
  "_distro": "noble",
  "_registered": true,
  "_dependencies": [
    {
      "package": "actuar",
      "role": "Imports"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "coda",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "ggforce",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "reshape2",
      "role": "Imports"
    },
    {
      "package": "R2jags",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "splines",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "R.rsp",
      "role": "Suggests"
    }
  ],
  "_owner": "cschwarz-stat-sfu-ca",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-08",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "cschwarz-stat-sfu-ca",
      "count": 90,
      "uuid": 7244742
    },
    {
      "user": "eriksuring",
      "count": 1,
      "uuid": 55295941
    }
  ],
  "_userbio": {
    "uuid": 7244742,
    "type": "user",
    "name": "Carl Schwarz",
    "followers": 17
  },
  "_downloads": {
    "count": 752,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BTSPAS"
  },
  "_devurl": "https://github.com/cschwarz-stat-sfu-ca/btspas",
  "_searchresults": 29,
  "_topics": [
    "jags",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/BTSPAS.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/cschwarz-stat-sfu-ca/btspas",
  "_realowner": "cschwarz-stat-sfu-ca",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.01",
      "date": "2010-02-11"
    },
    {
      "version": "1.0.03",
      "date": "2010-04-10"
    },
    {
      "version": "2010.04",
      "date": "2010-05-27"
    },
    {
      "version": "2010.09",
      "date": "2010-11-03"
    },
    {
      "version": "2010.12",
      "date": "2010-12-12"
    },
    {
      "version": "2011.06",
      "date": "2011-06-09"
    },
    {
      "version": "2012.01",
      "date": "2012-01-12"
    },
    {
      "version": "2012.0216",
      "date": "2012-02-20"
    },
    {
      "version": "2012.0217",
      "date": "2013-01-25"
    },
    {
      "version": "2012.0219",
      "date": "2013-05-14"
    },
    {
      "version": "2014.0901",
      "date": "2014-08-26"
    },
    {
      "version": "2020.1.1",
      "date": "2019-12-05"
    },
    {
      "version": "2020.9.1",
      "date": "2020-09-05"
    },
    {
      "version": "2021.1.1",
      "date": "2020-12-16"
    },
    {
      "version": "2021.11.1",
      "date": "2021-10-11"
    },
    {
      "version": "2021.11.2",
      "date": "2021-10-25"
    },
    {
      "version": "2024.4.1",
      "date": "2024-03-16"
    },
    {
      "version": "2024.5.9",
      "date": "2024-05-10"
    },
    {
      "version": "2024.11.1",
      "date": "2024-10-23"
    }
  ],
  "_exports": [
    "expit",
    "logit",
    "RunTime",
    "SimplePetersen",
    "TestIfPool",
    "TimeStratPetersenDiagError_fit",
    "TimeStratPetersenDiagErrorWHChinook_fit",
    "TimeStratPetersenDiagErrorWHChinook2_fit",
    "TimeStratPetersenDiagErrorWHSteel_fit",
    "TimeStratPetersenNonDiagError_fit",
    "TimeStratPetersenNonDiagErrorNP_fit",
    "TimeStratPetersenNonDiagErrorNPMarkAvail_fit",
    "TimeToTargetRunSize"
  ],
  "_help": [
    {
      "page": "logit",
      "title": "Logit and anti-logit function.",
      "topics": [
        "expit",
        "logit"
      ]
    },
    {
      "page": "RunTime",
      "title": "Compute percentiles of the run timing distribution.",
      "topics": [
        "RunTime"
      ]
    },
    {
      "page": "SimplePetersen",
      "title": "Simple Petersen Estimator and test if pooling can be done",
      "topics": [
        "SimplePetersen",
        "TestIfPool"
      ]
    },
    {
      "page": "TimeStratPetersenDiagError_fit",
      "title": "Wrapper (*_fit) to call the Time Stratified Petersen Estimator with Diagonal Entries function.",
      "topics": [
        "TimeStratPetersenDiagError_fit"
      ]
    },
    {
      "page": "TimeStratPetersenDiagErrorWHChinook_fit",
      "title": "Wrapper (*_fit) to fit the Time Stratified Petersen Estimator with Diagonal Entries and separating Wild from Hatchery Chinook function.",
      "topics": [
        "TimeStratPetersenDiagErrorWHChinook2_fit",
        "TimeStratPetersenDiagErrorWHChinook_fit"
      ]
    },
    {
      "page": "TimeStratPetersenDiagErrorWHSteel_fit",
      "title": "Wrapper (*_fit) and function to call the Time Stratified Petersen Estimator with Diagonal Entries and separating Wild from Hatchery Steelhead function.",
      "topics": [
        "TimeStratPetersenDiagErrorWHSteel_fit"
      ]
    },
    {
      "page": "TimeStratPetersenNonDiagError_fit",
      "title": "Wrapper (*_fit) to fit the Time Stratified Petersen Estimator with NON Diagonal Entries function.",
      "topics": [
        "TimeStratPetersenNonDiagError_fit"
      ]
    },
    {
      "page": "TimeStratPetersenNonDiagErrorNP_fit",
      "title": "Wrapper (*_fit) to fit the Time Stratified Petersen Estimator with NON Diagonal Entries function and a non-parametric travel time estimator..",
      "topics": [
        "TimeStratPetersenNonDiagErrorNP_fit"
      ]
    },
    {
      "page": "TimeStratPetersenNonDiagErrorNPMarkAvail_fit",
      "title": "Wrapper (*_fit) to call the function to fit a Time Stratified Petersen Estimator with NON Diagonal Entries with an non-parametric travel time and fall back",
      "topics": [
        "TimeStratPetersenNonDiagErrorNPMarkAvail_fit"
      ]
    },
    {
      "page": "TimeToTargetRunSize",
      "title": "Computes and plots posterior distribution of time to get target run size. For example, the time to reach a cumulative run of 10,000 fish.",
      "topics": [
        "TimeToTargetRunSize"
      ]
    }
  ],
  "_readme": "https://github.com/cschwarz-stat-sfu-ca/btspas/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "actuar",
    "backports",
    "base64enc",
    "boot",
    "checkmate",
    "cli",
    "coda",
    "cpp11",
    "data.table",
    "expint",
    "farver",
    "ggforce",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "isoband",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "plyr",
    "polyclip",
    "R2jags",
    "R2WinBUGS",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "reshape2",
    "rjags",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "systemfonts",
    "tidyselect",
    "tweenr",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libjags",
      "package": "jags",
      "headers": "jags",
      "source": "jags",
      "version": "4.3.2-2.2404.0",
      "name": "jags",
      "homepage": "https://mcmc-jags.sourceforge.io",
      "description": "Just Another Gibbs Sampler for Bayesian MCMC - binary"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "a-Diagonal-model.html.asis",
      "filename": "a-Diagonal-model.html",
      "title": "01 Diagonal model",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2019-12-04 07:04:57",
      "modified": "2019-12-04 07:04:57",
      "commits": 1
    },
    {
      "source": "b-Diagonal-model-with-multiple-ages.html.asis",
      "filename": "b-Diagonal-model-with-multiple-ages.html",
      "title": "02 Diagonal model with multiple ages",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2019-12-04 07:04:57",
      "modified": "2019-12-04 07:04:57",
      "commits": 1
    },
    {
      "source": "c-Non-diagonal-model.html.asis",
      "filename": "c-Non-diagonal-model.html",
      "title": "03 Non-diagonal model",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2019-12-04 07:04:57",
      "modified": "2019-12-04 07:04:57",
      "commits": 1
    },
    {
      "source": "d-Non-diagonal-with-fall-back-model.html.asis",
      "filename": "d-Non-diagonal-with-fall-back-model.html",
      "title": "04 Non-diagonal with fall-back model",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2019-12-04 07:04:57",
      "modified": "2019-12-04 07:04:57",
      "commits": 1
    },
    {
      "source": "e-Bias-from-incomplete-sampling.html.asis",
      "filename": "e-Bias-from-incomplete-sampling.html",
      "title": "05 Bias from incomplete sampling",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2019-12-04 07:04:57",
      "modified": "2019-12-04 07:04:57",
      "commits": 1
    },
    {
      "source": "f-Interpolating-run-earlier-and-later.html.asis",
      "filename": "f-Interpolating-run-earlier-and-later.html",
      "title": "06 Interpolating run earlier and later",
      "engine": "R.rsp::asis",
      "headings": [],
      "created": "2020-08-09 05:01:58",
      "modified": "2020-08-09 05:01:58",
      "commits": 1
    }
  ],
  "_score": 4.939519252618618,
  "_indexed": true,
  "_nocasepkg": "btspas",
  "_universes": [
    "cschwarz-stat-sfu-ca"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2026.3.1",
      "date": "2026-06-19T08:37:12.000Z",
      "distro": "noble",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "https://r2.ropensci.org/041f472f0ced1d010f0143004d6ba5dba5be4540c997b2274e098d8f1bf2c9ee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/27814797602"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2026.3.1",
      "date": "2026-06-19T08:37:33.000Z",
      "distro": "noble",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "https://r2.ropensci.org/148a32e7b37945563325a5728da3c9537ec77cb45d17d1d66142db1277ec3de9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/27814797602"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2026.3.1",
      "date": "2026-06-19T08:37:07.000Z",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "https://r2.ropensci.org/5233c6bd229e1b1237eb56985986974cb32dab15bc6f12c610e23f10efe05adc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/27814797602"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2026.3.1",
      "date": "2026-06-19T08:36:55.000Z",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "https://r2.ropensci.org/05b0fb549559cbfeb89a4aa52487c63aeb562ed54353ceab26b61ba5f2cb215e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/27814797602"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2026.3.1",
      "date": "2026-06-19T08:36:57.000Z",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "https://r2.ropensci.org/ace69bb2737b2a893de9c4042108a11568d58232390d781eb2fa96e3ace3090d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/27814797602"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2026.3.1",
      "date": "2026-06-19T08:35:59.000Z",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "https://r2.ropensci.org/2ffe329dbdbd5386e910fa57fcf9108cfe5484c353b2b9aaee3bb936657b7bdb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/27814797602"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2026.3.1",
      "date": "2026-06-19T08:35:59.000Z",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "https://r2.ropensci.org/416de5191981294931d1677f9067b8e4980b185a783e9dca88b5cbaff49e6ca3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/27814797602"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2026.3.1",
      "date": "2026-06-19T08:36:12.000Z",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "https://r2.ropensci.org/fb3488e87c11fe66763091b7943951cc1cf8b81ea62689612c269349da82d62f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/27814797602"
    }
  ]
}