IDEAS home Printed from https://ideas.repec.org/a/tsj/stataj/v12y2012i2p242-256.html
   My bibliography  Save this article

Faster estimation of a discrete-time proportional hazards model with gamma frailty

Author

Listed:
  • Michael G. Farnworth

    (University of New Brunswick)

Abstract

Fitting a complementary log-log model that accounts for gammadistributed unobserved heterogeneity often takes a significant amount of time. This is in part because numerical derivatives are used to approximate the gradient vector and Hessian matrix. The main contribution of this article is the use of Mata and a gf2 evaluator to express the gradient vector and Hessian matrix. Gradient vector expression allows one to use a few different options and postestimation commands. Furthermore, expression of the gradient vector and Hessian matrix increases the speed at which a likelihood function is maximized. In this article, I present a complementary log-log model, show how the gamma distribution has been incorporated, and point out why the gradient vector and Hessian matrix can be expressed. I then discuss the speed at which a maximum is achieved, and I apply sampling weights that require an expression of the gradient vector. I introduce a new command for fitting this model. To demonstrate how this model can be applied, I will examine information on when young males first try marijuana. Copyright 2012 by StataCorp LP.

Suggested Citation

  • Michael G. Farnworth, 2012. "Faster estimation of a discrete-time proportional hazards model with gamma frailty," Stata Journal, StataCorp LP, vol. 12(2), pages 242-256, June.
  • Handle: RePEc:tsj:stataj:v:12:y:2012:i:2:p:242-256
    Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj12-2/st0256/
    as

    Download full text from publisher

    File URL: http://www.stata-journal.com/article.html?article=st0256
    File Function: link to article purchase
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Heckman, James & Singer, Burton, 1984. "A Method for Minimizing the Impact of Distributional Assumptions in Econometric Models for Duration Data," Econometrica, Econometric Society, vol. 52(2), pages 271-320, March.
    2. Meyer, Bruce D, 1990. "Unemployment Insurance and Unemployment Spells," Econometrica, Econometric Society, vol. 58(4), pages 757-782, July.
    3. Sueyoshi, Glenn T, 1995. "A Class of Binary Response Models for Grouped Duration Data," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 10(4), pages 411-431, Oct.-Dec..
    4. Jenkins, Stephen P, 1995. "Easy Estimation Methods for Discrete-Time Duration Models," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 57(1), pages 129-138, February.
    5. Jaap H. Abbring & Gerard J. Van Den Berg, 2007. "The unobserved heterogeneity distribution in duration analysis," Biometrika, Biometrika Trust, vol. 94(1), pages 87-99.
    6. Ondrich, Jan & Rhody, Stephen E., 1999. "Multiple spells in the Prentice-Gloeckler-Meyer likelihood with unobserved heterogeneity," Economics Letters, Elsevier, vol. 63(2), pages 139-144, May.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Wolfgang Hess & Maria Persson, 2012. "The duration of trade revisited," Empirical Economics, Springer, vol. 43(3), pages 1083-1107, December.
    2. Hess, Wolfgang & Persson, Maria, 2010. "The Duration of Trade Revisited. Continuous-Time vs. Discrete-Time Hazards," Working Papers 2010:1, Lund University, Department of Economics.
    3. Hess, Wolfgang & Persson, Maria, 2009. "Survival and Death in International Trade - Discrete-Time Durations of EU Imports," Working Papers 2009:12, Lund University, Department of Economics.
    4. Marjan, MAES, 2008. "Poverty persistence among Belgian elderly in the transition from work to retirement : an empirical analysis," Discussion Papers (ECON - Département des Sciences Economiques) 2008042, Université catholique de Louvain, Département des Sciences Economiques.
    5. Nicoletti, Cheti & Rondinelli, Concetta, 2010. "The (mis)specification of discrete duration models with unobserved heterogeneity: A Monte Carlo study," Journal of Econometrics, Elsevier, vol. 159(1), pages 1-13, November.
    6. J. García-Pérez & Fernando Muñoz-Bullón, 2004. "Are Temporary Help Agencies changing mobility patterns in the Spanish labour market?," Spanish Economic Review, Springer;Spanish Economic Association, vol. 7(1), pages 43-65, January.
    7. Mika Haapanen & Hannu Tervo, 2006. "Migration Behaviour and Duration of Residence Spells of Graduating Students in Finland in 1987-2002," ERSA conference papers ersa06p379, European Regional Science Association.
    8. Francesco Devicienti, 2011. "Estimating poverty persistence in Britain," Empirical Economics, Springer, vol. 40(3), pages 657-686, May.
    9. José Ignacio García Pérez & Fernando Múñoz Bullón, 2001. "The Nineties in Spain: so much Flexibility in the Labor Market?," Economic Working Papers at Centro de Estudios Andaluces E2001/01, Centro de Estudios Andaluces.
    10. Nicoletti, Cheti & Rondinelli, Concetta, 2006. "The (mis)specification of discrete time duration models with unobserved heterogenity: a Monte Carlo study," ISER Working Paper Series 2006-53, Institute for Social and Economic Research.
    11. Maes, Marjan, 2008. "Poverty persistence among Belgian elderly: true or spurious?," ISER Working Paper Series 2008-24, Institute for Social and Economic Research.
    12. Rebollo-Sanz, Yolanda Fatima & Rodríguez-Planas, Núria, 2016. "When the Going Gets Tough... Financial Incentives, Duration of Unemployment and Job-Match Quality," IZA Discussion Papers 10044, Institute of Labor Economics (IZA).
    13. Tor Helge Holmås, 2002. "Keeping nurses at work: a duration analysis," Health Economics, John Wiley & Sons, Ltd., vol. 11(6), pages 493-503, September.
    14. Jaap H. Abbring, 0000. "Mixed Hitting-Time Models," Tinbergen Institute Discussion Papers 07-057/3, Tinbergen Institute, revised 11 Aug 2009.
    15. Aysit Tansel & H. Mehmet Taşçı, 2010. "Hazard Analysis of Unemployment Duration by Gender in a Developing Country: The Case of Turkey," LABOUR, CEIS, vol. 24(4), pages 501-530, December.
    16. Damien Échevin & Bernard Fortin, 2011. "Physician Payment Mechanisms, Hospital Length of Stay and Risk of Readmission: a Natural Experiment," CIRANO Working Papers 2011s-44, CIRANO.
    17. Arranz, José M., 2006. "Unemployment duration, unemployment benefits and recalls," DEE - Working Papers. Business Economics. WB wb066218, Universidad Carlos III de Madrid. Departamento de Economía de la Empresa.
    18. Olympia Bover & Manuel Arellano & Samuel Bentolila, 2002. "Unemployment Duration, Benefit Duration and the Business Cycle," Economic Journal, Royal Economic Society, vol. 112(479), pages 223-265, April.
    19. Böheim, Renè & Horvath, Gerard Thomas & Winter-Ebmer, Rudolf, 2011. "Great expectations: Past wages and unemployment durations," Labour Economics, Elsevier, vol. 18(6), pages 778-785.
    20. García-Pérez, J. Ignacio & Jiménez-Martín, Sergi & Sánchez-Martín, Alfonso R., 2013. "Retirement incentives, individual heterogeneity and labor transitions of employed and unemployed workers," Labour Economics, Elsevier, vol. 20(C), pages 106-120.

    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:tsj:stataj:v:12:y:2012:i:2:p:242-256. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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 or Lisa Gilmore (email available below). General contact details of provider: http://www.stata-journal.com/ .

    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.