{
  "_id": "6ae31b7a3d0f299392dd0cff",
  "Package": "zoid",
  "Title": "Bayesian Zero-and-One Inflated Dirichlet Regression Modelling",
  "Version": "1.3.1",
  "Authors@R": "c(person(given = \"Eric J.\",\nfamily = \"Ward\",\nrole = c(\"aut\", \"cre\"),\nemail = \"eric.ward@noaa.gov\",\ncomment = c(ORCID = \"0000-0002-4359-0296\")),\nperson(given = \"Alexander J.\",\nfamily = \"Jensen\",\nrole = c(\"aut\"),\nemail = \"jensena1@uw.edu\",\ncomment = c(ORCID = \"0000-0002-2911-8884\")),\nperson(given = \"Ryan P.\",\nfamily = \"Kelly\",\nrole = c(\"aut\"),\nemail = \"rpkelly@uw.edu\",\ncomment = c(ORCID = \"0000-0001-5037-2441\")),\nperson(given = \"Andrew O.\",\nfamily = \"Shelton\",\nrole = c(\"aut\"),\nemail = \"ole.shelton@noaa.gov\",\ncomment = c(ORCID = \"0000-0002-8045-6141\")),\nperson(given = \"William H.\",\nfamily = \"Satterthwaite\",\nrole = c(\"aut\"),\nemail = \"will.satterthwaite@noaa.gov\",\ncomment = c(ORCID = \"0000-0002-0436-7390\")),\nperson(given = \"Eric C.\",\nfamily = \"Anderson\",\nrole = c(\"aut\"),\nemail = \"eric.anderson@noaa.gov\",\ncomment = c(ORCID = \"0000-0003-1326-0840\")))",
  "Description": "Fits Dirichlet regression and zero-and-one inflated\nDirichlet regression with Bayesian methods implemented in Stan.\nThese models are sometimes referred to as trinomial mixture\nmodels; covariates and overdispersion can optionally be\nincluded.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.2.3",
  "Biarch": "true",
  "URL": "https://noaa-nwfsc.github.io/zoid/",
  "BugReports": "https://github.com/noaa-nwfsc/zoid/issues",
  "SystemRequirements": "GNU make",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-29 10:03:04 UTC",
    "User": "root"
  },
  "Author": "Eric J. Ward [aut, cre]\n(<https://orcid.org/0000-0002-4359-0296>), Alexander J. Jensen\n[aut] (<https://orcid.org/0000-0002-2911-8884>), Ryan P. Kelly\n[aut] (<https://orcid.org/0000-0001-5037-2441>), Andrew O.\nShelton [aut] (<https://orcid.org/0000-0002-8045-6141>),\nWilliam H. Satterthwaite [aut]\n(<https://orcid.org/0000-0002-0436-7390>), Eric C. Anderson\n[aut] (<https://orcid.org/0000-0003-1326-0840>)",
  "Maintainer": "Eric J. Ward <eric.ward@noaa.gov>",
  "Config/pak/sysreqs": "make",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2024-01-25 02:50:19 UTC",
  "RemoteUrl": "https://github.com/cran/zoid",
  "RemoteRef": "HEAD",
  "RemoteSha": "72f151b47f62bf2a34a2fd48ca923cf777a480c6",
  "_user": "cran",
  "_type": "src",
  "_file": "zoid_1.3.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/4ef265afbdb1c72476bcf41d0d912bd1006e128b86dc9e86d5301c9eddd8c129",
  "_filesize": 352672,
  "_sha256": "4ef265afbdb1c72476bcf41d0d912bd1006e128b86dc9e86d5301c9eddd8c129",
  "_expires": "2027-02-06T10:09:59.000Z",
  "_created": "2026-10-29T10:03:04.000Z",
  "_published": "2026-10-29T10:10:01.880Z",
  "_upstream": "https://github.com/cran/zoid",
  "_status": "success",
  "_maintainer": {
    "name": "Eric J. Ward",
    "email": "eric.ward@noaa.gov",
    "login": "ericward-noaa",
    "linkedin": "in/eric-ward-42b76b3",
    "description": "Statistics, fisheries, conservation biology @ Northwest Fisheries Science Center, Seattle WA ",
    "uuid": 5046884,
    "orcid": "0000-0002-4359-0296"
  },
  "_jobs": [
    {
      "job": 123382448172,
      "time": 193,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12888229209"
    },
    {
      "job": 123382448307,
      "time": 250,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12887579788"
    },
    {
      "job": 123382448527,
      "time": 199,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12887839237"
    },
    {
      "job": 123382448362,
      "time": 223,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12887889175"
    },
    {
      "job": 123379543375,
      "time": 381,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12888841897"
    },
    {
      "job": 123382448150,
      "time": 170,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12888697273"
    },
    {
      "job": 123382448316,
      "time": 306,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12888912425"
    },
    {
      "job": 123382448257,
      "time": 299,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12889470477"
    },
    {
      "job": 123382448277,
      "time": 295,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12888359689"
    },
    {
      "job": 123382448384,
      "time": 256,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12889131023"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/40853733341",
  "_commit": {
    "id": "72f151b47f62bf2a34a2fd48ca923cf777a480c6",
    "author": "Eric J. Ward <eric.ward@noaa.gov>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.3.1\n",
    "time": 1706151019
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.4.0",
      "role": "Depends"
    },
    {
      "package": "BH",
      "version": ">= 1.66.0",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "version": ">= 0.3.3.3.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "LinkingTo"
    },
    {
      "package": "rstan",
      "version": ">= 2.26.0",
      "role": "LinkingTo"
    },
    {
      "package": "StanHeaders",
      "version": ">= 2.26.0",
      "role": "LinkingTo"
    },
    {
      "package": "gtools",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "version": ">= 2.26.0",
      "role": "Imports"
    },
    {
      "package": "rstantools",
      "version": ">= 2.1.1",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "ericward-noaa",
      "count": 4,
      "uuid": 5046884
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 276,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/zoid"
  },
  "_devurl": "https://github.com/noaa-nwfsc/zoid",
  "_pkgdown": "https://noaa-nwfsc.github.io/zoid/",
  "_searchresults": 24,
  "_topics": [
    "onetbb",
    "cpp"
  ],
  "_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/zoid.html"
  ],
  "_homeurl": "https://github.com/noaa-nwfsc/zoid",
  "_realowner": "noaa-nwfsc",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2021-11-15"
    },
    {
      "version": "1.1.0",
      "date": "2022-02-09"
    },
    {
      "version": "1.2.0",
      "date": "2023-09-11"
    },
    {
      "version": "1.3.1",
      "date": "2024-01-24"
    }
  ],
  "_exports": [
    "broken_stick",
    "fit_prior",
    "fit_zoid",
    "get_fitted",
    "get_pars"
  ],
  "_datasets": [
    {
      "name": "chinook",
      "title": "Data from Satterthwaite, W.H., Ciancio, J., Crandall, E., Palmer-Zwahlen, M.L., Grover, A.M., O’Farrell, M.R., Anson, E.C., Mohr, M.S. & Garza, J.C. (2015). Stock composition and ocean spatial distribution from California recreational chinook salmon fisheries using genetic stock identification. Fisheries Research, 170, 166–178. The data genetic data collected from port-based sampling of recreationally-landed Chinook salmon in California from 1998-2002.",
      "object": "chinook",
      "class": [
        "data.frame"
      ],
      "fields": [
        "year",
        "season",
        "area",
        "CVspring",
        "CVfall",
        "CVwinter",
        "CAcoast",
        "Klamath",
        "Rogue",
        "Other"
      ],
      "rows": 60,
      "table": true,
      "tojson": true
    },
    {
      "name": "coddiet",
      "title": "Data from Magnussen, E. 2011. Food and feeding habits of cod (Gadus morhua) on the Faroe Bank. – ICES Journal of Marine Science, 68: 1909–1917. The data here are Table 3 from the paper, with sample proportions (columns w) multiplied by total weight to yield total grams (g) for each sample-diet item combination. Dashes have been replaced with 0s.",
      "object": "coddiet",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Year",
        "Season",
        "Hydrozoa",
        "Anthozoa",
        "Scleractinia",
        "Polychaeta",
        "Gastropoda",
        "Bivalvia",
        "Loligo.forbesi",
        "Crustacea.spp",
        "Meganyctiphanes.sp",
        "Pandalus.montagui",
        "Lithodes.maja",
        "Munida.sp.",
        "Galathea.intermedia",
        "Galathea.sp.",
        "Galathea.nexa",
        "Hyas.coarctatus",
        "Hyas.sp.",
        "Inachus.leptochirus",
        "Atelecyclus.rotundatus",
        "Liocarcinus.holsatus",
        "Liocarcinus.turbeculatus",
        "Ophiura.sp",
        "Amphiura.sp.",
        "Pisces.spp",
        "Ammodytes.sp",
        "Ammodytes.tobianus",
        "Callionymus.lyra",
        "Pleuronectidae",
        "Stones",
        "Other"
      ],
      "rows": 10,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "zoid-package",
      "title": "The 'zoid' package.",
      "topics": [
        "zoid-package",
        "trinomix"
      ]
    },
    {
      "page": "broken_stick",
      "title": "Random generation of datasets using the dirichlet broken stick method",
      "topics": [
        "broken_stick"
      ]
    },
    {
      "page": "chinook",
      "title": "Data from Satterthwaite, W.H., Ciancio, J., Crandall, E., Palmer-Zwahlen, M.L., Grover, A.M., O’Farrell, M.R., Anson, E.C., Mohr, M.S. & Garza, J.C. (2015). Stock composition and ocean spatial distribution from California recreational chinook salmon fisheries using genetic stock identification. Fisheries Research, 170, 166–178. The data genetic data collected from port-based sampling of recreationally-landed Chinook salmon in California from 1998-2002.",
      "topics": [
        "chinook"
      ]
    },
    {
      "page": "coddiet",
      "title": "Data from Magnussen, E. 2011. Food and feeding habits of cod (Gadus morhua) on the Faroe Bank. – ICES Journal of Marine Science, 68: 1909–1917. The data here are Table 3 from the paper, with sample proportions (columns w) multiplied by total weight to yield total grams (g) for each sample-diet item combination. Dashes have been replaced with 0s.",
      "topics": [
        "coddiet"
      ]
    },
    {
      "page": "fit_dirichlet",
      "title": "Extract point estimates of compositions from fitted model.",
      "topics": [
        "fit_dirichlet"
      ]
    },
    {
      "page": "fit_prior",
      "title": "Find appropriate standard deviations for prior",
      "topics": [
        "fit_prior"
      ]
    },
    {
      "page": "fit_zoid",
      "title": "Fit a trinomial mixture model with Stan",
      "topics": [
        "fit_zoid"
      ]
    },
    {
      "page": "get_fitted",
      "title": "Extract estimates of predicted latent proportions.",
      "topics": [
        "get_fitted"
      ]
    },
    {
      "page": "get_pars",
      "title": "Extract parameters from fitted model.",
      "topics": [
        "get_pars"
      ]
    },
    {
      "page": "parse_re_formula",
      "title": "Fit a trinomial mixture model that optionally includes covariates to estimate effects of factor or continuous variables on proportions.",
      "topics": [
        "parse_re_formula"
      ]
    },
    {
      "page": "rmspe_calc",
      "title": "Find appropriate prior for a given target distribution.",
      "topics": [
        "rmspe_calc"
      ]
    }
  ],
  "_rundeps": [
    "abind",
    "backports",
    "BH",
    "callr",
    "checkmate",
    "cli",
    "cpp11",
    "desc",
    "distributional",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "gtools",
    "inline",
    "isoband",
    "labeling",
    "lifecycle",
    "loo",
    "magrittr",
    "matrixStats",
    "numDeriv",
    "otel",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "posterior",
    "processx",
    "ps",
    "QuickJSR",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "rlang",
    "rstan",
    "rstantools",
    "S7",
    "scales",
    "StanHeaders",
    "tensorA",
    "tibble",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libtbb",
      "package": "libtbb12",
      "headers": "libtbb-dev",
      "source": "onetbb",
      "version": "2022.3.0-2",
      "name": "onetbb",
      "homepage": "https://uxlfoundation.github.io/oneTBB/",
      "description": "parallelism library for C++ - runtime files"
    },
    {
      "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": "a01_fitting.Rmd",
      "filename": "a01_fitting.html",
      "title": "Fitting models with zoid",
      "author": "",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Fish stomach contents example",
        "Overdispersion or not?",
        "Model selection",
        "Summarizing estimates",
        "Random effects"
      ],
      "created": "2021-11-15 07:10:02",
      "modified": "2024-01-25 02:50:19",
      "commits": 2
    },
    {
      "source": "a04_priors.Rmd",
      "filename": "a04_priors.html",
      "title": "Prior sensitivity for overdispersion",
      "author": "",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Fish stomach contents example",
        "Does scale of the data impact precision of the posterior estimates?"
      ],
      "created": "2021-11-15 07:10:02",
      "modified": "2021-11-15 07:10:02",
      "commits": 1
    },
    {
      "source": "a03_beta_priors.Rmd",
      "filename": "a03_beta_priors.html",
      "title": "Priors for compositions",
      "author": "",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Dirichlet priors"
      ],
      "created": "2021-11-15 07:10:02",
      "modified": "2021-11-15 07:10:02",
      "commits": 1
    },
    {
      "source": "a02_simulating.Rmd",
      "filename": "a02_simulating.html",
      "title": "Simulating data",
      "author": "",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulating data"
      ],
      "created": "2021-11-15 07:10:02",
      "modified": "2021-11-15 07:10:02",
      "commits": 1
    }
  ],
  "_score": 2.9822712330395684,
  "_indexed": false,
  "_nocasepkg": "zoid",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://noaa-nwfsc.r-universe.dev/zoid",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.1",
      "date": "2026-10-29T10:06:18.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "72f151b47f62bf2a34a2fd48ca923cf777a480c6",
      "fileid": "https://r2.ropensci.org/1bd5a7e63cd2624ad4c61a042bdf5d29282647bdc936744e6549384b42dbc084",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40853733341"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.1",
      "date": "2026-10-29T10:06:42.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "72f151b47f62bf2a34a2fd48ca923cf777a480c6",
      "fileid": "https://r2.ropensci.org/3d71acfb4e0032851c0c3726e2479ad4ec17c172abb68088a77f7689e93f5cf7",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40853733341"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.1",
      "date": "2026-10-29T10:06:21.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "72f151b47f62bf2a34a2fd48ca923cf777a480c6",
      "fileid": "https://r2.ropensci.org/b64ec8a5d75b0f43b90d09847f88ad1147404d2ec0460fc81f73e08b2a49d9b1",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40853733341"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.1",
      "date": "2026-10-29T10:06:42.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "72f151b47f62bf2a34a2fd48ca923cf777a480c6",
      "fileid": "https://r2.ropensci.org/5c6a9715d94274a65133ba8e980f4a1c6a16b8c3799bb8824ee5d5f77448f76c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40853733341"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.1",
      "date": "2026-10-29T10:06:49.000Z",
      "arch": "emscripten",
      "commit": "72f151b47f62bf2a34a2fd48ca923cf777a480c6",
      "fileid": "https://r2.ropensci.org/73e9d21caf6589f3aade462539408674622e04f185b3adbae5ae93c5bd39f11e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40853733341"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.1",
      "date": "2026-10-29T10:07:48.000Z",
      "arch": "aarch64",
      "commit": "72f151b47f62bf2a34a2fd48ca923cf777a480c6",
      "fileid": "https://r2.ropensci.org/9f551eebd2cf5187b8af10c7ab37182ee46240cfa23e1b3bea5ddaa946149918",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40853733341"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.1",
      "date": "2026-10-29T10:06:03.000Z",
      "arch": "x86_64",
      "commit": "72f151b47f62bf2a34a2fd48ca923cf777a480c6",
      "fileid": "https://r2.ropensci.org/1c259100df6e260de41b79d570c4ac9ad7d8dd7ab2c3fa33834e9af806900775",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40853733341"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3.1",
      "date": "2026-10-29T10:07:41.000Z",
      "arch": "aarch64",
      "commit": "72f151b47f62bf2a34a2fd48ca923cf777a480c6",
      "fileid": "https://r2.ropensci.org/846f960c7ed0c46615ac8d8e41ad058dc2fa7f0011cadef2e0876e8c5a69f742",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40853733341"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3.1",
      "date": "2026-10-29T10:06:00.000Z",
      "arch": "x86_64",
      "commit": "72f151b47f62bf2a34a2fd48ca923cf777a480c6",
      "fileid": "https://r2.ropensci.org/0d224df574a03e0ffbc8c4cec6d247c35740e3f46e77a909e12e64aa320e771b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40853733341"
    }
  ]
}