cfbinout

Software

2025

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

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

Licence: GPL v3

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

Owner: H. Tauchmann, E. Yurkevich
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: Public
Publ-Datum: None
Lizenz: 243088260
Lizenz DE: Andere Lizenz (Details unten einfügen)
Lizenz Other: GPL v3
Datentyp: Software
Anderer Datentyp:
Beschreibung Zugang:
Groesse: 0
Einheit:
EOrgs: <QuerySet []>
FOBE: <QuerySet []>
Publications: <QuerySet []>
Projects: <QuerySet []>
Data Elements: <QuerySet []>