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

Including multiple random effects in an mblogit model #11

Closed
asutto opened this issue Sep 23, 2020 · 1 comment
Closed

Including multiple random effects in an mblogit model #11

asutto opened this issue Sep 23, 2020 · 1 comment

Comments

@asutto
Copy link

asutto commented Sep 23, 2020

Hello,

I am wondering if it is possible to fit multiple un-nested random effects within an mblogit model. I am able to run the model with either random effect and can nest them as well, but in this case it does not make sense to nest the random effects and would be best to treat them separately. For example, in lmer I know the syntax would be y ~ x + (1|random effect 1) + (1|random effect 2), but is it possible to do something similar to this in an mblogit model? Happy to provide additional information and code but thought it would be best to ask this question at a conceptual level first before delving into specifics.

Thank you!

@melff
Copy link
Owner

melff commented Apr 10, 2022

Since release 0.9 it is possible to fit non-nested random effects. At present, it is possible to specify such non-nested random effects by passing a list of formulae as a random= argument to mclogit() or mblogit(). Unfortunately, I have not yet found the time to upload release 0.9 to CRAN, but I intend to do that in the next few weeks.

@melff melff closed this as completed Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants