EconPapers    
Economics at your fingertips  
 

IVCLOGLOG: Stata module to estimate a complementary log-log model with endogenous covariates, instrumented via the control function approach (i.e., 2SRI)

William Liu ()
Additional contact information
William Liu: MIT

Statistical Software Components from Boston College Department of Economics

Abstract: -ivcloglog- is essentially the same thing as -ivprobit, twostep- but for the -cloglog- model. -ivcloglog- estimates a complementary log-log model with instrumenting of endogenous variables via the control function approach (also known in statistics as 2SRI – two-stage residuals inclusion). This just means that transformed versions of the residuals of the first stage regressions (i.e., the "auxiliary models") are included as regressors in the second stage (i.e., the "primary model"). In the case of -ivcloglog-, a linear first stage and polynomial control functions are used – the latter just means that powers of the residuals are used as generated second-stage regressors. An important use case is that -ivcloglog- allows users to estimate a Prentice and Gloeckler (1978) model with endogenous covariates (either continuous or functions of observed continuous covariates), just like how the basic version of the model (i.e., with all covariates exogenous) can be estimated using -cloglog-. For the guide to the theory behind this, see “A Theory Guide: Instrumenting a Discrete-Data Proportional Hazards Model with Control Functions” (Liu, 2023). For the complementary empirical guide with a real-data application, see “An IV Hazard Model of Loan Default with an Application to Subprime Mortgage Cohorts” (Palmer, 2023).

Language: Stata
Requires: Stata version 11 and moremata from SSC (q.v.)
Keywords: control function; 2SRI; instrumental variables; complementary log-log; cloglog; hazard model; survival model; duration model; proportional hazards (search for similar items in EconPapers)
Date: 2023-09-12, Revised 2023-11-18
Note: This module should be installed from within Stata by typing "ssc install ivcloglog". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/i/ivcloglog.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/i/ivcloglog_ex.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/g/gmm_ivcloglog.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/i/ivcloglog.sthlp help file (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459239

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-30
Handle: RePEc:boc:bocode:s459239