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

Maybe `ranef` shouldn't add the mean value to the random effect? #82

Closed kenkellner closed 1 week ago

kenkellner commented 2 weeks ago

E.g. for a model ~(1|group) should ranef return

$$\mu + r_{group}$$ (what it does now, giving the complete group-level intercept)

or just

$$r_{group}$$ (which I think is what lme4 does)

Maybe too late to change? At a minimum need to make this more clear in the docs.