reg.summary {ref.ICAR} | R Documentation |
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).
reg.summary(MCMCchain, X, Y, burnin)
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 |
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. |
Erica M. Porter, Matthew J. Keefe, Christopher T. Franck, and Marco A.R. Ferreira
## Refer to the vignette attached to the package.