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

Variable selection for multilevel phylogenetic model #319

Open
guifandos opened this issue May 11, 2022 · 2 comments
Open

Variable selection for multilevel phylogenetic model #319

guifandos opened this issue May 11, 2022 · 2 comments
Labels
enhancement Enhancements of existing features, but also new feature requests.

Comments

@guifandos
Copy link

Hi,
I am trying to use projpred for variable selection on a phylogenetic multilevel model fit with brms.
variable_response ~ x1 + x2 + (1|gr(species, cov = A))

However, I get the following error:

n model.frame.default(data = list(. variable_response.1 = c(0.580296874164707,  : 
  invalid type (list) for variable 'gr(species, cov = A)
In addition: Warning message:
Some Pareto k diagnostic values are slightly high. See help('pareto-k-diagnostic') for details.

Thanks in advance,

@fweber144
Copy link
Collaborator

Thanks for creating the issue. To my knowledge, special group-level terms such as (1|gr(species, cov = A)) are not supported by projpred yet. But I admit that even now, this should be documented somewhere and an appropriate error message should be thrown.

@fweber144 fweber144 added documentation Documentation issues. exceptions Needs enhanced warning or error message. labels May 11, 2022
fweber144 added a commit that referenced this issue Mar 22, 2023
@fweber144
Copy link
Collaborator

But I admit that even now, this should be documented somewhere and an appropriate error message should be thrown.

Done by commits f23a8b0, 13bb505, and 7d1bda7 (directly on master).

fweber144 added a commit to fweber144/projpred that referenced this issue Mar 28, 2023
@fweber144 fweber144 added enhancement Enhancements of existing features, but also new feature requests. and removed exceptions Needs enhanced warning or error message. documentation Documentation issues. labels Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancements of existing features, but also new feature requests.
Projects
None yet
Development

No branches or pull requests

2 participants