Skip to content

BUG GEE cov type - #1916

Closed
josef-pkt wants to merge 3 commits into
statsmodels:masterfrom
josef-pkt:bug_gee_cov_type_1906
Closed

josef-pkt wants to merge 3 commits into
statsmodels:masterfrom
josef-pkt:bug_gee_cov_type_1906

Conversation

@josef-pkt

Copy link
Copy Markdown
Member

(need to rebase, there is one commit from another PR) DONE

see #1906
first part of cleaning up the covariance_type for GEE

cov_params_default is now correctly chosen
incomplete refactoring

  • bse/cov_params has unit tests in test_gee
  • the consistency of tvalues, pvalues, conf_int, t_test and wald_test are tested in base test_generic_methods, with monkey patched df_resid

This finishes the minimal bug fix refactoring, except for

  • missing df_resid
  • subclasses Ordinal and Nominal don't use all covariance types

TODO:
covariance_type -> cov_type

optional for now:
remove GEEResults.conf_int method

more refactoring
move covmat calculation to being lazy in Results (_get_robustcov_results pattern)
(this would also require fewer extra keywords from fit to Results.__init__

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.09%) when pulling 6805ccf on josef-pkt:bug_gee_cov_type_1906 into 93efca1 on statsmodels:master.

@josef-pkt
josef-pkt force-pushed the bug_gee_cov_type_1906 branch from c5de3fd to 54e7855 Compare August 20, 2014 15:51
@josef-pkt josef-pkt added this to the 0.6 milestone Aug 20, 2014

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We need to have covariance_type and access to the chosen covariance matrix available when results.__init__ is called.
The other keywords could be attached as attributes as before.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.12%) when pulling 54e7855 on josef-pkt:bug_gee_cov_type_1906 into 2a39a33 on statsmodels:master.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

default needs to be the attached chosen covariance_type

could be removed, but would not have covariance_type option. (use separate results instances instead)
Warning: this doesn't implement use_t

@josef-pkt

Copy link
Copy Markdown
Member Author

@kshedden This has the basic fixes. The rest will change the current behavior beyond the minimal bug fixes. I didn't want to do them without checking with you first.

see the description above, I also added explanatory comments to the changes.
The two main open points (bugs) are df_resid and the availability of all cov_types in the subclasses.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.12%) when pulling 54e7855 on josef-pkt:bug_gee_cov_type_1906 into 2a39a33 on statsmodels:master.

@josef-pkt

Copy link
Copy Markdown
Member Author

subclasses will be ok: the attributes are attached now, has been merged with #1840
I'm rebasing this PR and need to redo the results attribute setting during merge conflict with the 1840 changes..

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.

2 participants