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
likelihood ratio type tests, compare_xxx for nested models #1358
comment for RLM:
Hampel et al 1986 p 347 use scale from full model in estimation of reduced model, but doesn't matter asymptotically
(SAS for rsquared estimates both mean and sigma for null model (only constant), but uses scale of full model for standardizing residuals in comparison).
similar question shows up in other models and tests, where difference might not even be positive, e.g. GMM or Hausman test.
Implementation:
current compare_lr and compare_ftest just use the statistics from two independently estimated models.
Instead, use model information that we have in the restricted model, and reestimate with some constraints.
small issue: what to do if the fit options differ?
We raise if really inconsistent.
We reestimate based on options in full model
In above commit PR #1341 RLMResults.compare_lrtype I added different options. I needed them to reverse-engineer the results of SAS and didn't delete "not recommended" options.
(for rsquared SAS doesn't fix the scale in the regression on constant, however it uses the full scale as fixed for the nested model in compare_lrtype equivalent.)
Activity
ENH: add compare_lrtype, see statsmodels#1358 for pattern
josef-pkt commentedon Feb 6, 2014
In above commit PR #1341 RLMResults.compare_lrtype I added different options. I needed them to reverse-engineer the results of SAS and didn't delete "not recommended" options.
(for rsquared SAS doesn't fix the scale in the regression on constant, however it uses the full scale as fixed for the nested model in compare_lrtype equivalent.)
josef-pkt commentedon Jul 6, 2014
this applies also to GMM.compare_j and for comparison in GLM which should use fixed scale