tidymodels / multilevelmod

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

Are multinom_reg() models supported? #51

Closed mattwarkentin closed 1 year ago

mattwarkentin commented 1 year ago

Hi,

The "Get Started" vignette says: "For brevity, we only discuss linear models but the syntax also works for binomial, multinomial, and Poisson outcomes." but I am not sure if it is actually supported. After installing multilevelmod and the dependencies for the supported engines, the only engines available are:

library(multilevelmod)
#> Loading required package: parsnip
show_engines('multinom_reg')
#> # A tibble: 5 × 2
#>   engine mode          
#>   <chr>  <chr>         
#> 1 glmnet classification
#> 2 spark  classification
#> 3 keras  classification
#> 4 nnet   classification
#> 5 brulee classification

Also, multinom_reg() isn't listed as a supported engine in the README. Just wanted to make sure I wasn't missing something.

jpiaskowski commented 1 year ago

nnet supports multinomial outcomes

mattwarkentin commented 1 year ago

But does it support multi-level multinomial...?

hfrick commented 1 year ago

Good catch! I think you're right and there are no engines for multinomial_reg() in multilevelmod. I'll update the vignette accordingly.

Did you have particular engines in mind that you would have expected to see?

@topepo is this an indication of previous plans to support multinomial responses?

mattwarkentin commented 1 year ago

Umm, I don't have an engine in mind. I was pointing a friend toward this package for MLM, but he was interested in multinomial regression so I wanted to clarify. Not sure if there are existing packages to scaffold onto.

github-actions[bot] commented 1 year 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.