Tauchmann H, Yurkevich E (2025)
Publication Language: English
Publication Type: Other publication type, software module
Publication year: 2025
URI: https://ideas.repec.org/c/boc/bocode/s459417.html
Open Access Link: https://ideas.repec.org/c/boc/bocode/s459417.html
cfbinout implements control function (two-stage residuals inclusion) estimation of binary outcome models, specifically logit, probit, and cloglog, as suggested in Wooldridge (2015). That is, in a first stage the endogenous right-hand-side variables are regressed on the exogenous variables in the model. Subsequently, the (generalized) residuals from these regressions enter the second-stage regression as additional regressors. Regarding the implementation in Stata and Mata, cfbinout draws on Terza (2017, 2023). cfbinout complements the official Stata command ivprobit, twostep and the recent community-contributed command ivcloglog. Unlike ivprobit, twostep and ivcloglog, cfbinout allows for discrete/factor endogenous right-hand-side variables. For them, nonlinear first-stage models (default logit, alternatively probit) are estimated and generalized residuals are included in the second-stage regression, unless the option fslink(linear) is specified. With a probit link-function and the option fslink(linear), cfbinout probit is equivalent to ivprobit, twostep in terms of model estimation. An important difference is, however, that unless the option noresgenerate is specified, cfbinout takes the control functions (included residuals) into account in postestimation. The equivalence of cfbinout probit is even closer with cfprobit, an official Stata command that was released for StataNow almost at the same time as cfbinout was completed.
APA:
Tauchmann, H., & Yurkevich, E. (2025). CFBINOUT: Stata module to perform Control Function Estimation of Binary Outcome Models.
MLA:
Tauchmann, Harald, and Elena Yurkevich. CFBINOUT: Stata module to perform Control Function Estimation of Binary Outcome Models. 2025.
BibTeX: Download