reg.summary {ref.ICAR}R Documentation

Regional Summaries for Areal Data Modeled by ICAR Reference Prior Model

Description

This function takes data and sampled MCMC chains for an areal data set and gives fitted posterior values and summaries by region using the model by (Keefe et al. 2019).

Usage

reg.summary(MCMCchain, X, Y, burnin)

Arguments

MCMCchain

Matrix of MCMC chains, using the sampling from (Keefe et al. 2019).

X

Matrix of covariates.

Y

Vector of responses.

burnin

Number of MCMC iterations discarded as burn-in in MCMCchain.

Value

A list of the fitted distributions by region, and medians and credible intervals by region.

fit.dist

Matrix of fitted posterior values for each region in the data.

reg.medians

Vector of posterior medians for fitted response by region.

reg.cred

Data frame of credbile intervals by region.

Author(s)

Erica M. Porter, Matthew J. Keefe, Christopher T. Franck, and Marco A.R. Ferreira

Examples

## Refer to the vignette attached to the package.

[Package ref.ICAR version 2.0.1 Index]