Repository navigation
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
BUG: Fixed bug in test for OLS/GLS/WLS equivalence
… in loglike ENH: Many typos fixed ENH: Better PEP8 compliance in a few places
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
… in loglike ENH: Many typos fixed ENH: Better PEP8 compliance in a few places
|
Kevin, Thank you for getting involved in and contributing to statsmodels. It will take me some time to work through this. WLS is not matching the llf of Stata anymore, we have the same difference ll(model) - ll(null) but the absolute value is different. ( I guess this PR also needs some git surgery to clean up some commits and to remove the "Merged in robust covariance changes". |
|
My git sills are definitely lacking. I made a real mess of my branch at some point and tried to work back to something more same. For example, I made the changes to the WLS loglike but didn’t mean to put those in the pull request following on our previous exchange where I though this required its own treatment. From: Josef Perktold [mailto:[email protected]] Kevin, Thank you for getting involved in and contributing to statsmodels. It will take me some time to work through this. WLS is not matching the llf of Stata anymore, we have the same difference ll(model) - ll(null) but the absolute value is different. ( ll(null) is constant only regression) I guess this PR also needs some git surgery to clean up some commits and to remove the "Merged in robust covariance changes". — |
|
I will try to clean up the merges and rebase it before looking again at the details. |
|
I get repeated merge conflict so I cannot rebase without going through all changes in detail. The initial commit of this PR looks duplicate with different content. I might try to break up this PR into separate pieces, or figure out how to squash selectively some commits, or just redo some changes from scratch. Two changes to the substance:
|
|
So should I forget my master and work from yours? |
If this looks roughly ok, then we could also merge this PR (and the other two) very soon, and then start new branches to continue the work. |
|
I think that would allow for progress. I didn’t see anything out of order, but I’ll be sure to go through the merged code. |
…based Compare lr test rebased closes statsmodels#1174
This pull request adds a method to compare models using LM tests which are robust to heteroskedasticity and autocorrelation (if the covariance used is HC or HAC).
compare_lm_testwhich implements the test_is_nestedwhich tests whether models are nestedThis requires the changes needed to allow results with HC/HAC covariances and so may not be the right track.