Download GeoBUGS User Manual
Transcript
mu[i, j] <- gamma[j] * k[i, j]
}
}
where the latent gamma[j] parameters are defined as above, and k[,] is now an N x J matrix with elements k[i,j]
representing the 'weight' or contribution of the latent gamma random variable at location j to the expected value
of S at location i.
Conditional on mu, the S[i] have independent Poisson distributions with mean =
Σ j mu[i, j].
Note that the model may be extended to include observed covariates as well as latent variables in the Poisson
mean - see example 6.
mv.car [top]
The multivariate intrinsic Gaussian CAR prior distribution is specified using the distribution mv.car for the p x
N matrix of random varables S , where columns of S represent the spatial units (areas) and rows represent the
variables (it is important to ensure the dimensions of S are specified the correct way round). The syntax for this
distribution is as follows:
S[1:p, 1:N] ~ mv.car(adj[], weights[], num[], omega[ , ])
where:
adj[] : A vector listing the ID numbers of the adjacent areas for each area (this is a sparse representation of
the full adjacency matrix for the study region, and can be generated using the Adjacency Tool from the Map
menu in GeoBUGS.
weights[] : A vector the same length as adj[] giving unnormalised weights associated with each pair of areas.
For the CAR model described above, taking Cij = 1 (equivalently W ij = 1/ ni ) if areas i and j are neighbours and
0 otherwise, gives a vector of 1's for weights[].
num[] : A vector of length N (the total number of areas) giving the number of neighbours ni for each area.
omega[ , ] : A p x p matrix representing the precision (inverse variance) matrix of the multivariate intrinsic
Gaussian CAR prior.
The first 3 arguments must be entered as data (it is currently not possible to allow the weights to be unknown);
the final variable omega is usually treated as unknown and so is assigned a prior distribution (which must be a
Wishart distribution). The data variables num and adj may be created by the adj matrix option of the
GeoBUGS Adjacency Tool as described above. The variable weights must be created by the user, and must
be a vector the same length as adj. A common choice is to set all the weights equal to 1 since this gives the
multivariate equivalent of the standard Besag, York and Mollie (1991) CAR model (see sections on
intrinsic CAR models and multivariate intrinsic CAR models in Appendix 1 for further discussion of weights).
The easiest way to do this is to create a loop in your WinBUGS model code:
for(j in 1:sumNumNneigh) { weights[j] <- 1}
where sumNumNneigh is the length of adj and is also output by the adj matrix option of the GeoBUGS
Adjacency Tool .
Important things to check when using the mv.car distribution:
∗ The mv.car distribution uses unnormalised weights, as for the car.normal distribtion.
∗ An area cannot be specified as its own neighbour so make sure the ID number of the area itself does not
appear in as one of its list of neighbours in the adj vector. GeoBUGS does not check for this, so it is the
user's responsibility.
∗ The weights must be symmetric ( W ij = W ji ). GeoBUGS does carry out a check for this and returns an
error message if non-symmetric weights are detected.
∗ Take care with priors on omega, and be prepared to carry out sensitivity analysis to this choice.
∗ The mv.car distribution is parameterised to include a sum-to-zero constraint on the random effects. This