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: SUEST, combining models, predictions, margins (maybe with GMM) #8216
Stata has suest command to provide inference for combining tw or more models
Wooldridge mentioned in a tweet that suest cannot be used for post-estimation commands like margins or predictions.
suest = seemingly unrelated estimation
suest works by stacking the model (block diagonal exog) and using cluster robust standard errors to compute cov_params taking into account that each observational unit is in several rows.
I didn't look at the details how cov_params are exactly defined and calculated.
However, it looks to me that it might be the same structure as using GMM for treatment effects, i.e. stack moment conditions horizontally (along axis=1) and let GMM compute the joint cov_params.
related issue for inference for comparing several predictions is for the case of a single model, not for combining predictions from several models.
However, it might be related if we use post-estimation commands based on the combined (stacked) model to, for example, compare predictions or margins across models.
This version has explicit formulas for multiple testing with 3 models.
Other articles have the more general version with an arbitrary number of models (example max-T trend tests with multiple contrasts/scores)
The max-T pvalue requires integral of multivariate T or multivariate normal distribution with non-identity scatter/covariance matrix. This covariance matrix of multiple test statistics is difficult to derive in general.
The idea is to use GMM moment equations to compute cov(score) to get sandwich for cov_params for params joint across models.
I expect implementation will be very similar to how GMM is used for TreatmentEffect standard errors.
vertical stacking in Stata is done to be able to use existing model structure in Stata.
We don't need this.
GMM with horizontal stacking provides the full model and results.
However, just getting cov_params should be easy.
The cross derivatives of moment w.r.t. params are block-diagonal, i.e. no overlap in params, given by hessians of the two models.
All we need is covariance off-diagonal blocks E(g1, g2) where g1, g2 are the moment conditions, score_obs, of the two models.
The diagonal blocks of cov(score_obs), we get from the individual models.
Then we have standard sandwich cov_params.
For the blocks on the diagonal of cov_params we could assume that the matrix equality holds, I guess. Then cov_params for within model parameter comparisons could be "nonrobust".
Activity
josef-pkt commentedon Aug 20, 2022
another application of this or similar
multiple testing across models
e.g. logistic regression with 3 models, max-T test for slope coefficient:
Chen, Zhongxue, and Yong Zang. 2021. “CMAX3: A Robust Statistical Test for Genetic Association Accounting for Covariates.” Genes 12 (11): 1723. https://doi.org/10.3390/genes12111723.
This version has explicit formulas for multiple testing with 3 models.
Other articles have the more general version with an arbitrary number of models (example max-T trend tests with multiple contrasts/scores)
The max-T pvalue requires integral of multivariate T or multivariate normal distribution with non-identity scatter/covariance matrix. This covariance matrix of multiple test statistics is difficult to derive in general.
The idea is to use GMM moment equations to compute cov(score) to get sandwich for cov_params for params joint across models.
I expect implementation will be very similar to how GMM is used for TreatmentEffect standard errors.
The correlation
josef-pkt commentedon Apr 18, 2023
looking at some articles that use, describe SUEST, e.g.
Mize, Trenton D., Long Doan, and J. Scott Long. “A General Framework for Comparing Predictions and Marginal Effects across Models.” Sociological Methodology 49, no. 1 (August 1, 2019): 152–89. https://doi.org/10.1177/0081175019852763.
vertical stacking in Stata is done to be able to use existing model structure in Stata.
We don't need this.
GMM with horizontal stacking provides the full model and results.
However, just getting cov_params should be easy.
The cross derivatives of moment w.r.t. params are block-diagonal, i.e. no overlap in params, given by hessians of the two models.
All we need is covariance off-diagonal blocks E(g1, g2) where g1, g2 are the moment conditions, score_obs, of the two models.
The diagonal blocks of cov(score_obs), we get from the individual models.
Then we have standard sandwich cov_params.
For the blocks on the diagonal of cov_params we could assume that the matrix equality holds, I guess. Then cov_params for within model parameter comparisons could be "nonrobust".