Closed gtikhonov closed 1 year ago
Hello Gleb,
I believe your error message originates from the calculation of the standard errors. In your example, if you add sd.errors = FALSE
, this will get rid of the error (as the standard errors won't be calculated). As such, it doesn't affect the estimates, though it does indicate there are some problems with the fit, it's possible the optimizer didn't converge to a good solution.
You can check the gradient of your fit withfit$TMBfn$gr(fit$TMBfn$par)
. If there are some values that are far away from zero, you might want to try some different starting values (see the starting.val
and n.init
options in the documentation), or reconsider the number of latent variables.
Hi, Thanks for the package, it seems to be a really nice and convenient tool! Recently, I've been trying to fit some models using it and I encountered the following runtime error:
Same error happens also with
num.lv=6
but not withnum.lv=4
. I managed to replicate the bug with the following minimal working example (MWE):Could you provide any insight, whether this is a "critical" error, so that the returned results in the
fit
object are completely screwed, or just some of them? What do I not take into account or what I shall adjust in the MWE to avoid such misbehaviour? Here is my R session information if this can help in any way: