Repository navigation
GEE commit - #928
GEE commit#928kshedden wants to merge 49 commits into
Conversation
There was a problem hiding this comment.
I think with the new signature this will be able to inherit statsmodels.base.model.Model which gives us the data handling and the from_formula method to build up the exog.
|
I got so excited I started to look at the code before checking the pull request git/github: Pull request looks good, no problems. However, you are using your master branch instead of a feature branch. It's better to keep master to be able to mirror upstream/master (that is statsmodels/statsmodels/master). I did a quick browsing of parts of the code. Overall, I think the pull request looks very good. I'm not so sure yet about inheritance for the results class, I haven't looked yet in detail, but I guess only base.model.Results is a possible candidate for the super class, and that might not bring much. |
There was a problem hiding this comment.
does this need to be called on each individual x (x for each group) or could this use the stacked x?
There was a problem hiding this comment.
you can follow the pattern of GLM.__init__
add groups and time as keyword arguments to the super __init__ call, and it will automatically check all arrays that have the same length as endog and exog for missing values at the same time, and drop the missing values in all of them, endog, exog, group and time.
In the GLM case, offset and exposure are extra (nobs, ) arrays.
GLM uses self._check_inputs(family, offset, exposure, endog) to verify the extra inputs.
Because the generic missing handling uses the length of the arrays to identify extra data variables, it cannot and doesn't verify that users used the right shape for those variables.
|
general comment: interface and naming for this kind of model:
Following this, we should keep (This would apply then also to a rewrite of Mixed in the sandbox, and others.) |
|
I opened #929 for possible additional result statistics. |
|
I think I have addressed most or all of the issues mentioned above and pushed the changes to kshedden/statsmodels master branch. |
|
I might have been wrong about the error for the file path of the csv files. |
|
two options for the csv files
in setup.py after line 487 I think this should work, but often I need to use trial and error to figure out whether files are picked up. |
|
Changes Unknown when pulling 7eb047f on kshedden:master into * on statsmodels:master*. |
|
Changes Unknown when pulling b06a46c on kshedden:master into * on statsmodels:master*. |
|
Thanks for all the comments. I've addressed a number of them. If you think it is ready to merge now, let me know if/how to do it. Some issues for the future:
|
There was a problem hiding this comment.
offset could be None
I don't know if self.offset could also be None
(I'm looking at the test coverage on coveralls.io)
|
@josef-pkt would it help if I "adopted" this pull request and made the changes myself to finalize this? |
|
We should be able to get 0.5.1 out before the end of coming week, if we don't get any unforeseen problems. Then we need to rebase this PR on master. I guess there will some merge conflicts in a PR that cleaned up After that, you or we can "finalize" either before merge or afterwards in a new PR. Test coverage is above 80% but can be improved in several spots. (maybe additional regression test or cross checks) |
There was a problem hiding this comment.
should this be run during the nose test run
It's included in the coverage report, so I guess that nosetests identifies this is a test file, anything starting or ending with tests or test
|
Josef, Feel free to adopt this pull request and handle whatever needs to be done I will put together some examples. I think all the other comments that you made today relate to parts of Kerby On Sun, Oct 27, 2013 at 3:00 PM, Josef Perktold [email protected]:
|
|
Thanks Kerby, Vincent and I will take over than until this is merged. We will appreciate if you stay the main "maintainer" of it, since you know the code best. I know the principle outline of this GEE implementation but never figured out all the details. @vincentarelbundock It would be very good if you "adopt" this. I can review again before we merge it. |
|
Josef, Yes, I will be happy to continue to maintain and develop this code. As Kerby On Mon, Oct 28, 2013 at 11:24 PM, Josef Perktold
|
|
@kshedden thanks a lot. This is very exciting new stuff! @josef-pkt one possibility would be to merge this into a GEE branch. I could then make a PR against that branch with all the changes. Would keep master clean until we can iron out the kinks. I should be able to spend a bit of time on this tonight or tomorrow. |
|
@vincentarelbundock Yes, I can create a rebased GEE branch under statsmodels within a few hours. |
|
Cool. I'll go through your comments on that branch and make a check list of things I haven't addressed so information carries over from this PR. |
|
I didn't get any merge conflicts (no conflicts in links.py that I expected) |
|
BTW: merging this will push us above the 100,000 lines of code mark according to http://www.ohloh.net/p/statsmodels/analyses/latest/languages_summary |
|
@vincentarelbundock Are you working on this? Skipper backported the changes from master to 0.5.1, and we can start to merge the bigger PRs for 0.6 into master. |
|
I've been completely swamped with dissertation-related things. Had to put this on the backburner. I'll look at it tonight to see how much work is involved and will either do it or let you know if I can't. Sorry about that. |
|
@vincentarelbundock No problem. Dissertation deadlines on the horizon,. And still a long way to go. (?) Push any changes if you have any, and I will look at it soon. |
|
Yes, need to defend this spring (starting new job in June). Don't know about "a long way", but certainly more work left than I was hoping for at this point. But, you know, everyone says that... |
ENH add GEE to genmod closes statsmodels#928
Here is the code for generalized estimating equations that we discussed on the mailing list.