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
ENH: multimodel inference, model averaging, specification sensitivity #6237
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.
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.
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.
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)
Activity
josef-pkt commentedon Nov 11, 2019
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.
josef-pkt commentedon Nov 13, 2019
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.josef-pkt commentedon Dec 4, 2019
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
design needs dual interface
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)
josef-pkt commentedon Dec 6, 2019
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.