{
  "_id": "6b0e39deb6d08ed7e3d96960",
  "Package": "SPAS",
  "Type": "Package",
  "Title": "Stratified-Petersen Analysis System",
  "Version": "2026.12.3",
  "Date": "2026-12-03",
  "Authors@R": "person(given = c(\"Carl\", \"James\"),\nfamily = \"Schwarz\",\nrole = c(\"aut\", \"cre\", \"cph\"),\nemail = \"cschwarz.stat.sfu.ca@gmail.com\")",
  "Description": "The Stratified-Petersen Analysis System ('SPAS') is\ndesigned to estimate abundance in two-sample capture-recapture\nexperiments where the capture and recaptures are stratified.\nThis is a generalization of the simple 'Lincoln-Petersen'\nestimator. Strata may be defined in time or in space or both,\nand the s strata in which marking takes place may differ from\nthe t strata in which recoveries take place. When s=t, 'SPAS'\nreduces to the method described by 'Darroch' (1961)\n<doi:10.2307/2332748>. When s<t, 'SPAS' implements the methods\ndescribed in 'Plante', 'Rivest', and 'Tremblay' (1998)\n<doi:10.2307/2533994>. 'Schwarz' and 'Taylor' (1998)\n<doi:10.1139/f97-238> describe the use of SPAS in estimating\nreturn of salmon stratified by time and geography. A related\npackage, 'BTSPAS', deals with temporal stratification where a\nspline is used to model the distribution of the population over\ntime as it passes the second capture location. This is the\nR-version of the (now obsolete) standalone Windows program of\nthe same name.",
  "License": "GPL (>= 2)",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "URL": "https://github.com/cschwarz-stat-sfu-ca/SPAS",
  "BugReports": "https://github.com/cschwarz-stat-sfu-ca/SPAS/issues",
  "Config/roxygen2/version": "8.1.1",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-12-01 02:59:25 UTC",
    "User": "root"
  },
  "Author": "Carl James Schwarz [aut, cre, cph]",
  "Maintainer": "Carl James Schwarz <cschwarz.stat.sfu.ca@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-12-01 02:39:53 UTC",
  "RemoteUrl": "https://github.com/cran/SPAS",
  "RemoteRef": "HEAD",
  "RemoteSha": "7c0e7bd80d8b92ca878be91d8a8c37e841715fbb",
  "_user": "cran",
  "_type": "src",
  "_file": "SPAS_2026.12.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/defa17ad6b4e397bcd6ff10a8f478e6539bbc20f3a9c53099629bc2411cf81ce",
  "_filesize": 215989,
  "_sha256": "defa17ad6b4e397bcd6ff10a8f478e6539bbc20f3a9c53099629bc2411cf81ce",
  "_expires": "2027-03-11T03:07:08.000Z",
  "_created": "2026-12-01T02:59:25.000Z",
  "_published": "2026-12-01T03:07:10.750Z",
  "_upstream": "https://github.com/cran/SPAS",
  "_status": "success",
  "_maintainer": {
    "name": "Carl James Schwarz",
    "email": "cschwarz.stat.sfu.ca@gmail.com",
    "login": "cschwarz-stat-sfu-ca",
    "description": "",
    "uuid": 7244742
  },
  "_jobs": [
    {
      "job": 142362550358,
      "time": 173,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15447534223"
    },
    {
      "job": 142362550204,
      "time": 196,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15447797344"
    },
    {
      "job": 142362550457,
      "time": 183,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15447114532"
    },
    {
      "job": 142362550324,
      "time": 186,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15447223980"
    },
    {
      "job": 142360639372,
      "time": 279,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15447008707"
    },
    {
      "job": 142362550131,
      "time": 125,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "15447363642"
    },
    {
      "job": 142362550385,
      "time": 404,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15447524100"
    },
    {
      "job": 142362550403,
      "time": 184,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15447054220"
    },
    {
      "job": 142362550297,
      "time": 395,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15447643220"
    },
    {
      "job": 142362550282,
      "time": 157,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15448405063"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/46564657281",
  "_commit": {
    "id": "7c0e7bd80d8b92ca878be91d8a8c37e841715fbb",
    "author": "Carl James Schwarz <cschwarz.stat.sfu.ca@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 2026.12.3\n",
    "time": 1796092793
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "TMB",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "msm",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "reshape2",
      "role": "Imports"
    },
    {
      "package": "TMB",
      "version": ">= 1.7.15",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-13",
      "n": 1
    },
    {
      "week": "2026-49",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "2026.4.1",
      "date": "2026-03-27"
    },
    {
      "name": "2026.12.3",
      "date": "2026-12-01"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "cschwarz-stat-sfu-ca",
      "count": 7,
      "uuid": 7244742
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 636,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 167,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/SPAS"
  },
  "_mentions": 6,
  "_devurl": "https://github.com/cschwarz-stat-sfu-ca/spas",
  "_searchresults": 38,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.2",
  "_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/SPAS.html"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "2019.2",
      "date": "2019-02-18"
    },
    {
      "version": "2020.1.1",
      "date": "2019-12-02"
    },
    {
      "version": "2023.3.31",
      "date": "2023-04-21"
    },
    {
      "version": "2024.1.31",
      "date": "2024-01-25"
    },
    {
      "version": "2025.2.1",
      "date": "2025-02-06"
    },
    {
      "version": "2026.4.1",
      "date": "2026-03-27"
    }
  ],
  "_authors": [
    {
      "name": "Carl James Schwarz",
      "email": "cschwarz.stat.sfu.ca@gmail.com",
      "role": [
        "aut",
        "cre",
        "cph"
      ]
    }
  ],
  "_exports": [
    "SPAS.autopool",
    "SPAS.fit.model",
    "SPAS.print.model"
  ],
  "_help": [
    {
      "page": "SPAS.autopool",
      "title": "Autopooling a Stratified-Petersen (SP) data set. This function applies pooling rules to pool a SPAS dataset to meeting minimum sparsity requirements .",
      "topics": [
        "SPAS.autopool"
      ]
    },
    {
      "page": "SPAS.fit.model",
      "title": "Fit a Stratified-Petersen (SP) model using TMB.",
      "topics": [
        "SPAS.fit.model"
      ]
    },
    {
      "page": "SPAS.print.model",
      "title": "Print or Extract the results from a fit of a Stratified-Petersen (SP) model when using the TMB optimizer",
      "topics": [
        "SPAS.print.model"
      ]
    }
  ],
  "_readme": "https://github.com/cran/SPAS/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "checkmate",
    "cli",
    "expm",
    "generics",
    "glue",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "msm",
    "mvtnorm",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "plyr",
    "Rcpp",
    "RcppEigen",
    "reshape2",
    "rlang",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "TMB",
    "utf8",
    "vctrs"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "AutomaticPooling.Rmd",
      "filename": "AutomaticPooling.html",
      "title": "Automatic Pooling",
      "author": "Carl James Schwarz",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Example.",
        "Load the SPAS package",
        "Import the data.",
        "Automate Pooling",
        "Fitting allowing for automated pooling.",
        "References"
      ],
      "created": "2023-04-20 21:12:40",
      "modified": "2026-12-01 02:39:53",
      "commits": 2
    },
    {
      "source": "Conne1991.Rmd",
      "filename": "Conne1991.html",
      "title": "Conne River 1991 Data",
      "author": "Carl James Schwarz",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Load the SPAS package",
        "Import the data.",
        "Fitting the Stratified-Petersen model",
        "Results from model 1 (no pooling).",
        "Physically pooling some rows and columns",
        "Pooling the first two rows, the last two rows, and the last two columns",
        "Physically pooling to a single row and complete pooling",
        "Comparing different physical pooling",
        "Logical pooling",
        "Logical pooling the first two rows, the last two rows, and physical pooling of the  last two columns",
        "References"
      ],
      "created": "2019-02-18 08:30:02",
      "modified": "2026-12-01 02:39:53",
      "commits": 4
    },
    {
      "source": "Conne1992.Rmd",
      "filename": "Conne1992.html",
      "title": "Conne River 1992 Data",
      "author": "Carl James Schwarz",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Load the SPAS package",
        "Import the data.",
        "Fitting the Stratified-Petersen model",
        "Results from model 1 (no pooling).",
        "Physically pooling some rows and columns",
        "Pooling to a single row and complete pooling",
        "Comparing different pooling",
        "References"
      ],
      "created": "2019-02-18 08:30:02",
      "modified": "2026-12-01 02:39:53",
      "commits": 4
    },
    {
      "source": "HarrisonF2011.Rmd",
      "filename": "HarrisonF2011.html",
      "title": "Harrison River Female Chinook 2011 Data",
      "author": "Carl James Schwarz",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Load the SPAS package",
        "Import the data.",
        "Fitting the Stratified-Petersen model",
        "Results from model 1 (no pooling).",
        "Pooling some rows and columns",
        "Physically pooling first two rows and last two rows",
        "Physical pooling to a single row and complete pooling",
        "Logically pooling the first two rows and last two rows.",
        "Logical pooling to a single row and complete pooling",
        "Logically pooling every successive pair of rows",
        "Comparing the different estimates:",
        "References"
      ],
      "created": "2019-02-18 08:30:02",
      "modified": "2026-12-01 02:39:53",
      "commits": 4
    },
    {
      "source": "PoolingColumns.Rmd",
      "filename": "PoolingColumns.html",
      "title": "Pooling Columns",
      "author": "Carl James Schwarz",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why it is not possible to compare different column poolings.",
        "A sample dataset",
        "Models with 2 rows and different number of columns",
        "Full 2x4 stratified analysis",
        "Reducing to a 2x3 matrix by pooling columns 3 and 4.",
        "Reducing to a 2x2 matrix by pooling columns 1 and 2, and then 3 and 4.",
        "Comparing the estimates",
        "Comparing results with 1 row and different number of columns",
        "Pooling over all rows using physical pooling",
        "Pooling over all rows using logical pooling",
        "Pooling over all rows and last two columns using physical pooling",
        "Complete physical pooling (Pooled Petersen Estimator)",
        "Comparing the estimates of abundance",
        "References"
      ],
      "created": "2019-12-02 08:30:11",
      "modified": "2026-12-01 02:39:53",
      "commits": 3
    },
    {
      "source": "TestingPooledPetersen.Rmd",
      "filename": "TestingPooledPetersen.html",
      "title": "Testing for Pooled Petersen",
      "author": "Carl James Schwarz",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Testing if a Pooled Petersen is appropriate",
        "Fitting the models",
        "Reading in the data",
        "Fully 3x3 stratified analysis",
        "Pooling over all rows using physical pooling",
        "Pooling over all rows and last two columns using physical pooling",
        "Complete physical pooling (Pooled Petersen Estimator)",
        "Get the model objects fitted by TMB and create a report",
        "References"
      ],
      "created": "2019-12-02 08:30:11",
      "modified": "2026-12-01 02:39:53",
      "commits": 3
    },
    {
      "source": "ThingsThatGoWrong.Rmd",
      "filename": "ThingsThatGoWrong.html",
      "title": "Things that can go wrong",
      "author": "Carl James Schwarz",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Things that can go wrong.",
        "Rows are proportional",
        "Rows are approximately proportional",
        "Columns that are all zero",
        "References"
      ],
      "created": "2019-12-02 08:30:11",
      "modified": "2026-12-01 02:39:53",
      "commits": 3
    }
  ],
  "_score": 5.203032887014711,
  "_indexed": true,
  "_nocasepkg": "spas",
  "_universes": [
    "cran",
    "cschwarz-stat-sfu-ca"
  ],
  "_previous": "2026.4.1",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2026.12.3",
      "date": "2026-12-01T03:02:05.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "7c0e7bd80d8b92ca878be91d8a8c37e841715fbb",
      "fileid": "https://r2.ropensci.org/338eb915bd10d773d4d4d0bb7cb901cbfe902a639546dad8ac5cc338488f27a6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46564657281"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2026.12.3",
      "date": "2026-12-01T03:02:05.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "7c0e7bd80d8b92ca878be91d8a8c37e841715fbb",
      "fileid": "https://r2.ropensci.org/e3507e4962ef666e260c8c371fb5a09689b2a2671bd2a5bb71500334f36bf045",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46564657281"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "2026.12.3",
      "date": "2026-12-01T03:02:10.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "7c0e7bd80d8b92ca878be91d8a8c37e841715fbb",
      "fileid": "https://r2.ropensci.org/61f332c3ef6bd917177452a44c2e38f287e8700e6d79fcbb1f669ac22618a207",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46564657281"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "2026.12.3",
      "date": "2026-12-01T03:02:23.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "7c0e7bd80d8b92ca878be91d8a8c37e841715fbb",
      "fileid": "https://r2.ropensci.org/68daeec2b4eeb0bacd792d7c44be6b7ed22dafe12c0b3c8e1afa2fcbab5602a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46564657281"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2026.12.3",
      "date": "2026-12-01T03:02:00.000Z",
      "arch": "emscripten",
      "commit": "7c0e7bd80d8b92ca878be91d8a8c37e841715fbb",
      "fileid": "https://r2.ropensci.org/fee62cfd30e0f2aa6cd9f34845c1891a7da6103915daba87f6e77aa4a4dce92a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46564657281"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2026.12.3",
      "date": "2026-12-01T03:05:41.000Z",
      "arch": "aarch64",
      "commit": "7c0e7bd80d8b92ca878be91d8a8c37e841715fbb",
      "fileid": "https://r2.ropensci.org/7de5f69c96b12de6ca9f593df5c673488dbb1f0a776eff65882dfc3167e193c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46564657281"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2026.12.3",
      "date": "2026-12-01T03:01:03.000Z",
      "arch": "x86_64",
      "commit": "7c0e7bd80d8b92ca878be91d8a8c37e841715fbb",
      "fileid": "https://r2.ropensci.org/84b6dd990ad1dfcee8dd0315a854f2269c5bb461fd015dc0cee794bb85321946",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46564657281"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "2026.12.3",
      "date": "2026-12-01T03:05:36.000Z",
      "arch": "aarch64",
      "commit": "7c0e7bd80d8b92ca878be91d8a8c37e841715fbb",
      "fileid": "https://r2.ropensci.org/4065778745431a52c7160e0710a4c807c1d89d5864545cb16aa7d940defad313",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46564657281"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "2026.12.3",
      "date": "2026-12-01T03:01:05.000Z",
      "arch": "x86_64",
      "commit": "7c0e7bd80d8b92ca878be91d8a8c37e841715fbb",
      "fileid": "https://r2.ropensci.org/e604e338e640718389739ece9523c41d8b6310c7d0da778f6f926faa23961f3b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46564657281"
    }
  ]
}