reg.summary | 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 \insertCitekeefe2018ref.ICAR.
reg.summary(MCMCchain, X, Y, burnin)
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 |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.