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
SUMM/FAQ-D: Refactor scale handling, especially GLM, RLM #3359
new working assumptions:
"scale is an estimated parameter that belongs into the results, and the model is not supposed to keep it as an attribute"
Choice of estimation method for scale should be fit argument scale_type like cov_type if needed.
(variance or dispersion function either depending on explanatory variables or provided as var_weights are a separate issue.)
This is inherent if scale is part of params, but should also apply if scale is a separate parameter either estimated after estimating the mean model (as in OLS) or concentrated out as part of the fit.
Refactoring
#2073 issue on separate estimation of scale and nuisance parameters
linear regression models like OLS do not calculate scale in fit, it is part of the computations in the results class, but there is a scale keyword in RegressionResults.__init__
Currently, both GLM and RLM store self.scale as attribute in the model during fit.
for GLM: #2399 GLM scale attribute #2353 WIP for refactoring scale handling in GLM, but uses model.scale attribute.
AFAIK, scale does not enter the estimating equations or moment conditions for GLM/LEF, so GLM could even move the scale computation to the Results class like OLS/RegressionModel. #3357
general #1594cov_params_default versus separate scale (+ normalized_cov_params)
and more specific issues
extra issue/question:
default scale_type between cov_params and llf/loglike: regression model uses concentrated out MLE scale in llf, but uses degrees of freedom corrected scale for cov_params.
similar choice for MixedLM is MLE versus REML, IIUC.
In OLS we have a separate possibility to provide small sample and degrees of freedom corrections in cov_type that only affects cov_params and associated hypothesis tests.
Does this affect future extensions to heteroscedastic MLE?
The only usecase I know where we need scale explicitly are LR and Quasi-LR tests, or, largely equivalent, analysis of deviance in GLM.
The scale options for wald and score/LM tests are (will be) handled through cov_type.
I like this working assumption 👍
An implementation should make clear the distinction whether scale is a parameter to be estimated with an option to chose an estimator in fit or whether scale is an input, e.g. Poisson (where scale=1) or user input.
It breaks a bit the "tradition" in econometrics and at least some parts of statistics, where nuisance parameters are often concentrated out and disappear from the list of parameters. E.g. in Greene's textbook for econometrics the variance/scale is almost always concentrated out.
It took me a while to figure out or become convinced that we need to break with this tradition and need explicit access to nuisance parameters when we want to go beyond the basic estimation.
It might also affect GEE, but I haven't looked there yet for this.
Activity
josef-pkt commentedon Jan 4, 2017
The only usecase I know where we need
scaleexplicitly are LR and Quasi-LR tests, or, largely equivalent, analysis of deviance in GLM.The scale options for wald and score/LM tests are (will be) handled through
cov_type.lorentzenchr commentedon Jan 8, 2017
I like this working assumption 👍
An implementation should make clear the distinction whether
scaleis a parameter to be estimated with an option to chose an estimator infitor whetherscaleis an input, e.g. Poisson (wherescale=1) or user input.josef-pkt commentedon Jan 8, 2017
It breaks a bit the "tradition" in econometrics and at least some parts of statistics, where nuisance parameters are often concentrated out and disappear from the list of parameters. E.g. in Greene's textbook for econometrics the variance/scale is almost always concentrated out.
It took me a while to figure out or become convinced that we need to break with this tradition and need explicit access to nuisance parameters when we want to go beyond the basic estimation.
It might also affect GEE, but I haven't looked there yet for this.