Skip to content

ENH: multimodel inference, model averaging, specification sensitivity #6237

Open

Description

@josef-pkt

#2883 old issue for model averaging
see also #6223

see question best model
https://stackoverflow.com/questions/58789167/is-there-an-automatic-way-where-python-select-the-variables-that-makes-the-most
with reference to R package glmulti https://www.jstatsoft.org/article/view/v034i12
examples
http://www.metafor-project.org/doku.php/tips:model_selection_with_glmulti_and_mumin

reference (based on glmulti docs)
Burnham, Kenneth P., and David R. Anderson, eds. 2004. Model Selection and Multimodel Inference. New York, NY: Springer New York. https://doi.org/10.1007/b97636.

It looks like there are several recent conference issues in journals in several fields on this.

The part I find now interesting is to get inference and standard errors that takes model uncertainty into account. Before I thought model averaging is only for prediction as in machine learning.

The target for statsmodels could be to provide measures of model uncertainty, and standard errors, for example for treatment effects, that take model uncertainty into account.

Activity

  1. josef-pkt commented on Nov 11, 2019

    @josef-pkt
    MemberAuthor

    The basic version for model averaging and multi-model standard errors looks relatively easy to implement given a set of models that have aic/aicc and the usual params and cov_params/bse.

  2. josef-pkt commented on Nov 13, 2019

    @josef-pkt
    MemberAuthor

    just an implementation idea, when running many different models

    We cannot keep all models in memory because memory consumption is too large.
    If we run through models in a loop, then we could keep just the k best models, e.g. by AIC. So, we could add a keyword parameter, keep_best=1. and discard other models except for the sufficient statistics that we need for model selection and model averaging summaries.

  3. josef-pkt commented on Dec 4, 2019

    @josef-pkt
    MemberAuthor

    design ideas, in continuation of #6268 all subset regression can produce a large number of models with some basic information, e.g. parameter of interest, for each model

    design questions

    • large versus small set of models in ENH: sweep algorithm and sequential OLS with QR #6268 I estimated up to 500,000 models. In smaller cases we only want to look at the best 5 to 50 models, i.e. drop models with much lower aic or other selection criterion.
    • target "parameter":
      • coefficient/parameter in model, e.g. a parameter of interest as coefficient for a specific exog.
      • effects parameter, e.g. margins: will be relevant if models don't have the same parameterization, e.g. Logit versus Probit.
      • prediction/forecasting: (leave that to machine learning and tsa), useful for counterfactual causal effect computation, e.g. ATE or ATTE
      • generic linear or nonlinear function, includes margins and predict
    • model averaged standard errors and confidence intervals. still unclear which are best, or less bad.
      • basic from Burnham and co-authors, 2 versions
      • Hjort Claeskens, asymptotically equivalent to encompassing super model.
      • averaged tail area, ...
    • descriptive statistics and plots, e.g. histogram for parameter estimates (in large set, mixture of normals)
    • weight choices:
      • simple: aic, bic, ...
      • focused FIC (I didn't look at the details yet, but we should have this)
      • optimal: requires additional optimization step
      • cross-validation, jacknife, ... (not in initial versions, too time consuming, more oriented to prediction and machine learning)
    • link to specification testing, e.g. testing between nested or not nested models (I haven't seen this mentioned yet in the model averaging literature that I looked at)
    • link to ultrahigh screening, maybe use that as a preliminary step.

    design needs dual interface

    • one for large number of models with summary statistics and
    • one for small number of models where we have access to all model and results instances

    use first for overall sensitivity (model selection uncertainty) and pre-screening
    use second for detailed analysis and model averaging (for OLS we could also use a product matrix or decomposition of it as sufficient statistic, but this will not be flexible enough for nonlinear models, e.g. binary or count models, nonrobust cov_types)

  4. josef-pkt commented on Dec 6, 2019

    @josef-pkt
    MemberAuthor

    treatment effect estimation versus model averaging, which variables to include in models

    two comment articles that argue against model averaging for estimating treatment effects.
    alternative is robustness analysis of preferred model(s)

    Muñoz, John, and Cristobal Young. 2018. “Rejoinder: Can We Weight Models by Their Probability of Being True?” Sociological Methodology 48 (1): 43–51. https://doi.org/10.1177/0081175018796841.

    Young, Cristobal. 2019. “The Difference Between Causal Analysis and Predictive Models: Response to ‘Comment on Young and Holsteen (2017).’” Sociological Methods & Research 48 (2): 431–47. https://doi.org/10.1177/0049124118782542.

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