How to access random effects in BYM2 model

283 views
Skip to first unread message

Neo Lyh

unread,
Feb 12, 2019, 7:13:34 AM2/12/19
to R-inla discussion group
Hi INLA group,

I attempt to visualize random effects in a BYM2 model.
I have 360 observations and the "summary.random" command returns me 720 results.

I think that 720 results involve structured spatial effects (ICAR) and unstructured effects (IID).

To sperate the two different effects, I use the following command:
Model1$summary.random$ID[1:360,]
Model1$summary.random$ID[361:720,]

My question is that which command corresponds structured spatial effects (ICAR) ? first or second?

Many thanks


Helpdesk

unread,
Feb 12, 2019, 7:19:03 AM2/12/19
to Neo Lyh, R-inla discussion group
this is explained in the documentaion,

inla.doc("bym2")

H
> --
> 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 post to this group, send email to
> r-inla-disc...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/r-inla-discussion-group.
> For more options, visit https://groups.google.com/d/optout.

--
Håvard Rue
Helpdesk
he...@r-inla.org

Reply all
Reply to author
Forward
0 new messages