Preparations before fitting with inla()

  • construct the projection matrix A
A <- inla.spde.make.A(mesh = mesh, loc = coo)