reg.summary: Regional Summaries for Areal Data Modeled by ICAR Reference...

View source: R/reg.summary.R

reg.summaryR 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 \insertCitekeefe2018ref.ICAR.

Usage

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

Arguments

MCMCchain

Matrix of MCMC chains, using the sampling from \insertCitekeefe2018ref.ICAR.

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.

ref.ICAR documentation built on Aug. 22, 2023, 9:12 a.m.