biodiverse / ubms

Fit models to data from unmarked animals using Stan. Uses a similar interface to the R package 'unmarked', while providing the advantages of Bayesian inference and allowing estimation of random effects.
https://hmecology.github.io/ubms/
GNU General Public License v3.0
35 stars 8 forks source link

Nested random effects? #55

Closed matt-w-rees closed 2 years ago

matt-w-rees commented 2 years ago

Hey Ken,

When I fit a model with the following nested random effect: (1|vegetation_type/site)

I get

Error in .subset2(x, i, exact = exact) : no such index at level 1

Is this just because nested random effects or not supported? Or am I doing something wrong?

Cheers, Matt.

kenkellner commented 2 years ago

Hi Matt,

Nested random effects are not supported, sorry. You're supposed to get a more useful error message to that effect, but it looks like that isn't working - I'll look into it.

Thanks,

Ken

kenkellner commented 2 years ago

Should get a proper error message now with 9d040bd