IDEAS home Printed from https://ideas.repec.org/c/boc/bocode/s459239.html
 

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

Author

Listed:
  • William Liu

    (MIT)

Programming Language

Stata

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).

Suggested Citation

  • William Liu, 2023. "IVCLOGLOG: Stata module to estimate a complementary log-log model with endogenous covariates, instrumented via the control function approach (i.e., 2SRI)," Statistical Software Components S459239, Boston College Department of Economics, revised 18 Nov 2023.
  • Handle: RePEc:boc:bocode:s459239
    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.
    as

    Download full text from publisher

    File URL: http://fmwww.bc.edu/repec/bocode/i/ivcloglog.ado
    File Function: program code
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/i/ivcloglog_ex.ado
    File Function: program code
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/g/gmm_ivcloglog.ado
    File Function: program code
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/i/ivcloglog.sthlp
    File Function: help file
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:bocode:s459239. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/debocus.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.