Skip to content

BUG: MixedLM random effects BLUPs with variance components - #4413

Merged
kshedden merged 3 commits into
statsmodels:masterfrom
kshedden:mixxedlm_vc_names
Apr 20, 2018
Merged

kshedden merged 3 commits into
statsmodels:masterfrom
kshedden:mixxedlm_vc_names

Conversation

@kshedden

Copy link
Copy Markdown
Contributor

This fixes a bug that prevented prediction covariances of BLUP's from being extracted from models having variance components.

I also changed the name index for the variance component BLUP's from being the position to being the actual name (otherwise it is sometimes impossible to know which BLUP corresponds to which actual group in the data). This could produce backwards incompatibilities so I will add a note to the release notes. People who were relying on the previous names lining up with the actual group labels may not have been getting what they though they were getting, so I think this is an appropriate change to make despite the compatibility break.

@josef-pkt

Copy link
Copy Markdown
Member

This pull request introduces 1 alert when merging cfa1bb2 into 5a01211 - view on lgtm.com

new alerts:

  • 1 for Potentially uninitialized local variable

Comment posted by lgtm.com

@coveralls

coveralls commented Mar 31, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 82.695% when pulling fccd687 on kshedden:mixxedlm_vc_names into 5a01211 on statsmodels:master.

@codecov-io

codecov-io commented Mar 31, 2018 •

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@9f2ed83). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #4413   +/-   ##
=========================================
  Coverage          ?   80.18%           
=========================================
  Files             ?      560           
  Lines             ?    84727           
  Branches          ?     9580           
=========================================
  Hits              ?    67937           
  Misses            ?    14578           
  Partials          ?     2212
Impacted Files Coverage Δ
statsmodels/regression/tests/test_lme.py 87.81% <100%> (ø)
statsmodels/regression/mixed_linear_model.py 81.4% <100%> (ø)

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 9f2ed83...e0e0e42. Read the comment docs.

@josef-pkt

Copy link
Copy Markdown
Member

This pull request introduces 1 alert when merging fccd687 into 5a01211 - view on lgtm.com

new alerts:

  • 1 for Potentially uninitialized local variable

Comment posted by lgtm.com

@josef-pkt

Copy link
Copy Markdown
Member

@kshedden There is another possible candidate for 0.9. But I have no idea about this.

@kshedden

kshedden commented Apr 19, 2018 via email

Copy link
Copy Markdown
Contributor Author

@josef-pkt

Copy link
Copy Markdown
Member

My current (!) plans are to get the rc1 out in the middle of next week. I have one more day of code merges, and then there are still quite a few doc and release issues.

@kshedden

kshedden commented Apr 19, 2018 via email

Copy link
Copy Markdown
Contributor Author

@kshedden
kshedden force-pushed the mixxedlm_vc_names branch from fccd687 to e0e0e42 Compare April 19, 2018 22:46
@kshedden
kshedden merged commit 8adde71 into statsmodels:master Apr 20, 2018
@kshedden kshedden modified the milestones: 0.10, 0.9 Apr 20, 2018
@danlewis85

Copy link
Copy Markdown

Hi, I'm getting the same error calling 'random_effects_cov' with 0.9.0 as with '0.8.0' for variance components models. I note though that the expected change to labelling of groups in 'random_effects' has taken place. Could I possible have a dependency issue?

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.

5 participants