-
Notifications
You must be signed in to change notification settings - Fork 116
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
Support for a categoricalArray as the dependent variable for GLM models #240
Comments
I think we've mentioned this somewhere before. The question is whether we should assume that the reference is the first level, and the second level means that the event occurred. It could be more explicit to require people to write it explicitly. We should probably see whether other software follows a standard behavior in that situation. |
In R, there is a default assumption based on the ordering of the categorical terms: that seems reasonable, and provides an obvious way to change what the reference level is. I think there is also a way to customize the reference level, as a parameter of the coding scheme, if I recall correctly (I don't remember the details, as I haven't used that option recently, I usually just re-order my categorical levels if I need to change the reference level). Seems like a reasonable design choice. |
Hello! I am trying to use a binomial dependent categorical variable with
Then, I found that Y also needs to take the values {0,1}:
It seems that in order to do e.g., a logistic regression we need to use Thanks, Gustavo |
Currently a categorical array on the left hand side in a GLM model generates an error message:
Shouldn't there be a support for categorical arrays for regressions that take binary dependent variables?
The text was updated successfully, but these errors were encountered: