Case: housing prices in Boston
We will model the logarithm of the median prices using as covariates the per capita crime (CRIM
) and the average number of rooms per dwelling (RM
)
For spatial areas, we need an index vector to identify each area for the BYM2 latent model.
BYM2 also needs a spatial neighbourhood list formatted for INLA