-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
model_info(model)$is_linear
should be FALSE
with mblogit()
#628
Comments
library("mclogit")
#> Loading required package: Matrix
mod <- mblogit(factor(gear) ~ mpg + hp, data = mtcars, trace = FALSE)
inherits(mod, "lm")
#> [1] TRUE
family(mod)
#>
#> Family: gaussian
#> Link function: identity Created on 2022-09-02 with reprex v2.0.2 |
Yes, the model object inherits from |
but family is gaussian and link is identity? |
No, all those are erroneous, I think. This is a multinomial logit model: https://www.rdocumentation.org/packages/mclogit/versions/0.9.4.2/topics/mblogit |
Categorical or multinomial? :-) I fixed this for mclogit and mblogit, and also |
I wonder whether a similar issue is at play for models with |
I don't really understand the family code in
model_info
, but here's a test:The text was updated successfully, but these errors were encountered: