Skip to content

BUG/ENH: modify stationary cov_struct for GEE - #5390

Merged
kshedden merged 1 commit into
statsmodels:masterfrom
kshedden:gee-stationary
Nov 18, 2018
Merged

kshedden merged 1 commit into
statsmodels:masterfrom
kshedden:gee-stationary

Conversation

@kshedden

Copy link
Copy Markdown
Contributor

This PR modifies the calculations for the Stationary covariance structure in GEE. It produces more sensible results when there are multiple observations in one cluster with the same "time" values. It does not change behavior in the case where the time values are distinct.

Previously, if there were multiple observations in a cluster with the same time value, the correlation between them would have been given as zero. In this new calculation, the values with tied time have a correlation that is estimated from the data.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.001%) to 84.232% when pulling 909c480 on kshedden:gee-stationary into 5c71c8e on statsmodels:master.

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.001%) to 84.232% when pulling 909c480 on kshedden:gee-stationary into 5c71c8e on statsmodels:master.

@codecov

codecov Bot commented Nov 17, 2018

Copy link
Copy Markdown

Codecov Report

Merging #5390 into master will increase coverage by <.01%.
The diff coverage is 92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5390      +/-   ##
==========================================
+ Coverage   81.73%   81.73%   +<.01%     
==========================================
  Files         569      569              
  Lines       89824    89836      +12     
  Branches    10027    10027              
==========================================
+ Hits        73416    73427      +11     
- Misses      14132    14133       +1     
  Partials     2276     2276
Impacted Files Coverage Δ
statsmodels/genmod/cov_struct.py 90.01% <92%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5c71c8e...909c480. Read the comment docs.

@kshedden
kshedden merged commit 4a79c28 into statsmodels:master Nov 18, 2018
@josef-pkt josef-pkt added this to the 0.10 milestone Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants