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
REF/ENH: cov_type assumes nobs k_params from score_obs #2827
The small sample correction define nobs and k_params from the shape of xu
if use_correction:
nobs, k_params = xu.shape
....
this doesn't generalize, work correctly for ddof (absorbed params, for params that are not in score (*)) and not for frequency weights.
(*) how would this handle an overidentified case in GMM (GMM still has it's own sandwich code)
looked at because of #2805 freq_weights in GLM: cov_type = 'HC0' doesn't work in the current setting. However, the bse are not proportionally wrong, so it's not the small sample correction here.
actually: currently use_correction is always false for HC in GLM see #2828
I guess we have to get df_resid as optional parameter through to all functions that use it. It's possible that we need somewhere separately nobs, k_params, and n_groups or similar.
In the results interface we can put it together with xu, hessianinv into the basic helper function.
Activity
josef-pkt commentedon Feb 21, 2016
I guess we have to get
df_residas optional parameter through to all functions that use it. It's possible that we need somewhere separately nobs, k_params, and n_groups or similar.In the
resultsinterface we can put it together with xu, hessianinv into the basic helper function.josef-pkt commentedon Oct 3, 2017
postponed to 0.10, Refactoring cov_type is delayed.