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. 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..
    2. 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.
    3. 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.
    4. Meyer, Bruce D, 1990. "Unemployment Insurance and Unemployment Spells," Econometrica, Econometric Society, vol. 58(4), pages 757-782, July.
    5. 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.
    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. 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.
    6. Francesco Devicienti, 2011. "Estimating poverty persistence in Britain," Empirical Economics, Springer, vol. 40(3), pages 657-686, May.
    7. 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.
    8. Maes, Marjan, 2008. "Poverty persistence among Belgian elderly: true or spurious?," ISER Working Paper Series 2008-24, Institute for Social and Economic Research.
    9. 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.
    10. 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.
    11. 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.
    12. 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.
    13. 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.
    14. 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.
    15. 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.
    16. Kozo Kiyota & Miho Takizawa, 2006. "The Shadow of Death: Pre-exit Performance of Firms in Japan," Discussion papers 06033, Research Institute of Economy, Trade and Industry (RIETI).
    17. Hess Wolfgang & Tutz Gerhard & Gertheiss Jan, 2016. "A Flexible Link Function for Discrete-Time Duration Models," Journal of Economics and Statistics (Jahrbuecher fuer Nationaloekonomie und Statistik), De Gruyter, vol. 236(4), pages 455-481, August.
    18. Gómez-Déniz, E. & Pérez-Rodríguez, J.V., 2019. "Modelling bimodality of length of tourist stay," Annals of Tourism Research, Elsevier, vol. 75(C), pages 131-151.
    19. 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.
    20. Yolanda F. Rebollo-Sanz & Nuria Rodriguez Planas, 2016. "When the Going Gets Tough... Financial Incentives, Duration of Unemployment and Job-Match Quality," Working Papers 16.11, Universidad Pablo de Olavide, Department of Economics.

    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.