tidymodels / multilevelmod

Parsnip wrappers for mixed-level and hierarchical models
https://multilevelmod.tidymodels.org/
Other
74 stars 3 forks source link

Logistic_reg() not working with stan-glmer #8

Closed ghost closed 3 years ago

ghost commented 3 years ago

Thanks for the great package!

When trying to use logistic regression as suggested, it returns an error “Error: engine ‘stan-glmer’ is not available.

library(multilevelmod)
hier_model_spec <- logistic_reg() %>% set_engine("stan-glmer")
juliasilge commented 3 years ago

Looks like we only have the "gee" engine for logistic_reg() that ever got set up.

library(multilevelmod)
#> Loading required package: parsnip

logistic_reg() %>% set_engine("lmer")
#> Error: Engine 'lmer' is not available. Please use one of: 'glm', 'glmnet', 'LiblineaR', 'spark', 'keras', 'stan'
logistic_reg() %>% set_engine("stan-glmer")
#> Error: Engine 'stan-glmer' is not available. Please use one of: 'glm', 'glmnet', 'LiblineaR', 'spark', 'keras', 'stan'

Created on 2021-03-02 by the reprex package (v1.0.0)

github-actions[bot] commented 3 years ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.