Repository navigation
Description
Design for heckman, ivpoisson, control function approach and similar 2-stage methods.
directly related to #7691 #7689
we have two choices and estimator in the design, current example heckman
- use full MLE or GMM simultaneously for all stages
- use 2-stage with auxiliary and main model
(another example, treatment effects estimators with GMM inference)
My tendency in the discussion of heckman PR was towards full model, i.e. bivariate MLE with recursive simultaneity.
However, we might not want the full model for post estimation results if the main focus is on the main model.
The following are some guesses on design issues that will show up
- wald tests:
- full model: main problem is that we need to expand constraint matrices to full params, We need unique param names. Constraints defined by strings will automatically handle full params. Also allows hypothesis tests for cross-equation constraints. (not sure that is a common usecase in this.)
- only main model: wald test for main model work generically. No inference for first stage or it needs to be provided separately.
- predict, get_prediction:
- full model: we need many "which" similar to zero-inflated models. get_prediction possibly needs linear and endpoint versions for more than main exog.
- only main model: might work generically for some cases. control function has extra generated terms, which, I guess, should be ignored for prediction.
- I guess we will have to distinguish between conditional prediction E(y1 | x1, y2) and unconditional prediction E(y1, y2 | x1, x2). (similar to structural versus reduced form in simultaneous equation models). and/or maybe E(y1 | x1, E(y2 | x2)) in nonlinear case.
- diagnostic
- most will be model specific
- Can we reuse e.g. PoissonDiagnostic for ivpoisson? I guess checking predictive distribution still makes sense.
- results attributes and internal attributes ?
- aic, (p)rsquared ... full or main?
- resid main only or bivariate?
- ...
- score_test ?
- ...
Another complication:
Some estimation methods, like GMM and partially OLS, GLM, PHReg, might not estimate and provide all necessary information to have a full model for get_distribution and prediction. In those cases we only get a limited set of post-estimation results.
This sounds painful.
I guess the most useful would be to always provide a model_main, results_main even if we have to construct it separately and independently of the estimation method.
Activity