Preparations before fitting with inla()
Similar to chapter 15:
- create the mesh and the dual mesh
- calculate the offsets (surface areas) to fit intensities instead of numbers
- define the SPDE model
- construct the projection matrix
A.obs
for observation locations - construct the projection matrix
A.p
for prediction locations - create a stack with the data for estimation and prediction