Learn R Programming

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

CARBayes (version 3.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

3.0

License

GPL (>= 2)

Maintainer

Duncan Lee

Last Published

April 4th, 2014

Functions in CARBayes (3.0)

respdata

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

Fit a cluster model with spatially correlated random effects to spatial data.
dissimilarityCAR.re

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

Combine a data frame with a shapefile to create a SpatialPolygonsDataFrame object.
lerouxCAR.re

Fit the Leroux conditional autoregressive (CAR) model to spatial data
bymCAR.re

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

Print a summary of the fitted model to the screen.
iarCAR.re

Fit the Intrinsic conditional autoregressive (CAR) model to spatial data
independent.re

Fit the independent random effects model to spatial data
housedata

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

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

Spatial areal unit modelling
shp

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

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

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