Skip to content

MAINT/ENH: GEE sensitivity analyses - #1840

Closed
kshedden wants to merge 11 commits into
statsmodels:masterfrom
kshedden:gee_sensitivity3
Closed

kshedden wants to merge 11 commits into
statsmodels:masterfrom
kshedden:gee_sensitivity3

Conversation

@kshedden

Copy link
Copy Markdown
Contributor

These are some small improvements to GEE intended to improve the performance of params_sensitivity.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.03%) when pulling 4f9abf7 on kshedden:gee_sensitivity3 into a40711c on statsmodels:master.

@josef-pkt josef-pkt added the PR label Aug 1, 2014
@kshedden

Copy link
Copy Markdown
Contributor Author

I can't figure out what's going on with these Travis failures. Everything is fine locally. Appveyor also passed.

@josef-pkt

Copy link
Copy Markdown
Member

Appveyor is fake, the PR is not merged yet.

Which patsy version are you using locally? TravisCI has patsy 1.2 to 2.0.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.06%) when pulling ddfd87e on kshedden:gee_sensitivity3 into a40711c on statsmodels:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.06%) when pulling d404739 on kshedden:gee_sensitivity3 into a40711c on statsmodels:master.

@kshedden

Copy link
Copy Markdown
Contributor Author

OK, I see now that we can't handle missing data with formulas and extra array arguments. I was confused because it worked with my old version of Patsy. I do now have a test for missing='drop' using the API, but for formulas and missing data to work together (with extra arguments) I will have to wait for upstream changes.

@josef-pkt

Copy link
Copy Markdown
Member

@kshedden I didn't have time yet to look at the latest changes (jetlag and 3 kids).
Can you leave a failing test case in a test function (change function name so it doesn't trigger nose testing, t_est or similar)?
I'll try to look at the from_formula issue, and the test case could be reactivated later again.

(we need random seeds for random tests)

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.06%) when pulling 45b5d41 on kshedden:gee_sensitivity3 into a40711c on statsmodels:master.

@kshedden

Copy link
Copy Markdown
Contributor Author

Done, it's called t_est_missing_formula

@kshedden kshedden closed this Aug 13, 2014
@kshedden kshedden reopened this Aug 13, 2014
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.06%) when pulling 45b5d41 on kshedden:gee_sensitivity3 into a40711c on statsmodels:master.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we usually (a few cases) use the negative name, i.e. fix_dep, but it's not true.
RLM.fit uses update_scale=True
(I leave comment as reminder to myself)

@josef-pkt

Copy link
Copy Markdown
Member

I only did some rough browsing. looks good AFAICS, I'd like to merge this as one of the next merges.

needs rebase, and maybe a bit of squashing.

I need to try out some GEE examples (independent or after merging this) to compare the cov_type/covariance_type with other models.
(I will be merging robust covariance for GLM which includes cluster robust standard errors which should be similar to the ones here with Independence)

@josef-pkt

Copy link
Copy Markdown
Member

@kshedden A general recommendation numpy.testing assert_allclose is our preferred comparison, It's more flexible and accurate than assert_almost_equal. It has rtol and atol (which are added together to get the precision/tolerance.)

@josef-pkt josef-pkt closed this in b3c35b7 Aug 20, 2014
@josef-pkt

Copy link
Copy Markdown
Member

merged after rebasing and partial squashing (without rebase PR)

@josef-pkt josef-pkt mentioned this pull request Aug 21, 2014
@josef-pkt josef-pkt added this to the 0.6 milestone Aug 24, 2014
PierreBdR pushed a commit to PierreBdR/statsmodels that referenced this pull request Sep 2, 2014
@kshedden
kshedden deleted the gee_sensitivity3 branch January 25, 2018 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants