Hi Haavard,
Thank you for your clarification! I have two additional questions regarding this topic:
First, regarding the scale.model = TRUE option in control.group: Does INLA first scale the precision matrix of the RW1 model (Q_rw1) and then compute the Kronecker product of the SPDE precision matrix (Q_spde) and the scaled Q_rw1?
Second, concerning the addition of a diagonal term: If I specify the model as follows:
f(s, model = spde, group = s.group, diagonal = 1e-06, control.group = list(model = "rw1", scale.model = TRUE))
Is the diagonal term added to the Kronecker product of Q_spde and Q_rw1_scaled? After adding the diagonal term, does INLA rescale the combined precision matrix to make the generalized variance = 1?
Thanks,
Ruby
Hi Haavard,
I came across a new question related to the RW1 model. The precision is a hyperparameter in the model: f(year, model="rw1", scale.model=TRUE).
The precision matrix, Q, is defined as precision * R, where R is the structure matrix reflecting the neighborhood structure of the model.
I scaled Q using inla.scale.model(Q, constr = list(A = matrix(1, 1, n), e = 0)) and noticed that, regardless of the precision value, the scaled Q (Q.scaled) remains the same. If this is the case, how is the precision estimated?
Thanks,
Ruby