Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flexibility to predict() to allow random effects to be centred at value other than zero. #83

Open
nehill197 opened this issue Jan 8, 2025 · 0 comments

Comments

@nehill197
Copy link
Member

This will give us flexibility to specify distributions for random effects that are not centred at 0.

E.g., gamma-distributed random effects are centred at 1. When predicting over a variable other than the random effect itself, the value is set to 0, which is not correct and causes issues when the gamma-distributed random effect is logged (log(0) = -Inf).

This can only be dealt with currently by having duplicate lines in the new expression with and without the random effect.

It would be ideal to have an argument to predict() that can override the default behaviour that sets the central value of the random effect distribution to 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant