You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug when calling GLMInfluence(mdl).cooks_distance with V0.14.4 #9415
Thanks for reporting,
strange that this didn't get caught by unit tests.
Are you creating a GLMInfluence instance directly?
AFAICS. GLMResults.get_influence() is using the correct get_hat_matrix_diag method.
The main unit tests are in stats/tests/test_influence
The test classes use get_influence() results method.
So, it looks like that code path has no test coverage, i.e. GLMInfluence currently needs hatmatrix diag in __init__.
Aside: GLMInfluence inherits __init__ from MLEInfluence
Activity
josef-pkt commentedon Oct 30, 2024
Thanks for reporting,
strange that this didn't get caught by unit tests.
Are you creating a GLMInfluence instance directly?
AFAICS. GLMResults.get_influence() is using the correct get_hat_matrix_diag method.
The main unit tests are in stats/tests/test_influence
The test classes use
get_influence()results method.So, it looks like that code path has no test coverage, i.e. GLMInfluence currently needs hatmatrix diag in
__init__.Aside: GLMInfluence inherits
__init__from MLEInfluencemango-unchained commentedon Oct 30, 2024
No worries.
Yeah, I am creating GLMInfluence instances directly.
Fix GLMInfluence hat_matrix_diag method name