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
ENH: sandwich cov_type of Theil/Ridge versus HC0 #5327
In a test case for GAM using the motorcycle acceleration data, the difference between TheilGLS sandwich and HC0 in GLMPenalized is large.
TheilGLS agrees with Ve of R mgcv.
One theoretical difference:
Theil/Ridge sandwich assumes homoscedasticity, the residuals do not enter the sandwich, while
HC0 has a sandwich that is also robust to heteroscedasticity.
We had once the issue of AC versus HAC, i.e. autocorrelation robustness without heteroscedasticity.
Similarly, I guess we can have a sandwich for likelihood misspecification without being robust to heteroscedasticity, IIRC, that is the assumption in RLM, i.e. M-estimation without likelihood function but with homoscedasticity.
I guess we need an extra cov_type to handle this case.
(simplest "cheating" would be to use resid=1 when computing the HC0 or other sandwich but then add scale to cov_params, i.e. we would have a normalized_cov_params sandwich.)
(GLMPenalized agrees with R mgcv for the "nonrobust" cov_params, except for the missing effective degrees of freedom, edf, correction for scale.)
I'm not sure how this is supposed to work. (I would have to check the derivation of the sandwiches again.)
In GLM we have intrinsic, specified heteroscedasticity plus the unspecified heteroscedasticity to which HC is robust. We only want to leave out the unspecified heteroscedasticity.
In terms of WLS/IRLS we use the (unpenalized ?) wexog to compute the inner part of the Theil/Ridge sandwich, but I'm not sure what that is in terms of score_obs, e.g. score_factor contains both the implied variance and the residuals.
Activity
josef-pkt commentedon Oct 18, 2018
I'm not sure how this is supposed to work. (I would have to check the derivation of the sandwiches again.)
In GLM we have intrinsic, specified heteroscedasticity plus the unspecified heteroscedasticity to which HC is robust. We only want to leave out the unspecified heteroscedasticity.
In terms of WLS/IRLS we use the (unpenalized ?) wexog to compute the inner part of the Theil/Ridge sandwich, but I'm not sure what that is in terms of score_obs, e.g. score_factor contains both the implied variance and the residuals.