This function fits a Normal hierarchical model with a spatial covariance structure via MCMC.
spatialgibbs(
b,
v,
x,
y,
phi = 0.1,
scale = 1,
maxiter = 1000,
burn = 500,
a0 = 10,
b0 = 1e+05
)
a vector of regression coefficients
a vector of regression coefficient variances
a vector of x-coordinates
a vector of y-coordinates
scale parameter for exponential covariance function
scaling parameter for the prior variance of the national average estimate
maximum number of iterations in the Gibbs sampler
number of iterations to discard
parameter for Gamma prior on heterogeneity variance
parameter for Gamma prior on heterogeneity variance
This function is used to produce pooled national average estimates of air pollution risks taking into account potential spatial correlation between the risks. The function uses a Markov chain Monte Carlo sampler to produce the posterior distribution of the national average estimate and the heterogeneity variance. See the reference below for more details.
Peng RD, Dominic F (2008). Statistical Methods for Environmental Epidemiology in R: A Case Study in Air Pollution and Health, Springer.