Skip to content

SUMM/FAQ-D: Refactor scale handling, especially GLM, RLM #3359

Open

Description

@josef-pkt

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
#1594 cov_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?

Activity

  1. josef-pkt commented on Jan 4, 2017

    @josef-pkt
    MemberAuthor

    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.

  2. lorentzenchr commented on Jan 8, 2017

    @lorentzenchr
    Contributor

    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.

  3. josef-pkt commented on Jan 8, 2017

    @josef-pkt
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions