Repository navigation
ENH Score test enhancements for GEE - #5435
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5435 +/- ##
==========================================
- Coverage 81.75% 81.74% -0.02%
==========================================
Files 569 569
Lines 89824 89917 +93
Branches 10022 10033 +11
==========================================
+ Hits 73440 73506 +66
- Misses 14117 14135 +18
- Partials 2267 2276 +9
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #5435 +/- ##
=========================================
+ Coverage 81.98% 82% +0.01%
=========================================
Files 586 586
Lines 92278 92398 +120
Branches 10240 10250 +10
=========================================
+ Hits 75654 75768 +114
- Misses 14279 14282 +3
- Partials 2345 2348 +3
Continue to review full report at Codecov.
|
| return [np.array(array[self.group_indices[k], :]) | ||
| for k in self.group_labels] | ||
|
|
||
| def score_test(self, submodel, tol=1e-6): |
There was a problem hiding this comment.
maybe rename to compare_score_test
I haven't looked at any details yet (still recovering from moving to a new house), but we should get consistent signature and interpretation for score_test.
I'm not sure whether score_test should be attached to the restricted model, the unrestricted model or both, depending on the options. (eg. I have an option for variable addition when the restricted model is available.)
for LR test we use compare_lr_test that takes a nested model.
|
IIUC, then the Kevin added a subspace check to OLS/RegressionModel compare_lm_test. |
|
I was thinking about generalizing this so that it would work as long as the
columnspace of the submodel is nested in the columnspace of the parent
model. I will look into that.
…On Thu, Dec 27, 2018 at 11:57 PM Josef Perktold ***@***.***> wrote:
IIUC, then the ii = _score_test_submodel(self, submodel.model, tol) only
works for "zeros constraint", i.e. dropping/adding variables but not for
general linear restrictions.
Kevin added a subspace check to OLS/RegressionModel compare_lm_test.
(In my version of the score_tests I don't check and assume that the user
provides a nested model.)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5435 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACiww2pqj9Mum-BLtf5xIsUk3dPmeJ9Dks5u9aTPgaJpZM4Zf4nu>
.
|
98ea273 to
e319783
Compare
Allow the submodel to be provided as a fitted GEEResults object, instead of via a system of linear constraints.