{
  "_id": "6a1edaa2b401979e7340f5ff",
  "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-05-20 09:02:41 UTC",
    "User": "root"
  },
  "Author": "Carl J Schwarz [aut, cre],\nSimon J Bonner [aut]",
  "Maintainer": "Carl J Schwarz <cschwarz.stat.sfu.ca@gmail.com>",
  "MD5sum": "c6a9bdd74fc9483dc5da6a69e9792b2a",
  "_user": "cschwarz-stat-sfu-ca",
  "_type": "src",
  "_file": "BTSPAS_2026.3.1.tar.gz",
  "_fileid": "ef08ffa7a8fcf0046f13927361b20a93323221ce35cecc59e4acaa8768a3990e",
  "_filesize": 3644977,
  "_sha256": "ef08ffa7a8fcf0046f13927361b20a93323221ce35cecc59e4acaa8768a3990e",
  "_created": "2026-05-20T09:02:41.000Z",
  "_published": "2026-06-02T13:29:06.317Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79081819172,
      "time": 154,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7105752151"
    },
    {
      "job": 79081819696,
      "time": 136,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105745739"
    },
    {
      "job": 79081820049,
      "time": 176,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7105748637"
    },
    {
      "job": 79081819721,
      "time": 157,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105744996"
    },
    {
      "job": 79081819231,
      "time": 209,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105694680"
    },
    {
      "job": 79081818682,
      "time": 132,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7359043631"
    },
    {
      "job": 79081819881,
      "time": 114,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7105737331"
    },
    {
      "job": 79081819934,
      "time": 105,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7105734861"
    },
    {
      "job": 79081819517,
      "time": 130,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105743671"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/26152365303",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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"
  },
  "_downloads": {
    "count": 721,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BTSPAS"
  },
  "_devurl": "https://github.com/cschwarz-stat-sfu-ca/btspas",
  "_searchresults": 28,
  "_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\nJAGS is Just Another Gibbs Sampler.  It is a program for analysis of\nBayesian hierarchical models using Markov Chain Monte Carlo (MCMC)\nsimulation not wholly unlike BUGS.\n\nJAGS was written with three aims in mind:\n* To have an engine for the BUGS language that runs on Unix\n* To be extensible, allowing users to write their own functions,\ndistributions and samplers.\n* To be a plaftorm for experimentation with ideas in Bayesian modelling\n\nThis package contains the 'jags' binary as well as the associated\nshared library modules loaded by the 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.924279286061882,
  "_indexed": true,
  "_nocasepkg": "btspas",
  "_universes": [
    "cschwarz-stat-sfu-ca"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2026.3.1",
      "date": "2026-05-20T09:05:07.000Z",
      "distro": "noble",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "08b93f8ba1a924ce185841fe56bc37db0b76a07b04c1dc183dfc86d5925bce85",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/26152365303"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2026.3.1",
      "date": "2026-05-20T09:04:53.000Z",
      "distro": "noble",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "2b733c7b5418dffea5b75e6b21cf5fa46ab28a1ad77449362cbb4475b7015c23",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/26152365303"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2026.3.1",
      "date": "2026-05-20T09:05:11.000Z",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "233bf6acf5bab583e5404e516a3aebb1256d608ccf190e3c2f3987835ba5ff7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/26152365303"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2026.3.1",
      "date": "2026-05-20T09:05:01.000Z",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "21f40bb684e9bf99013d9ff4ecabcf5701755b70f35f5dc736c2b4510b817798",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/26152365303"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2026.3.1",
      "date": "2026-05-20T09:04:18.000Z",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "f61296cc16c8056fc8b4310f4f5c1c7ededeabbd3c03bcd898ff6601add51d65",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/26152365303"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2026.3.1",
      "date": "2026-05-20T09:04:12.000Z",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "afd36bbe7f0119c255182f7a2a87e2aba7cfbe08710b4eb6843b3a662219c4ce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/26152365303"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2026.3.1",
      "date": "2026-05-20T09:04:36.000Z",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "085cd209feb03e5176b3fd87bfbc6bcd66d043b76f7486ce6421fbde6c34527b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/26152365303"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2026.3.1",
      "date": "2026-06-02T13:28:46.000Z",
      "commit": "db6eaa3aa923bf9316d430ff64a4206dd7bcb85a",
      "fileid": "32478373f786615c5ccb4e539a5136c375b48624702c8a013feb27b9286c26ef",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cschwarz-stat-sfu-ca/actions/runs/26152365303"
    }
  ]
}