In INLA, I can provide a projection matrix A for a spatial effect in both estimation and prediction stacks. For example:
In Estimation Stack: A = list(1, A_matrix, diagonal(n)), where 1 represents the intercept, A_ matrix is an inla.spde.make.A from the observed data and diagonal(n) represents an IID random effect,
In Prediction Stack: A = list(1, A_pred, diagonal(n)), where 1 represents the intercept, A_pred is the SPDE projection for the prediction locations and diagonal(n) represents the IID effect at the prediction locations.
Similarly, I can also provide a custom projection matrix for the spatial effect in both estimation and prediction stacks, where A_pred is a custom projection corresponding to the latent locations in A_matrix.
In inlabru, there is no direct way to supply the custom projection matrix A. How can I reformulate INLA codes to inlabru so that inlabru correctly maps a custom spatial latent effect to each observation for both estimation and prediction?
--
You received this message because you are subscribed to the Google Groups "R-inla discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to r-inla-discussion...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/r-inla-discussion-group/8908d7a9-49c2-469b-809e-9d9b902c9c96n%40googlegroups.com.
Thank you for your feedback Finn,
In SPDE models with inlabru/INLA, the precision matrix is built automatically from the mesh and Matérn parameters, and the projection matrix maps the mesh nodes to the observations. I want to replicate this manually in inlabru using a generic1 latent effect: how can I explicitly set up a generic1 component where I provide (i) a custom Cmatrix to define the dependence structure, (ii) a diagonal identity mapping so each latent effect links to its own observation, and (iii) a projection matrix linking latent effects to the observed data?
To view this discussion, visit https://groups.google.com/d/msgid/r-inla-discussion-group/f4543f2d-8450-4b51-be9f-b2b591b25bb6n%40googlegroups.com.