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

Using projpred in multi-response models with group correlated hierarchical effects #495

Open
stanleyrazor opened this issue Mar 21, 2024 · 3 comments
Labels
exceptions Needs enhanced warning or error message.

Comments

@stanleyrazor
Copy link

In multivariate models such as:

brm(mvbind(y1, y2, y3) ~ x1 + x2 + (1 |id| grp), data = data, family = family())

Projpred crashes with the error: Unexpected number of | characters in group terms. Please notify the package maintainer.

Running it without the <id> works currently.

What would you advise ?

@fweber144
Copy link
Collaborator

projpred currently does not support (1 | id | grp) syntax, but I admit that the error message could be more informative (and the notification of the package maintainer would not be necessary). I think the reason for this somewhat obscure error message was that at the time when I introduced the error, I wasn't aware of situations where multiple | would occur. Now we have found one such situation, so we could simply say that projpred does not support such syntax.

@fweber144
Copy link
Collaborator

Thanks for reporting!

@fweber144 fweber144 added the exceptions Needs enhanced warning or error message. label Mar 21, 2024
@stanleyrazor
Copy link
Author

Thanks for taking note!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exceptions Needs enhanced warning or error message.
Projects
None yet
Development

No branches or pull requests

2 participants