SmoothHR: an R package for pointwise nonparametric estimation of hazard ratio curves of continuous predictors. The Cox proportional hazards regression model has become the traditional choice for modeling survival data in medical studies. To introduce flexibility into the Cox model, several smoothing methods may be applied, and approaches based on splines are the most frequently considered in this context. To better understand the effects that each continuous covariate has on the outcome, results can be expressed in terms of splines-based hazard ratio (HR) curves, taking a specific covariate value as reference. Despite the potential advantages of using spline smoothing methods in survival analysis, there is currently no analytical method in the R software to choose the optimal degrees of freedom in multivariable Cox models (with two or more nonlinear covariate effects). This paper describes an R package, called smoothHR, that allows the computation of pointwise estimates of the HRs-and their corresponding confidence limits-of continuous predictors introduced nonlinearly. In addition, the package provides functions for choosing automatically the degrees of freedom in multivariable Cox models. The package is available from the R homepage. We illustrate the use of the key functions of the smoothHR package using data from a study on breast cancer and data on acute coronary syndrome, from Galicia, Spain.
Keywords for this software
References in zbMATH (referenced in 3 articles , 1 standard article )
Showing results 1 to 3 of 3.
- Malloy, Elisabeth J.; Kapellusch, Jay M.; Garg, Arun: Estimating and interpreting effects from nonlinear exposure-response curves in occupational cohorts using truncated power basis expansions and penalized splines (2017)
- Teixeira, Laetitia; Cadarso-Suárez, Carmen; Rodrigues, Anabela; Mendonça, Denisa: Time-dependent ROC methodology to evaluate the predictive accuracy of semiparametric multi-state models in the presence of competing risks: an application to peritoneal dialysis programme (2016)
- Meira-Machado, Luís; Cadarso-Suárez, Carmen; Gude, Francisco; Araújo, Artur: SmoothHR: an R package for pointwise nonparametric estimation of hazard ratio curves of continuous predictors (2013)