Skip to content
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

ENH: Add grouping utilities code #1421

Merged
merged 17 commits into from Feb 23, 2014
Merged

Conversation

jseabold
Copy link
Member

Pulled out the grouputils stuff from #1133. This stuff is generally useful, if not exactly what we'll need in each case. I found myself re-implementing some of this functionality in the survival stuff. Better to have it in master to iterate on.

There's a missing function group_demean in there. I assume these were written by @josef-pkt given that they're pure numpy and notes to self docs ;). Do you have this lying around somewhere? // cc @vincentarelbundock

@jseabold
Copy link
Member Author

Looking at it, I think group_demeans was just a thinko.

@josef-pkt
Copy link
Member

As far as I remember, there are still unfinished and unused parts in the group-utils that I have written.
Most of it was written in support of the cluster and panel robust standard errors. I didn't clean up or finish parts that I didn't need at the time. (Some of it was based on old sandbox code and might not be fully adapted to the different pattern used here.)

@jseabold
Copy link
Member Author

Ok, well, I don't use any of that. The Grouping class is used in the panel and I will use it in the survival code. It needs to be ever so slightly generalized (always assumes two-level panel x time groupings, which it doesn't need to). I'm doing that now.

@jseabold
Copy link
Member Author

Should be mostly functional. Will need a little bit of a refactor for both Panel (subclass, hard-coded groups) and grouped Survival -- will likely supercede what's in the Survival WIP right now, maybe gain some stuff from it.

@jseabold
Copy link
Member Author

This is now targeting pandas 0.12.0. I wouldn't be surprised if there are failures on older versions.

jseabold added a commit that referenced this pull request Feb 23, 2014
ENH: Add grouping utilities code
@jseabold jseabold merged commit f39d6f1 into statsmodels:master Feb 23, 2014
@jseabold jseabold deleted the grouputils branch February 23, 2014 23:47
This was referenced Feb 24, 2014
@josef-pkt josef-pkt added the PR label Mar 11, 2014
PierreBdR pushed a commit to PierreBdR/statsmodels that referenced this pull request Sep 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants