Dear R-INLA community ,
I am conducting a spatio-temporal study of lung cancer incidence across several French departments and I aim to quantify the proportion of geographical variability explained by social deprivation.
To do so, I compute the following index:
where and are the posterior variances of the spatial component in a model without covariates and a model including social deprivation, respectively (with ).
I am using a non-connected spatial graph in R-INLA with the option adjust.for.con.comp = TRUE. My objective is to compute the proportion of explained spatial variability separately for each group of connected departments. I was therefore wondering whether it is possible to obtain these posterior variances by connected component, in order to compute the index for each subgraph. More specifically, does INLA internally compute or make available such component-specific variances when this option is enabled?
Thank you very much for your help.
Kind regards,
Dear Havard,
Thank you very much for your reply and for the example, this is very helpful.
Just to clarify my setting: my spatial unit is the IRIS, and the BYM2 spatial effect is defined at the IRIS level using a (possibly non-connected) IRIS adjacency graph. I estimate relative risks at the IRIS level. I am able to identify which departments are connected (or not) in the graph, and based on this, I constructed a region variable corresponding to one department or to a group of connected departments. In total, this results in 7 connected components (regions).
What I am ultimately interested in is the "variance of IRIS-level risks" within each connected component, and how much of this spatial variability is explained by social deprivation, separately for each component.
Following your suggestion, I understand that the most appropriate approach is to compute the quantity
node-wise (i.e. at the IRIS level), using the posterior marginal variances of the spatial component, and then aggregate (e.g. average) these values over the IRIS belonging to each connected component (subgraph / “region”).
I was initially wondering whether adding an additional random effect at a higher level (one region = one department or one connected group of departments) could allow me to directly extract a within-region spatial variance. Concretely, this would correspond to:
- a BYM2 spatial effect at the IRIS level, and
- an iid random effect at the “region” (connected component) level,
as in the following code:
Please let me know if this interpretation is correct, and what you think about adding such a random effect.
Many thanks again for your help.
Best regards,
Pauline Pouchin