Closed maxlindmark closed 1 year ago
Thanks for pointing this out and the reproducible example. I just fixed this. Our 'check if the model has any random effects' internal function wasn't quite right, so it wasn't taking draws from the smoother random effect parameters.
Hi, when I try to predict with nsim in a non-spatial model with a smooth term I get the following error:
_Error in EvalDoubleFunObject(Fun, theta, do_simulate = dosimulate) : Wrong parameter length.
Here are some examples:
It only seems to be related to smooths, because when I run e.g., a random year model I can use nsim.
I am running TMB_1.9.3, glmmTMB_1.1.7 and sdmTMB_0.3.0 if that helps! (had some mismatches in these packages earlier)
Grateful for any help clarifying what's going on here! Max