Skip to main content
QUICK REVIEW

[Paper Review] Comparison of hazard rate estimation in R

Yolanda Hagar, Vanja Dukić|arXiv (Cornell University)|Sep 10, 2015
Statistical Methods and InferenceMathematics30 references7 citations
TL;DR

This paper evaluates eight R packages for semi- or non-parametric hazard rate estimation in right-censored survival data, focusing on accuracy, user-friendliness, and performance under proportional and non-proportional hazards. The bshazard() function emerged as the most reliable and user-friendly for standard models, while timereg and MRH packages offered strong performance for non-proportional hazards with clear output formatting.

ABSTRACT

We give an overview of eight different software packages and functions available in R for semi- or non-parametric estimation of the hazard rate for right-censored survival data. Of particular interest is the accuracy of the estimation of the hazard rate in the presence of covariates, as well as the user-friendliness of the packages. In addition, we investigate the ability to incorporate covariates under both the proportional and the non-proportional hazards assumptions. We contrast the robustness, variability and precision of the functions through simulations, and then further compare differences between the functions by analyzing the "cancer" and "TRACE" survival data sets available in R, including covariates under the proportional and non-proportional hazards settings.

Motivation & Objective

  • To assess the accuracy, robustness, and precision of R packages for non- and semi-parametric hazard rate estimation in right-censored survival data.
  • To evaluate the ability of packages to incorporate covariates under both proportional and non-proportional hazards assumptions.
  • To compare user-friendliness based on standard R formula syntax, compatibility with print/plot/summary functions, and clarity of documentation.
  • To identify the most reliable and practical packages for real-world survival analysis applications.
  • To guide researchers in selecting appropriate R packages for hazard estimation by balancing methodological soundness and implementation ease.

Proposed method

  • Simulation studies were conducted under both proportional and non-proportional hazards settings to compare estimation accuracy, variability, and precision across packages.
  • Real data analyses were performed on the 'cancer' and 'TRACE' survival datasets from R to evaluate performance in practical settings.
  • Packages were evaluated based on adherence to standard R survival modeling conventions, including Surv() and formula() syntax, and compatibility with standard R output functions.
  • The study assessed whether packages provided reliable hazard rate estimates and covariate effect estimates under varying data conditions and model assumptions.
  • User-friendliness was evaluated through documentation quality, example clarity, and ease of model fitting, plotting, and summarizing results.
  • The comparison included both frequentist and Bayesian approaches, with attention to computational efficiency and MCMC requirements.

Experimental results

Research questions

  • RQ1Which R packages provide the most accurate and precise estimates of the hazard rate in the presence of right-censored data?
  • RQ2How well do different packages handle covariate effects under proportional and non-proportional hazards assumptions?
  • RQ3Which packages offer the best balance of methodological robustness and user-friendliness in standard R workflow?
  • RQ4How do computational speed and implementation complexity vary across the evaluated packages?
  • RQ5What are the key differences in output interpretation and model diagnostics between the packages?

Key findings

  • The bshazard() function provided the most reliable and accurate hazard rate estimates in simple survival models with sufficient observed failures.
  • The bshazard() function was highly user-friendly, supporting standard R formula syntax and compatible with print(), plot(), and summary() functions.
  • For non-proportional hazards, the timereg and MRH packages were found to be particularly user-friendly and robust, with the estimateMRH() function offering more traditional and interpretable covariate effect reporting.
  • The timecox() function offered faster computation than MCMC-based alternatives, as it does not require Markov chain Monte Carlo sampling, and allows classical significance testing of parameters.
  • The LDDPsurvival() function was reliable but difficult to use due to poor documentation and idiosyncratic function design, especially with larger models.
  • Bayesian packages like bayesSurv, BGPhazard, and DPpackage offered advanced modeling capabilities but required deeper understanding of MCMC and prior distributions, increasing the learning curve.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.