coxed: An R Package for Computing Duration-Based Quantities from the Cox Proportional Hazards Model
Jonathan Kropko and Jeffrey J. Harden
, The R Journal (2019) 11:2, pages 38-45.
Abstract The Cox proportional hazards model is one of the most frequently used estimators in duration (survival) analysis. Because it is estimated using only the observed durations’ rank ordering, typical quantities of interest used to communicate results of the Cox model come from the hazard function (e.g., hazard ratios or percentage changes in the hazard rate). These quantities are substantively vague and difficult for many audiences of research to understand. We introduce a suite of methods in the R package coxed to address these problems. The package allows researchers to calculate duration-based quantities from Cox model results, such as the expected duration (or survival time) given covariate values and marginal changes in duration for a specified change in a covariate. These duration-based quantities often match better with researchers’ substantive interests and are easily understood by most readers. We describe the methods and illustrate use of the package.
Received: 2018-10-08; online 2019-12-26, supplementary material, (1.4 KiB)@article{RJ-2019-042, author = {Jonathan Kropko and Jeffrey J. Harden}, title = {{coxed: An R Package for Computing Duration-Based Quantities from the Cox Proportional Hazards Model}}, year = {2019}, journal = {{The R Journal}}, doi = {10.32614/RJ-2019-042}, url = {https://doi.org/10.32614/RJ-2019-042}, pages = {38--45}, volume = {11}, number = {2} }