Skip to content

CARBayes

6.1.1Package record

Spatial Generalised Linear Mixed Models for Areal Unit Data

2packages depend
13.8Kdownloads / year
–test coverage
11/13flavors OK

Overview

About

Implements a class of univariate and multivariate spatial generalised linear mixed models for areal unit data, with inference in a Bayesian setting using Markov chain Monte Carlo (MCMC) simulation using a single or multiple Markov chains. The response variable can be binomial, Gaussian, multinomial, Poisson or zero-inflated Poisson (ZIP), and spatial autocorrelation is modelled by a set of random effects that are assigned a conditional autoregressive (CAR) prior distribution. A number of different models are available for univariate spatial data, including models with no random effects as well as random effects modelled by different types of CAR prior, including the BYM model (Besag et al., 1991, doi:10.1007/BF00116466) and Leroux model (Leroux et al., 2000, doi:10.1007/978-1-4612-1284-3_4). Additionally, a multivariate CAR (MCAR) model for multivariate spatial data is available, as is a two-level hierarchical model for modelling data relating to individuals within areas. Full details are given in the vignette accompanying this package. The initial creation of this package was supported by the Economic and Social Research Council (ESRC) grant RES-000-22-4256, and on-going development has been supported by the Engineering and Physical Science Research Council (EPSRC) grant EP/J017442/1, ESRC grant ES/K006460/1, Innovate UK / Natural Environment Research Council (NERC) grant NE/N007352/1 and the TB Alliance.

Install

Health

CRAN checks
2NOTE11OK
Check messages
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Duncan Lee <Duncan.Lee@glasgow.ac.uk>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Duncan",
                    family = "Lee",
                    role = c("aut", "cre"),
                    email = "duncan.lee@glasgow.ac.uk")
as necessary.

CRAN check page ↗

Slowest check: 13.4 min · r-oldrel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTE2026-06-09
  • ERROR11 OK, 1 NOTE, 1 ERROR2026-06-08
  • NOTE12 OK, 2 NOTE2026-04-22
  • ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 6.1.1
READMENoVignettesYes · 1 · dynamicNEWSNoCitation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Cites a JSS article
Help pages
15includes a package overview page
Examples that run
80%8 run in a plain check · 2 hold no code
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
47%

Downloads

13.8K
CRAN downloads in the past year
Rank #3,581 · ~38/day · ~1.2K/mo
Daily download trend is not available in this view yet.
1.1K30 days
2.9K90 days
13.8K1 year
Compare downloads with other packages →
Also on404 r2u14 autocran148 c2d4u

Repository

16Stars
7Forks
6Open issues
2Open PRs
0Releases
17Commits
1Commit identities
17 commits · Last activity 2021-09-30 · 0% stars, 30d · The default branch showed an older version (5.2.5) than CRAN on 2026-10-21
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
0
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2023-10-23 · 142026-07-07 · 16
PracticesBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/duncanplee/carbayes on 2026-10-21.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)

Installing CARBayes adds 115 packages (64 with compiled code, 117 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, ggplot2 6.0 MB.

Depends (3)
R >= 3.5.0MASSRcpp
LinkingTo (1)
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Imports 2
Depends, Imports or LinkingTo, most downloaded first

People & History

People (from the free-text Author field) (1)

Maintainer since 1.0 (2012)

Releases (37)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 6.1.1Latest
    record
    2024-03-08 · current release · diff ↗
  • 6.1
    record
    2023-11-17 · diff ↗ ·
    added 1 export
    S.RAB
  • 6.0
    record
    2023-08-09 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 5.3
    record
    2022-05-12 · diff ↗ ·
    removed 3 exports
    combine.data.shapefile, summarise.lincomb, summarise.samples
  • R
    R 4.2.0 released · 2022-04-22
  • 5.2.5
    record
    2021-09-30 · diff ↗
  • 5.2.4
    record
    2021-05-31 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 5.2.3
    record
    2021-02-03 · diff ↗
  • 5.2.2
    record
    2021-01-15 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 5.2
    record
    2020-03-13 · diff ↗
Show 37 earlier eventsHide 37 earlier events
  • 5.1.3
    record
    2019-12-12 · diff ↗
  • 5.1.2
    record
    2019-06-21 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 5.1.1
    record
    2018-12-06 · diff ↗
  • 5.1
    record
    2018-09-10 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 5.0
    record
    2017-06-01 · diff ↗ ·
    added 2 exports
    S.CARmultilevel, S.glm
  • R
    R 3.4.0 released · 2017-04-21
  • 4.7
    record
    2017-02-01 · diff ↗
  • 4.6
    record
    2016-06-08 · diff ↗
  • 4.5
    record
    2016-05-07 · diff ↗ ·
    added 1 export
    MVS.CARleroux
  • R
    R 3.3.0 released · 2016-05-03
  • 4.4
    record
    2016-02-03 · diff ↗ ·
    removed 2 exports
    S.CARiar, S.independent
  • 4.3
    record
    2015-09-16 · diff ↗
  • 4.2
    record
    2015-06-30 · diff ↗ ·
    removed 1 export
    S.CARcluster
    added 1 export
    S.CARlocalised
  • R
    R 3.2.0 released · 2015-04-16
  • 4.1
    record
    2015-04-01 · diff ↗ ·
    removed 1 export
    print.carbayes
  • 4.0
    record
    2014-12-16 · diff ↗ ·
    removed 7 exports
    bymCAR.re, clusterCAR.re, dissimilarityCAR.re, iarCAR.re, independent.re, lerouxCAR.re, properCAR.re
    added 8 exports
    S.CARbym, S.CARcluster, S.CARdissimilarity, S.CARiar, S.CARleroux, S.independent, summarise.lincomb, summarise.samples
  • R
    R 3.1.0 released · 2014-04-10
  • 3.0.3
    record
    2013-12-03 · diff ↗
  • 3.0.2
    record
    2013-08-13 · diff ↗
  • 3.0.1
    record
    2013-05-06 · diff ↗
  • 3.0
    record
    2014-04-04 · diff ↗ ·
    removed 18 exports
    poisson.independent, poisson.iarCAR, poisson.lerouxCAR, poisson.properCAR, poisson.bymCAR, poisson.dissimilarityCAR, gaussian.independent, gaussian.iarCAR, gaussian.lerouxCAR, gaussian.properCAR, gaussian.bymCAR, gaussian.dissimilarityCAR, binomial.independent, binomial.iarCAR, binomial.lerouxCAR, binomial.properCAR, binomial.bymCAR, binomial.dissimilarityCAR
    added 7 exports
    bymCAR.re, clusterCAR.re, dissimilarityCAR.re, iarCAR.re, independent.re, lerouxCAR.re, properCAR.re
  • R
    R 3.0.0 released · 2013-04-03
  • 2.15.3
    record
    2013-02-19 · diff ↗ ·
    removed 12 exports
    poisson.dissimilarityCARbinary, poisson.dissimilarityCARcontinuous, poisson.priorWCAR, gaussian.dissimilarityCARbinary, gaussian.dissimilarityCARcontinuous, gaussian.priorWCAR, binomial.dissimilarityCARbinary, binomial.dissimilarityCARcontinuous, binomial.priorWCAR, geary.permutation, moran.permutation, W.prior.elicit
    added 5 exports
    poisson.dissimilarityCAR, gaussian.dissimilarityCAR, binomial.dissimilarityCAR, combine.data.shapefile, highlight.borders
  • 2.15.2
    record
    2012-08-27 · diff ↗
  • 2.15.1
    record
    2012-06-20 · diff ↗
  • 2.0
    record
    2013-12-04 · diff ↗
  • 1.6
    record
    2013-11-05 · diff ↗ ·
    added 1 export
    print.carbayes
  • 1.5
    record
    2013-09-02 · diff ↗
  • 1.4
    record
    2013-05-06 · diff ↗
  • 1.3
    record
    2013-03-05 · diff ↗
  • 1.2
    record
    2012-10-31 · diff ↗
  • 1.1
    record
    2012-08-27 · diff ↗ ·
    removed 6 exports
    poisson.localisedbinaryCAR, poisson.localisedcontinuousCAR, gaussian.localisedbinaryCAR, gaussian.localisedcontinuousCAR, binomial.localisedbinaryCAR, binomial.localisedcontinuousCAR
    added 11 exports
    poisson.dissimilarityCARbinary, poisson.dissimilarityCARcontinuous, poisson.priorWCAR, gaussian.dissimilarityCARbinary, gaussian.dissimilarityCARcontinuous, gaussian.priorWCAR, binomial.dissimilarityCARbinary, binomial.dissimilarityCARcontinuous, binomial.priorWCAR, geary.permutation, W.prior.elicit
  • R
    R 2.15.0 released · 2012-03-30
  • 1.0
    record
    2012-03-27
  • R
    R 2.14.0 released · 2011-10-31

Package metadata

First published
2012-03-27
Total releases
37 / 14 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.5.0
Download size
4.3 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("CARBayes")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.18637/jss.v055.i13.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for CARBayes version 6.1.1 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy