Learn R Programming

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

CARBayes (version 2.0)

Spatial areal unit modelling

Description

This package implements Bayesian hierarchical spatial areal unit models. In such models the spatial correlation is modelled by a set of random effects, which are assigned a conditional autoregressive (CAR) prior distribution. Examples of the models included are the BYM model as well as a recently developed localised spatial smoothing model.The creation of this package was supported by the Economic and Social Research Council (ESRC) grant RES-000-22-4256.

Copy Link

Version

Install

install.packages('CARBayes')

Monthly Downloads

1,069

Version

2.0

License

GPL (>= 2)

Maintainer

Duncan Lee

Last Published

December 4th, 2013

Functions in CARBayes (2.0)

binomial.bymCAR

Fit the BYM conditional autoregressive (CAR) model to spatial binomial data
binomial.dissimilarityCAR

Fit a localised conditional autoregressive (CAR) model based on dissimilarity metrics with binary neighbourhood relations to spatial binomial data
gaussian.iarCAR

Fit the intrinsic conditional autoregressive (IAR) model to spatial Gaussian data
binomial.iarCAR

Fit the intrinsic conditional autoregressive (IAR) model to spatial binomial data
binomial.lerouxCAR

Fit the Leroux conditional autoregressive (CAR) model to spatial binomial data
shp

Shapefile (.shp) for all Intermediate Geographies (IG) in Scotland.
poisson.properCAR

Fit the proper conditional autoregressive (CAR) model to spatial Poisson data
binomial.properCAR

Fit the proper conditional autoregressive (CAR) model to spatial binomial data
print.carbayes

Print a summary of the fitted model to the screen.
respdata

Respiratory hosptial admissions data for the 271 Intermediate Geographies (IG) in the Greater Glasgow and Clyde health board.
CARBayes-package

Spatial areal unit modelling
poisson.lerouxCAR

Fit the Leroux conditional autoregressive (CAR) model to spatial count data
combine.data.shapefile

Combine a data frame with a shapefile to create a SpatialPolygonsDataFrame object.
highlight.borders

Create a SpatialPoints object identifying a subset of borders between neighbouring areas, which allows them to be overlaid on a spatial map.
gaussian.independent

Fit an independent random effects model to spatial Gaussian data
gaussian.bymCAR

Fit the BYM conditional autoregressive (CAR) model to spatial Gaussian data
dbf

Shapefile (.dbf) for all Intermediate Geographies (IG) in Scotland.
gaussian.lerouxCAR

Fit the Leroux conditional autoregressive (CAR) model to spatial Gaussian data
binomial.independent

Fit the independent random effects model to spatial binomial data
poisson.bymCAR

Fit the BYM conditional autoregressive (CAR) model to spatial Poisson data
housedata

Property price data for the 271 Intermediate Geographies (IG) in the Greater Glasgow and Clyde health board.
gaussian.properCAR

Fit the proper conditional autoregressive (CAR) model to spatial Gaussian data
poisson.independent

Fit an independent random effects model to spatial Poisson data
poisson.dissimilarityCAR

Fit a localised conditional autoregressive (CAR) model based on dissimilarity metrics with binary neighbourhood relations to spatial Poisson data
gaussian.dissimilarityCAR

Fit a localised conditional autoregressive (CAR) model based on dissimilarity metrics with binary neighbourhood relations to spatial Gaussian data
poisson.iarCAR

Fit the intrinsic conditional autoregressive (IAR) model to spatial Poisson data