-
Notifications
You must be signed in to change notification settings - Fork 104
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
Categorical names (again) #40
Comments
The problem is that as far as patsy is concerned, "C(A, Treatment('some On Tue, May 6, 2014 at 3:33 PM, Skipper Seabold [email protected]:
Nathaniel J. Smith |
I understand the hesitancy to fix things that aren't really broken, but IMO this a pretty bad usability issue that has come up before. To be clear, I'm just talking about what's in
Typing this kind of stuff out is brutal. Even just being able to leave out the reference would be an improvement IMO. |
Part of the solution on my end is to make easier variable names, but it doesn't get by the having to type the reference category each time I want to use the name. |
I totally agree about the usability issue -- I'm not being hesitant to fix things that aren't broken, I'm being hesitant to start writing code to accomplish something that I'm not sure is even possible in principle :-/. Patsy doesn't know what Of course the best solution would be to have a proper way to represent categorical data (like R's factors) so that Some possible approaches:
(BTW as a stupid workaround you can avoid typing the reference category by renaming it so it's alphabetically first.) |
Do we really need, say, the reference level in the Treatment contrast? I'm not sure it adds enough information vs. the complexity it adds to the names to warrant inclusion. Thoughts? AFAICT, it only appears if you specify a reference level. If you specify one, then surely you know what you specified.
The text was updated successfully, but these errors were encountered: