Hi all,
Thanks for all the support for the INLA package and it's implementation so far.
I am trying to fit a tweedie model using two rw2 smoothers using inla.group(). I am encountering a similar problem I have seen discussed on this board before with several hundred lines of code reading:
GMRFLib_2order_approx: rescue NAN/INF values in logl
INLA appears to recover and fit the model, however, sometimes there are issues with the eigenvalues.
the main issue comes when I am trying to do model predictions, by fitting a prediction stack. There seems to be an issue with inla.group for the rw2 smoothers in the prediction stack, I get the error even though I have already used inla.group function and no matter how large I make the inla.group spacing (e.g(n=10) ):
Error in inla.check.location(location[[r]], term = gp$random.spec[[r]]$term, :
Locations are too close for f(silt_grp, model="rw2", ...): min(diff(sort(x)))/diff(range(x)) = 1.764e-04 < 1e-03
You can fix this by some kind of binning, see ?inla.group
I use the suggested bypass:
If you want/need to bypass this check at your own risk, do
> m = get("inla.models", inla.get.inlaEnv())
> m$latent$rw2$min.diff = NULL
> assign("inla.models", m, inla.get.inlaEnv())
however the out of the model do not make sense and are hundreds of thousands time too larger,
can anyone offer any advice?
much appreciated,
Sylvan