reg.summary: 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 keefe2018ref.ICAR.
Usage
reg.summary(MCMCchain, X, Y, burnin)
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.
Arguments
- MCMCchain
Matrix of MCMC chains, using the sampling from keefe2018ref.ICAR.
- X
Matrix of covariates.
- Y
Vector of responses.
- burnin
Number of MCMC iterations discarded as burn-in in MCMCchain.
Author
Erica M. Porter, Matthew J. Keefe, Christopher T. Franck, and Marco A.R. Ferreira
Examples
Run this code## Refer to the vignette attached to the package.
Run the code above in your browser using DataLab