IDEAS home Printed from https://ideas.repec.org/p/boc/neur24/03.html
   My bibliography  Save this paper

Improving the speed and accuracy when fitting flexible parametric survival models on the log-hazard scale

Author

Listed:
  • Paul Lambert

    (Cancer Registry of Norway–Norwegian Institute of Public Health
    Karolinska Institutet)

Abstract

Flexible parametric survival models are an alternative to the Cox proportional hazards model and more standard parametric models for the modeling of survival (time-to-event) data. They are flexible in that spline functions are used to model the baseline and potentially complex time-dependent effects. In this talk, I will discuss using splines on the log-hazard scale. Models on this scale have some computational challenges because numerical integration is required to integrate the hazard function during estimation. The numerical integration is required for all individuals and for each call to likelihood/gradient/Hessian functions and can therefore be slow in large datasets. In addition, the models may have a singularity for the hazard function at t=0, which leads to precision issues. I will describe two recent updates to the stpm3 command that make these models faster to fit in large datasets and have improved accuracy for the numerical integration. First, the python option makes use of the mlad optimizer, which calls python, leading to major speed gains in large datasets. Second, there are different options for numerical integration of the hazard function, including tanh-sinh quadrature, which is now the default when the hazard function has a singularity at t=0. This leads to more accurate estimates compared with the more standard Gauss–Legendre quadrature. These speed and accuracy improvements make the use of these models more feasible in large datasets.

Suggested Citation

  • Paul Lambert, "undated". "Improving the speed and accuracy when fitting flexible parametric survival models on the log-hazard scale," Northern European Stata Conference 2024 03, Stata Users Group.
  • Handle: RePEc:boc:neur24:03
    as

    Download full text from publisher

    File URL: http://repec.org/neur2024/Northern_Europe24_Lambert.pdf
    File Function: presentation materials
    Download Restriction: no
    ---><---

    More about this item

    Statistics

    Access and download statistics

    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:neur24:03. 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/stataea.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.