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
I don't know what the answer is (non-differentiability ?)
hsalta = RLM(endog, exog, M=robust.norms.TrimmedMean()).fit()
>>> hsalta.bse
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-josef_new\statsmodels\base\wrapper.py", line 35, in __getattribute__
obj = getattr(results, attr)
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-josef_new\statsmodels\tools\decorators.py", line 95, in __get__
_cachedval = self.fget(obj)
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-josef_new\statsmodels\robust\robust_linear_model.py", line 467, in bse
return np.sqrt(np.diag(self.bcov_scaled))
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-josef_new\statsmodels\tools\decorators.py", line 95, in __get__
_cachedval = self.fget(obj)
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-josef_new\statsmodels\robust\robust_linear_model.py", line 425, in bcov_scaled
m = np.mean(model.M.psi_deriv(self.sresid))
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-josef_new\statsmodels\robust\norms.py", line 77, in psi_deriv
raise NotImplementedError
NotImplementedError
Did you push the change or should I? There's no test because trimmed mean wasn't in SAS, but it should be correct. The derivative is simple enough here.
I have it currently in my branch, working on LTS. To avoid merge conflicts it's easier if I do it. I'm also looking at the adjustments for trimming for the scale estimate in the Doornik paper. scale estimate is too small I guess.
Activity
josef-pkt commentedon Aug 13, 2012
typos in norms
method derive instead of deriv
subzet instead of subset
I'm not completely sure it's correct, but looks ok after fixing typos
tests coverage?
jseabold commentedon Aug 13, 2012
Did you push the change or should I? There's no test because trimmed mean wasn't in SAS, but it should be correct. The derivative is simple enough here.
josef-pkt commentedon Aug 13, 2012
I have it currently in my branch, working on LTS. To avoid merge conflicts it's easier if I do it. I'm also looking at the adjustments for trimming for the scale estimate in the Doornik paper. scale estimate is too small I guess.
BUG: robust.norms.TrimmedMean fix typos in psi_deriv closes statsmode…
kdebrab commentedon Aug 5, 2013
Will this typo bugfix be part of 0.5.0? I hope so...
jseabold commentedon Aug 5, 2013
Hmm, it doesn't look like this was ever put into master. I'll apply it so it will be in the release. Thanks for the reminder.
BUG: robust.norms.TrimmedMean fix typos in psi_deriv closes statsmode…
Merge pull request #1023 from jseabold/maintenance/0.5.x
MAINT: Merge branch 'maintenance/0.5.x'. Merge to close issues.
BUG: robust.norms.TrimmedMean fix typos in psi_deriv closes statsmode…
Merge pull request statsmodels#1023 from jseabold/maintenance/0.5.x
MAINT: Merge branch 'maintenance/0.5.x'. Merge to close issues.
Merge tag 'v0.5.0' into debian