Learn R Programming

⚠️There's a newer version (6.1.1) of this package.Take me there.

CARBayes (version 4.2)

Spatial Generalised Linear Mixed Models for Areal Unit Data

Description

Implements a class of spatial generalised linear mixed models for areal unit data, with inference in a Bayesian setting using Markov chain Monte Carlo (McMC) simulation. The response variable can be binomial, Gaussian or Poisson. The spatial autocorrelation is modelled by a set of random effects, which are assigned a conditional autoregressive (CAR) prior distribution. A number of different CAR priors are available for the random effects, and 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 is supported by the Engineering and Physical Science Research Council (EPSRC) grant EP/J017442/1.

Copy Link

Version

Install

install.packages('CARBayes')

Monthly Downloads

847

Version

4.2

License

GPL (>= 2)

Maintainer

Duncan Lee

Last Published

June 30th, 2015

Functions in CARBayes (4.2)

summarise.samples

Summarise a matrix of Markov chain Monte Carlo samples.
highlight.borders

Creates a SpatialPoints object identifying a subset of borders between neighbouring areas.
S.CARbym

Fit a spatial generalised linear mixed model to data, where the random effects have a BYM conditional autoregressive prior.
CARBayes-package

Spatial Generalised Linear Mixed Models for Areal Unit Data
combine.data.shapefile

Combines a data frame with a shapefile to create a SpatialPolygonsDataFrame object.
S.CARlocalised

Fit a spatial generalised linear mixed model to data, where the random effects have conditional autoregressive prior and are augmented with a piecewise constant intercept term.
S.CARdissimilarity

Fit a spatial generalised linear mixed model to data, where the random effects have a localised conditional autoregressive prior.
S.CARleroux

Fit a spatial generalised linear mixed model to data, where the random effects have a Leroux conditional autoregressive prior.
S.CARiar

Fit a spatial generalised linear mixed model to data, where the random effects have an intrinsic conditional autoregressive prior.
S.independent

Fit a spatial generalised linear mixed model to data, where the random effects are independent.
print.carbayes

Print a summary of a fitted carbayes model to the screen.
summarise.lincomb

Compute the posterior distribution for a linear combination of the covariates from the linear predictor.