cfbinout

Software

2025

Subject: Stata, binary outcome, control-function estimation, generalized residual, two-step estimation, endogenous right-hand-side variables

Access: https://ideas.repec.org/c/boc/bocode/s459417.html

Details

Description

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.

Creators/Owners

Debug: Alles

Autoren: Yurkevich E, Tauchmann H
Datum: Feb. 5, 2025
Year: 2025
Beschreibung: 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.
Subject: Stata, binary outcome, control-function estimation, generalized residual, two-step estimation, endogenous right-hand-side variables
Verf: 320704969
Publ-Datum: None
Datentyp: 234371365
Anderer Datentyp:
Beschreibung Zugang:
Groesse: 0
Einheit: 0
EOrgs: <QuerySet []>
FOBE: <QuerySet []>
Publications: <QuerySet []>
Projects: <QuerySet []>