I haven't looked at this carefully at all, but (1) I would strongly
recommend doing the calculations in the log-space as far as possible,
*then* exponentiating (use logspace_add and logspace_sub where possible,
see e.g.
https://kaskr.github.io/adcomp/group__special__functions.html#ga2d5a07f1202dc628ba18ee9a2af8b9cd
and (2) I'm not sure of the detailed form of this, but it might be
possible to implement in glmmTMB using an observation-level random effect?
On 2019-10-18 5:38 a.m., Bert van der Veen wrote:
> Hello all,
>
> I'm attempting to fit the model from Engen et al. 2011 ("Estimating
> similarity of communities: a parametric approach to spatio-temporal
> analysis of species diversity"), who employ a zero-truncated poisson
> lognormal distribution to estimate the similarity between two
> communities, when the sampling intensity is unknown.
>
> Unfortunately, the optimizer is unable to evaluate the function returned
> by TMB at the (true) starting values, so I suspect there is an issue
> with either my code, or the combination of the model and the laplace
> approximation.
>
> Any feedback, suggestions or improvements are greatly appreciated.
>
> *TMB-code*
> |
> #inclu
> |
>
> Bert
>
> --
> To post to this group, send email to
us...@tmb-project.org. Before
> posting, please check the wiki and issuetracker at
>
https://github.com/kaskr/adcomp/. Please try to create a simple
> repeatable example to go with your question (e.g issues 154, 134, 51).
> Use the issuetracker to report bugs.
> ---
> You received this message because you are subscribed to the Google
> Groups "TMB Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
tmb-users+...@googlegroups.com
> <mailto:
tmb-users+...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/tmb-users/6748dd5b-8501-4e50-a369-60f3b9212ff9%40googlegroups.com
> <
https://groups.google.com/d/msgid/tmb-users/6748dd5b-8501-4e50-a369-60f3b9212ff9%40googlegroups.com?utm_medium=email&utm_source=footer>.