Repository navigation
Conversation
|
Update: the new test_missing test in test_gee.py failed on travis, although it runs fine locally. I don't know why. For now I commented it out. |
|
The commits from the dotplots are easy to remove, and shouldn't cause any merge conflicts because they are completely unrelated to this PR. You can try it yourself, or I rebase before the merge. (It's always good to make a backup branch first.) |
There was a problem hiding this comment.
I think self.time = np.asarray(self.time, np.float64) would do the same thing. But, do we have only numpy arrays at this stage?
The if part is essentially redundant, since astype(np.float64) doesn't create a copy if it's already the correct type.
(just checked some details: numpy 1.6.1 which I have open right now
x.astype(x.dtype) creates a new array with the same memory (a new view),
np.asarray(x, x.dtype) is a no-op and returns x
)
|
Kerby, Do we have somewhere a few paragraphs to explain the idea behind GEE? |
|
I added some text for the release announcement. Feel free to edit or On Thu, Jan 16, 2014 at 10:50 PM, Josef Perktold
|
|
+1 on making the conventions more visible (and to any pull requests that help bring these in line). |
|
Thanks for the comments, I will open a PR with more naming_conventions which will be open for "debate". Looks like scale as the "variance scaling factor" or "conditional variance" dominates, (I always though of it as the sqrt of it as in location-scale families, open: cov_xxx (also for robust in #1335)
|
|
In the long-run, conventions about most things, not only naming, but also PEP, will help produce a more useful (and fixable) package. Conventions - naming, code, directory – need relatively long explanations, but perhaps a Conventions section should be added to the top. |
…nce they need to be processed for missing, etc.
|
I've continued to refine this branch beyond the initial PR. This is mainly to fix issues that came up when preparing examples (7 are now posted to the examples wiki). The main changes are:
|
I ran into a similar problem with extra data arrays for robust standard errors (#1220). I ignored it for now and I don't want to require them in |
|
Having that mask would be helpful. In this case, I think it is just as well to have these arrays as a keyword On Wed, Jan 29, 2014 at 12:21 PM, Josef Perktold
|
There was a problem hiding this comment.
should we make it cov_struct? maybe a bit easier to read
There was a problem hiding this comment.
Yes, I think that's better.
On Sat, Feb 22, 2014 at 3:59 AM, Josef Perktold [email protected]:
In docs/source/release/version0.6.rst:
+.. code-block:: python
+
+import numpy as np
+import pandas as pd
+from statsmodels.genmod.generalized_estimating_equations import GEE
+from statsmodels.genmod.dependence_structures import Independence
+from statsmodels.genmod.families import Poisson
+
+data_url = "http://vincentarelbundock.github.io/Rdatasets/csv/MASS/epil.csv"
+data = pd.read_csv(data_url)
+
+fam = Poisson()
+ind = Independence()
+md1 = GEE.from_formula("y ~ age + trt + base", data, groups=data["subject"],\
covstruct=ind, family=fam)should we make it cov_struct? maybe a bit easier to read
Reply to this email directly or view it on GitHubhttps://github.com//pull/1314/files#r9959553
.
There was a problem hiding this comment.
I made these changes in my branch.
|
Looks good, I like the release announcement part. I didn't see any problems except for maybe minor adjustments, and standardizing naming conventions before 0.6 is released. I can rebase and merge this. |
|
I merged the rebased version in #1419 Thanks Kerby for improving and maintaining GEE |
|
I can cherrypick and merge the additional changesets Kerby, after I merge this round of changes you can update your master, the other gee changes are already in statsmodels.master. I will try to merge a few more PR, including dotplot, in the next few days. Then you have less of a problem with multiple open branches and PRs |
|
Thanks for your help getting this merged (and all your other work on the Here are some ideas for future work on GEE (probably for 0.7):
On Sat, Feb 22, 2014 at 9:38 AM, Josef Perktold [email protected]:
|
BUG/REF Gee closes statsmodels#1314
This PR addresses several small but important issues that I discovered when using GEE on a real project.
Here is a summary of the changes:
center_residuals(even for subsequent calls toresid)._cluster_listtocluster_array: the new name is more descriptive and lacks the leading underscore since this function is helpful for users.row_indicestogroup_indices(more descriptive).Note: it looks like I accidentally made some of my dotplot commits to my gee branch. You can ignore those for this PR (or tell me how to switch them please).