IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v061c01.html
   My bibliography  Save this article

Tutorial: Survival Estimation for Cox Regression Models with Time-Varying Coe?cients Using SAS and R

Author

Listed:
  • Thomas, Laine
  • Reyes, Eric M.

Abstract

Survival estimates are an essential compliment to multivariable regression models for time-to-event data, both for prediction and illustration of covariate effects. They are easily obtained under the Cox proportional-hazards model. In populations defined by an initial, acute event, like myocardial infarction, or in studies with long-term followup, the proportional-hazards assumption of constant hazard ratios is frequently violated. One alternative is to fit an interaction between covariates and a prespecified function of time, implemented as a time-dependent covariate. This effectively creates a time-varying coefficient that is easily estimated in software such as SAS and R. However, the usual programming statements for survival estimation are not directly applicable. Unique data manipulation and syntax is required, but is not well documented for either software. This paper offers a tutorial in survival estimation for the time-varying coefficient model, implemented in SAS and R. We provide a macro coxtvc to facilitate estimation in SAS where the current functionality is more limited. The macro is validated in simulated data and illustrated in an application.

Suggested Citation

  • Thomas, Laine & Reyes, Eric M., 2014. "Tutorial: Survival Estimation for Cox Regression Models with Time-Varying Coe?cients Using SAS and R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 61(c01).
  • Handle: RePEc:jss:jstsof:v:061:c01
    DOI: http://hdl.handle.net/10.18637/jss.v061.c01
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v061c01/v61c01.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v061c01/v61c01-code.zip
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v061.c01?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Scheike, Thomas H. & Zhang, Mei-Jie, 2011. "Analyzing Competing Risk Data Using the R timereg Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 38(i02).
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Jung, Hyejin & Hwang, JungTae & Kim, Byung-Keun, 2018. "Does R&D investment increase SME survival during a recession?," Technological Forecasting and Social Change, Elsevier, vol. 137(C), pages 190-198.
    2. Zijing Yang & Chengfeng Zhang & Yawen Hou & Zheng Chen, 2023. "Analysis of dynamic restricted mean survival time based on pseudo‐observations," Biometrics, The International Biometric Society, vol. 79(4), pages 3690-3700, December.
    3. Mark Pagell & Mary Parkinson & Anthony Veltri & John Gray & Frank Wiengarten & Michalis Louis & Brian Fynes, 2020. "The Tension Between Worker Safety and Organization Survival," Management Science, INFORMS, vol. 66(10), pages 4863-4878, October.
    4. Irfan Kanat & Yili Hong & T. S. Raghu, 2018. "Surviving in Global Online Labor Markets for IT Services: A Geo-Economic Analysis," Information Systems Research, INFORMS, vol. 29(4), pages 893-909, December.
    5. Amy Y. Li, 2017. "Dramatic Declines in Higher Education Appropriations: State Conditions for Budget Punctuations," Research in Higher Education, Springer;Association for Institutional Research, vol. 58(4), pages 395-429, June.
    6. Chen, Songnian, 2019. "Quantile regression for duration models with time-varying regressors," Journal of Econometrics, Elsevier, vol. 209(1), pages 1-17.
    7. Jörg Stolz & Anaïd Lindemann & Jean-Philippe Antonietti, 2019. "Sociological explanation and mixed methods: the example of the Titanic," Quality & Quantity: International Journal of Methodology, Springer, vol. 53(3), pages 1623-1643, May.
    8. Arora, Gaurav & Feng, Hongli & Hennessy, David A. & Loesch, Charles R. & Kvas, Susan, 2021. "The impact of production network economies on spatially-contiguous conservation– Theoretical model with evidence from the U.S. Prairie Pothole Region," Journal of Environmental Economics and Management, Elsevier, vol. 107(C).

    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. Helene C. W. Rytgaard & Frank Eriksson & Mark J. van der Laan, 2023. "Estimation of time‐specific intervention effects on continuously distributed time‐to‐event outcomes by targeted maximum likelihood estimation," Biometrics, The International Biometric Society, vol. 79(4), pages 3038-3049, December.
    2. Anthony Y. C. Kuk, 2020. "A Non‐Proportional Hazards Model with Hazard Ratio Functions Free from Covariate Values," International Statistical Review, International Statistical Institute, vol. 88(3), pages 715-727, December.
    3. Araújo, Artur & Meira-Machado, Luís & Roca-Pardiñas, Javier, 2014. "TPmsm: Estimation of the Transition Probabilities in 3-State Models," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 62(i04).
    4. Mogensen, Ulla B. & Ishwaran, Hemant & Gerds, Thomas A., 2012. "Evaluating Random Forests for Survival Analysis Using Prediction Error Curves," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 50(i11).
    5. Ayuso, Mercedes & Bermúdez, Lluís & Santolino, Miguel, 2015. "The dynamics of one-sided incomplete information in motor disputes," International Review of Law and Economics, Elsevier, vol. 41(C), pages 77-85.
    6. Kathryn Grace & Stuart Sweeney, 2014. "Pathways to marriage and cohabitation in Central America," Demographic Research, Max Planck Institute for Demographic Research, Rostock, Germany, vol. 30(6), pages 187-226.
    7. Diego I. Gallardo & Mário de Castro & Héctor W. Gómez, 2021. "An Alternative Promotion Time Cure Model with Overdispersed Number of Competing Causes: An Application to Melanoma Data," Mathematics, MDPI, vol. 9(15), pages 1-14, July.
    8. Gail E. Potter & Nicole Bohme Carnegie & Jonathan D. Sugimoto & Aldiouma Diallo & John C. Victor & Kathleen M. Neuzil & M. Elizabeth Halloran, 2022. "Using social contact data to improve the overall effect estimate of a cluster‐randomized influenza vaccination program in Senegal," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 71(1), pages 70-90, January.
    9. Pao-sheng Shen, 2022. "Nonparametric estimation for competing risks survival data subject to left truncation and interval censoring," Computational Statistics, Springer, vol. 37(1), pages 29-42, March.
    10. repec:jss:jstsof:38:i01 is not listed on IDEAS
    11. repec:jss:jstsof:47:i09 is not listed on IDEAS
    12. Xavier Milhaud & Christophe Dutang, 2018. "Lapse tables for lapse risk management in insurance: a competing risk approach," Post-Print hal-01727669, HAL.

    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:jss:jstsof:v:061:c01. 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 (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    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.