Repository navigation
Compare lr test rebased - #1214
Merged
josef-pkt merged 14 commits intoDec 11, 2013
Merged
Conversation
* Additional Clean up
…ts when the weight matrix or sigma are diagonal with the same values
Fixed loglikelihood in WLS Lots of Typo fixed in docstrings PEP8 fixes Added _is_nested method to detect nested models rebase conflicts fixed, hopefully
Fixed test for summary which was failing due to now mandatory cov_type Added additional OLS/WLS/GLS equivalence tests
Added _is_nested to test whether models are nested when comparing models Added compare_lm_test Merged with get_robustvcv_result which is needed to implement tests Added large sample likelihood-ratio test Implemented cov_type for all models including homoskedastic regression. Use 'H' for the homoskedastic case heavily edited for 'nonrobust' instead of 'H' during rebase
Member
Author
|
I didn't review yet the new functions in detail. @bashtage do you see anything obvious that I might have messed up during rebase? The test suite passes, and I would like to merge this soon, so we have again a common code for working on the next parts, with hopefully fewer merge conflicts next time. |
Member
Author
There was a problem hiding this comment.
rebase error
this is duplicate from above line 1495 and should be deleted
call to compare_lm_test uses robust cov
Merged
Member
Author
|
merging this Thank you Kevin, |
josef-pkt
added a commit
that referenced
this pull request
Dec 11, 2013
Compare lr test rebased closes #1174
PierreBdR
pushed a commit
to PierreBdR/statsmodels
that referenced
this pull request
Sep 2, 2014
…based Compare lr test rebased closes statsmodels#1174
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rebased and cleaned up version of @bashtage PR #1174
I skipped some redundant commits, and edited the commits during merge conflicts (in almost every commit).
Main change besides cleanup of reverted and unnecessary commits is in default cov_type="nonrobust" especially commit 4d517f5
A second change that I kept from my sandwich branch and didn't change during rebase is that the default is
use_t=Nonenotuse_t=False. A minor generic reason is that in this case we can identify if the user explicitly specifies use_t. The main reason is thatNonemeans default, which will beuse_t=Truewithcov_type='nonrobust' in linear model, but I think also withcov_type='cluster', andFalse` for all other covariances and models.Still up for debate.
I'd like to merge this before #1173 and #1176 because I saw one duplicate commit too late to drop it.
Discussion on cov_type="nonrobust"
#1189 (comment) and follow-up
I changed "H" for homoscedasticity to "nonrobust", both because I'm not a fan of one letter names (does H mean homo- or heteroscedasticity as in HCx), and because "nonrobust" doesn't imply that we assume homoscedasticity.
To the later point:
Same applies to auto- or cluster correlation.
Plus, Wooldridge talks all the time of using robust or not robust covariance matrices or hypothesis tests.
So far I can think of only "nonrobust" that captures the idea that we are not robust to misspecification of the error covariance matrix. The opposite view would be the model has correctly specified second moments, but I don't know a good short name for that.