{
  "_id": "6a1bec9f1d7bb097a0a1fdb6",
  "Package": "RSTr",
  "Type": "Package",
  "Title": "Gibbs Samplers for Discrete Bayesian Spatiotemporal Models",
  "Version": "1.1.4",
  "Authors@R": "c(person(given = \"David\",\nfamily = \"DeLara\",\nrole = c(\"aut\", \"cre\"),\nemail = \"sfq1@cdc.gov\",\ncomment = c(\"https://orcid.org/0000-0003-0485-7549\")),\nperson(\"Centers for Disease Control and Prevention\",\nrole = c(\"aut\", \"cph\"),\ncomment = c(\"https://ror.org/042twtr12\")))",
  "Maintainer": "David DeLara <sfq1@cdc.gov>",
  "URL": "https://cehi-code-repos.github.io/RSTr/",
  "Description": "Takes Poisson or Binomial discrete spatial data and runs a\nGibbs sampler for a variety of Spatiotemporal Conditional\nAutoregressive (CAR) models. Includes measures to prevent\nestimate over-smoothing through a restriction of model\ninformativeness for select models. Also provides tools to load\noutput and get median estimates. Implements methods from Besag,\nYork, and Mollié (1991) \"Bayesian image restoration, with two\napplications in spatial statistics\" <doi:10.1007/BF00116466>,\nGelfand and Vounatsou (2003) \"Proper multivariate conditional\nautoregressive models for spatial data analysis\"\n<doi:10.1093/biostatistics/4.1.11>, Quick et al. (2017)\n\"Multivariate spatiotemporal modeling of age-specific stroke\nmortality\" <doi:10.1214/17-AOAS1068>, and Quick et al. (2021)\n\"Evaluating the informativeness of the Besag-York-Mollié CAR\nmodel\" <doi:10.1016/j.sste.2021.100420>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr, rmarkdown",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-31 08:03:38 UTC",
    "User": "root"
  },
  "Author": "David DeLara [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-0485-7549>), Centers for Disease\nControl and Prevention [aut, cph] (https://ror.org/042twtr12)",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-01-31 07:01:14 UTC",
  "RemoteUrl": "https://github.com/cran/RSTr",
  "RemoteRef": "HEAD",
  "RemoteSha": "8abc989ad4e19e5f73c7e363d26c6cc89960f694",
  "MD5sum": "444774bae66bcdbc57dc2a06347a0f17",
  "_user": "cran",
  "_type": "src",
  "_file": "RSTr_1.1.4.tar.gz",
  "_fileid": "1586e614afe5d69bef500ca736d386d625fde492b3ae0817e8d6cf108a17f076",
  "_filesize": 2083495,
  "_sha256": "1586e614afe5d69bef500ca736d386d625fde492b3ae0817e8d6cf108a17f076",
  "_created": "2026-05-31T08:03:38.000Z",
  "_published": "2026-05-31T08:09:03.546Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78710770200,
      "time": 230,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7315091190"
    },
    {
      "job": 78710770204,
      "time": 215,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7315089307"
    },
    {
      "job": 78710770191,
      "time": 208,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7315088363"
    },
    {
      "job": 78710770197,
      "time": 207,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7315088213"
    },
    {
      "job": 78710456023,
      "time": 321,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7315062311"
    },
    {
      "job": 78710770173,
      "time": 178,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7315084341"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26707127048",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/RSTr",
  "_commit": {
    "id": "8abc989ad4e19e5f73c7e363d26c6cc89960f694",
    "author": "David DeLara <sfq1@cdc.gov>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.1.4\n",
    "time": 1769842874
  },
  "_maintainer": {
    "name": "David DeLara",
    "email": "sfq1@cdc.gov",
    "login": "sfq-1",
    "description": "",
    "uuid": 180326293,
    "orcid": "0000-0003-0485-7549"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.3.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.1.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "version": ">= 15.2.2.1",
      "role": "LinkingTo"
    },
    {
      "package": "RcppDist",
      "version": ">= 0.1.1.1",
      "role": "LinkingTo"
    },
    {
      "package": "abind",
      "role": "Imports"
    },
    {
      "package": "matrixStats",
      "role": "Imports"
    },
    {
      "package": "spdep",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "sf",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0.0",
      "date": "2026-01-17"
    },
    {
      "name": "1.1.4",
      "date": "2026-01-31"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "sfq-1",
      "count": 2,
      "uuid": 180326293
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 148,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/RSTr"
  },
  "_devurl": "https://github.com/cehi-code-repos/rstr",
  "_pkgdown": "https://cehi-code-repos.github.io/RSTr/",
  "_searchresults": 24,
  "_topics": [
    "openblas",
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/RSTr.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/cehi-code-repos/rstr",
  "_realowner": "cehi-code-repos",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2026-01-17"
    },
    {
      "version": "1.1.4",
      "date": "2026-01-31"
    }
  ],
  "_exports": [
    "add_neighbors",
    "age_standardize",
    "aggregate_count",
    "aggregate_samples",
    "car",
    "get_credible_interval",
    "get_estimates",
    "get_medians",
    "get_relative_precision",
    "load_model",
    "load_samples",
    "long_to_list_matrix",
    "mcar",
    "mstcar",
    "rcar",
    "split_sample_groups",
    "standardize_samples",
    "suppress_estimates",
    "update_model"
  ],
  "_datasets": [
    {
      "name": "maexample",
      "title": "Massachusetts Heart Attack Mortality Data",
      "object": "maexample",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Notes",
        "Year",
        "Year.Code",
        "County",
        "County.Code",
        "Sex",
        "Sex.Code",
        "Deaths",
        "Population",
        "Crude.Rate"
      ],
      "rows": 117,
      "table": true,
      "tojson": true
    },
    {
      "name": "mamap",
      "title": "Massachusetts Shapefile",
      "object": "mamap",
      "class": [
        "sf",
        "data.frame"
      ],
      "fields": [
        "STATEFP",
        "COUNTYFP",
        "COUNTYNS",
        "AFFGEOID",
        "GEOID",
        "NAME",
        "NAMELSAD",
        "STUSPS",
        "STATE_NAME",
        "LSAD",
        "ALAND",
        "AWATER",
        "geometry"
      ],
      "rows": 14,
      "table": false,
      "tojson": true
    },
    {
      "name": "miadj",
      "title": "Michigan Adjacency Data",
      "object": "miadj",
      "class": [
        "nb"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "miheart",
      "title": "Michigan Heart Attack Mortality Data",
      "object": "miheart",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "minsample",
      "title": "Samples Generated for Michigan data",
      "object": "minsample",
      "class": [
        "array"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "minsplit",
      "title": "Age- and Sex-stratified Samples for Michigan data",
      "object": "minsplit",
      "class": [
        "array"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "mishp",
      "title": "Michigan Shapefile",
      "object": "mishp",
      "class": [
        "sf",
        "data.frame"
      ],
      "fields": [
        "STATEFP",
        "COUNTYFP",
        "COUNTYNS",
        "AFFGEOID",
        "GEOID",
        "NAME",
        "NAMELSAD",
        "STUSPS",
        "STATE_NAME",
        "LSAD",
        "ALAND",
        "AWATER",
        "geometry"
      ],
      "rows": 83,
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "RSTr-package",
      "title": "Gibbs Samplers for Discrete Bayesian Spatiotemporal Models",
      "topics": [
        "RSTr-package",
        "RSTr"
      ]
    },
    {
      "page": "add_neighbors",
      "title": "Add neighbors to adjacency information",
      "topics": [
        "add_neighbors"
      ]
    },
    {
      "page": "age_standardize",
      "title": "Age-standardize model objects",
      "topics": [
        "age_standardize"
      ]
    },
    {
      "page": "aggregate_count",
      "title": "Aggregate count arrays",
      "topics": [
        "aggregate_count"
      ]
    },
    {
      "page": "aggregate_samples",
      "title": "Aggregate samples by non-age group",
      "topics": [
        "aggregate_samples"
      ]
    },
    {
      "page": "car",
      "title": "Create CAR model",
      "topics": [
        "car",
        "mcar",
        "mstcar",
        "rcar"
      ]
    },
    {
      "page": "get_estimates",
      "title": "Extract estimates from RSTr model object",
      "topics": [
        "get_estimates"
      ]
    },
    {
      "page": "get_medians",
      "title": "Generate medians, credible intervals, and relative precisions",
      "topics": [
        "get_credible_interval",
        "get_medians",
        "get_relative_precision"
      ]
    },
    {
      "page": "load_model",
      "title": "Load model",
      "topics": [
        "load_model"
      ]
    },
    {
      "page": "load_samples",
      "title": "Load MCMC samples",
      "topics": [
        "load_samples"
      ]
    },
    {
      "page": "long_to_list_matrix",
      "title": "Generate count data for RSTr object",
      "topics": [
        "long_to_list_matrix"
      ]
    },
    {
      "page": "maexample",
      "title": "Massachusetts Heart Attack Mortality Data",
      "topics": [
        "maexample"
      ]
    },
    {
      "page": "mamap",
      "title": "Massachusetts Shapefile",
      "topics": [
        "mamap"
      ]
    },
    {
      "page": "miadj",
      "title": "Michigan Adjacency Data",
      "topics": [
        "miadj"
      ]
    },
    {
      "page": "miheart",
      "title": "Michigan Heart Attack Mortality Data",
      "topics": [
        "miheart"
      ]
    },
    {
      "page": "minsample",
      "title": "Samples Generated for Michigan data",
      "topics": [
        "minsample"
      ]
    },
    {
      "page": "minsplit",
      "title": "Age- and Sex-stratified Samples for Michigan data",
      "topics": [
        "minsplit"
      ]
    },
    {
      "page": "mishp",
      "title": "Michigan Shapefile",
      "topics": [
        "mishp"
      ]
    },
    {
      "page": "split_sample_groups",
      "title": "Split sample groups",
      "topics": [
        "split_sample_groups"
      ]
    },
    {
      "page": "standardize_samples",
      "title": "Age-standardize samples",
      "topics": [
        "standardize_samples"
      ]
    },
    {
      "page": "suppress_estimates",
      "title": "Suppress estimates based on reliability criteria",
      "topics": [
        "suppress_estimates"
      ]
    },
    {
      "page": "update_model",
      "title": "Update model",
      "topics": [
        "update_model"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/RSTr/raw/HEAD/man/figures/logo.png",
  "_rundeps": [
    "abind",
    "boot",
    "class",
    "classInt",
    "DBI",
    "deldir",
    "e1071",
    "KernSmooth",
    "lattice",
    "MASS",
    "matrixStats",
    "proxy",
    "Rcpp",
    "RcppArmadillo",
    "RcppDist",
    "s2",
    "sf",
    "sp",
    "spData",
    "spdep",
    "units",
    "wk"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "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"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_vignettes": [
    {
      "source": "RSTr-event.Rmd",
      "filename": "RSTr-event.html",
      "title": "01: Understanding and Preparing Your Event Data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Requirements",
        "Example: CDC WONDER dataset",
        "Data setup for other models",
        "Closing Thoughts"
      ],
      "created": "2026-01-17 20:10:16",
      "modified": "2026-01-17 20:10:16",
      "commits": 1
    },
    {
      "source": "RSTr-adjacency.Rmd",
      "filename": "RSTr-adjacency.html",
      "title": "02: Understanding and Preparing Your Adjacency Structure",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Requirements",
        "Example: Massachusetts Map Data",
        "Closing Thoughts"
      ],
      "created": "2026-01-17 20:10:16",
      "modified": "2026-01-31 07:01:14",
      "commits": 2
    },
    {
      "source": "RSTr-car.Rmd",
      "filename": "RSTr-car.html",
      "title": "03: The CAR Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "The *car() functions",
        "The CAR model",
        "The RCAR model",
        "The MCAR model",
        "The MSTCAR model",
        "Arguments of the *car() function",
        "The inits argument",
        "The priors argument",
        "The method argument",
        "m0 and A",
        "The update_rho argument",
        "The seed argument",
        "The ignore_checks argument",
        "Closing Thoughts"
      ],
      "created": "2026-01-17 20:10:16",
      "modified": "2026-01-17 20:10:16",
      "commits": 1
    },
    {
      "source": "RSTr-agestandardize.Rmd",
      "filename": "RSTr-agestandardize.html",
      "title": "04: Generating Estimates: Age-standardization",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "The get_estimates() function",
        "The age_standardization() function",
        "Final thoughts"
      ],
      "created": "2026-01-17 20:10:16",
      "modified": "2026-01-31 07:01:14",
      "commits": 2
    },
    {
      "source": "RSTr-reliability.Rmd",
      "filename": "RSTr-reliability.html",
      "title": "05: Generating Estimates: Reliability and Suppression",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Traceplots",
        "Final thoughts"
      ],
      "created": "2026-01-17 20:10:16",
      "modified": "2026-01-31 07:01:14",
      "commits": 2
    },
    {
      "source": "RSTr-informativeness.Rmd",
      "filename": "RSTr-informativeness.html",
      "title": "06: Model Informativeness",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "How does spatial smoothing work?",
        "Model informativeness",
        "The Restricted CAR (RCAR) model",
        "Restricted models and age-standardization",
        "The RCAR Model, Reliability, and Suppression",
        "Choosing between restricted vs unrestricted models",
        "Future developments",
        "Final thoughts"
      ],
      "created": "2026-01-17 20:10:16",
      "modified": "2026-01-31 07:01:14",
      "commits": 2
    },
    {
      "source": "RSTr-samples.Rmd",
      "filename": "RSTr-samples.html",
      "title": "07: Sample Processing",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "The load_samples() function",
        "Group aggregation",
        "Age-standardization",
        "Estimates and Reliability",
        "Closing Thoughts"
      ],
      "created": "2026-01-17 20:10:16",
      "modified": "2026-01-31 07:01:14",
      "commits": 2
    },
    {
      "source": "RSTr-initialvalues.Rmd",
      "filename": "RSTr-initialvalues.html",
      "title": "08: Initial Values",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Initial value specifications",
        "Initial values for the MSTCAR model",
        "Initial values for the MCAR model",
        "Initial values for the CAR/RCAR model"
      ],
      "created": "2026-01-17 20:10:16",
      "modified": "2026-01-17 20:10:16",
      "commits": 1
    },
    {
      "source": "RSTr-priors.Rmd",
      "filename": "RSTr-priors.html",
      "title": "09: Priors",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Prior specifications",
        "Priors for the MSTCAR model",
        "Priors for the MCAR model",
        "Priors for the CAR/RCAR model"
      ],
      "created": "2026-01-17 20:10:16",
      "modified": "2026-01-17 20:10:16",
      "commits": 1
    },
    {
      "source": "RSTr.Rmd",
      "filename": "RSTr.html",
      "title": "An Introduction to the RSTr Package",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Models",
        "Restricted models to prevent over-smoothing",
        "Datasets",
        "Functions",
        "Example Model",
        "mstcar()",
        "get_estimates()",
        "age_standardize()",
        "suppress_estimates()",
        "Illustrative Example: Mapping Estimates",
        "Closing Thoughts"
      ],
      "created": "2026-01-17 20:10:16",
      "modified": "2026-01-31 07:01:14",
      "commits": 2
    },
    {
      "source": "RSTr-models.Rmd",
      "filename": "RSTr-models.html",
      "title": "Appendix A: The CAR Hierarchical Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "The CAR Hierarchical Model",
        "The MCAR Hierarchical Model",
        "The MSTCAR Hierarchical Model"
      ],
      "created": "2026-01-17 20:10:16",
      "modified": "2026-01-17 20:10:16",
      "commits": 1
    },
    {
      "source": "RSTr-troubleshoot.Rmd",
      "filename": "RSTr-troubleshoot.html",
      "title": "Appendix B: Troubleshooting",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Generic errors and warnings",
        "Errors and warnings with list data",
        "Errors and warnings with list sp_data",
        "inits and priors",
        "ignore_checks"
      ],
      "created": "2026-01-17 20:10:16",
      "modified": "2026-01-17 20:10:16",
      "commits": 1
    }
  ],
  "_score": 3.760422483423212,
  "_indexed": false,
  "_nocasepkg": "rstr",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://cehi-code-repos.r-universe.dev/RSTr",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.4",
      "date": "2026-05-31T08:07:08.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "8abc989ad4e19e5f73c7e363d26c6cc89960f694",
      "fileid": "40158520f1e1f6ae0ab72a0e6faeb5fb1275b70f63169a42409a8eceda58a1ac",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26707127048"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.4",
      "date": "2026-05-31T08:06:59.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "8abc989ad4e19e5f73c7e363d26c6cc89960f694",
      "fileid": "dccab2f9af8ae77a751a676213520cb1909b58a885149e92e715eb1bde054fcb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26707127048"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.4",
      "date": "2026-05-31T08:06:50.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "8abc989ad4e19e5f73c7e363d26c6cc89960f694",
      "fileid": "63a2761e8f9ea5ba9dbbbd7db209d4b0c00e2d36f92572f6cb18af18fd7cc096",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26707127048"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.4",
      "date": "2026-05-31T08:06:58.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "8abc989ad4e19e5f73c7e363d26c6cc89960f694",
      "fileid": "99aa5e735fd633e2f2cbf56efae7bba44aea3915c70e2efc63ccb0ed77338bf3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26707127048"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.4",
      "date": "2026-05-31T08:07:11.000Z",
      "arch": "emscripten",
      "commit": "8abc989ad4e19e5f73c7e363d26c6cc89960f694",
      "fileid": "2bbcb4e511594c4690f1d97cf37b4e5393e6bd948d75d6b40942dbd4714f2970",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26707127048"
    }
  ]
}