Hi,
the f-models are built from three parts:
f(A, ..., group = B, ..., replicate = C)
the individual Q-matrices are Q_A, Q_B, and Q_C, where Q_C is an
identity matrix (i.e. like "iid").
The joint precision is
Q_C x Q_B x Q_A
and the A-part indices vary fastest in the indexing in the internal
latent variable storage, like this:
> expand.grid(a=1:3,b=1:2,c=1:4)
a b c
1 1 1 1
2 2 1 1
3 3 1 1
4 1 2 1
5 2 2 1
6 3 2 1
7 1 1 2
8 2 1 2
9 3 1 2
...
(note that kronecker ordering conventions aren't universal, so in some
literature it may be written the other way around, but the indexing
above is what determines the ordering in inla)
Typically, I recommend having the most complicated part of the model
as part "A", use replicate for any "iid" kronecker construction, and
group for models less complex than the main "A" part.
But for these "Type I,II,III,IV interaction" models, it becomes rather
complex to specify the models correctly, due to the constraints, and
Esmail's suggestion to construct the constraints numerically from the
actual precision matrices seems like a sensible suggestion to avoid
accidentally missing a constraint, or constructing the wrong
constraints.
It does look like the Blangiardo and Cameletti example (if you
included all constraints set in the book) partly (or even mostly)
ignores the constraints for these models, as it doesn't use
extraconstr at all. I would suggest contacting the book authors about
that.
There is an Errata on the book webpage at
https://sites.google.com/a/r-inla.org/stbook/errata but this issue
isn't listed there.
Finn
> --
> 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 on the web, visit
https://groups.google.com/d/msgid/r-inla-discussion-group/fb1b7f50-d603-4373-ad1f-0c4e16e387e7n%40googlegroups.com.
--
Finn Lindgren
email:
finn.l...@gmail.com