Introducing a Constraint in the Leroux (besagproper2) Random Effects Model

40 views
Skip to first unread message

Marc

unread,
Jul 15, 2024, 5:17:26 AM (7 days ago) Jul 15
to R-inla discussion group

Hello everyone,

We have implemented a huge model where several Leroux distribution (besagproper2) random effects have been included (https://inla.r-inla-download.org/r-inla.org/doc/latent/besagproper2.pdf)

To reduce the number of parameters to estimate, we would like to add the constraint in the model that all Lambda parameters from each of the Leroux distributions have the same value.

Is it possible to introduce this type of constraint with INLA?

Thank you very much!

Marc

Håvard Rue

unread,
Jul 15, 2024, 6:29:24 AM (6 days ago) Jul 15
to Marc, R-inla discussion group
yes, if the underlying graph is the same. is it ?
> --
> 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/11117c3d-79b5-4713-b42d-d745c5e6ee47n%40googlegroups.com
> .

--
Håvard Rue
hr...@r-inla.org

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Marc

unread,
Jul 15, 2024, 8:44:10 PM (6 days ago) Jul 15
to R-inla discussion group
Yes, is the same graph.

Helpdesk (Haavard Rue)

unread,
Jul 16, 2024, 4:18:21 PM (5 days ago) Jul 16
to Marc, R-inla discussion group
thx. I'll send you an example tomorrow
he...@r-inla.org

Helpdesk (Haavard Rue)

unread,
Jul 17, 2024, 11:31:14 AM (4 days ago) Jul 17
to Marc, R-inla discussion group

can you check the example. the idea is to use two copies of the 'besagproper2'
model where the scaling in copy acts as the stdev (and the 'range=c(0,Inf)' will
do this in log-scale), hence lambda parameter is the same.
runme.R

Helpdesk (Haavard Rue)

unread,
Jul 17, 2024, 1:10:23 PM (4 days ago) Jul 17
to Marc, R-inla discussion group

I think this should be done only if there is a good argument for all these
lambda's being the same.

On Mon, 2024-07-15 at 02:17 -0700, Marc wrote:

Marc

unread,
Jul 19, 2024, 3:36:45 AM (3 days ago) Jul 19
to R-inla discussion group
Thank you very much, Haavard! We will test the code and let you know if it worked for us. Best regards.

Marc

Reply all
Reply to author
Forward
0 new messages