Hi,
thanks for your email. I would suggest to use the latest version of R,
which is 3.3.1 for the moment, but I do not think this is the issue
here.
If the model is almost singular, then details might matter including
the OS you're running it on. The parallelization is something we cannot
control as it is controlled by the run-time system, and if we combine
this with an almost singular model, then numerically ''the mode can
depend on the initial value'', which is again the next initial value,
and there you go.
There are a few strategies to resolve this
- you can turn of the paralellisation using inla(..., num.threads=1),
but this is not a good idea really.
- its always possible to ''rerun'' the model, which can make it more
numerically stable for difficult models, like
r = inla(....)
r = inla.rerun(r)
where the second run is much quicker than the first.
- we can decrease the tolerance in the inner optimisation, with
inla(..., control.inla = list(tolerance = 1e-10))
say, which should also help. you can also combine option 2 & 3.
- using more informative priors is very effective, as a little more
regularisation really helps
Let me know how this goes, and if you still have problems, please send
me data/R-code so I can check here.
Best wishes,
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-discussion-group@googlegr
>
oups.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
he...@r-inla.org