| Literature DB >> 24454541 |
Luís Meira-Machado1, Carmen Cadarso-Suárez2, Francisco Gude3, Artur Araújo1.
Abstract
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.Entities:
Mesh:
Year: 2013 PMID: 24454541 PMCID: PMC3876718 DOI: 10.1155/2013/745742
Source DB: PubMed Journal: Comput Math Methods Med ISSN: 1748-670X Impact factor: 2.238
Summary of functions in the package.
| Function | Description |
|---|---|
| smoothHR | Main function of the package. Returns an object of class HR. |
| dfmacox | Provides the number of degrees of freedom in the additive Cox model. |
| plot | A function that provides the plots for the hazard ratio curves taking a specific value as reference. |
| predict | Provides estimates for the hazard ratio and their corresponding confidence limits. |
| Prints details about the Cox model. |
Figure 1Nonparametric estimates of the dependence of all-time risk of death on fasting glucose among ACS patients without a prior diagnosis of diabetes mellitus (log hazard ratio, with 95% confidence limits, unadjusted analysis).
Figure 2Nonparametric estimates of the dependence of all-time risk of death on fasting glucose among ACS patients with (b) and without (a) a prior diagnosis of diabetes mellitus (log hazard ratio, with 95% confidence limits).
Figure 3Nonparametric estimates of the dependence of all-time risk of recurrence on DNA index among patients with breast cancer (log hazard ratio, with 95% confidence limits). Reference value = 1.
Figure 4Nonparametric estimates of the dependence of all-time risk of recurrence on DNA index (restricted to the interval between 0.7 and 1.5) among patients with breast cancer (log hazard ratio, with 95% confidence limits). Reference value = 1.
Degrees of freedom (df) for the multivariable Cox model with penalized splines for fasting, creatinine, and age (cang, sex, smoking, stemi, pcad, killip, and anemia were the remaining predictors). Acute coronary syndrome data.
| Covariates | dfAIC | dfAICc | dfBIC | dfREML |
|---|---|---|---|---|
| Fasting | 4.80 | 3.62 | 1.59 | 2.57 |
| Creatinine | 7.97 | 1.48 | 1.49 | 2.04 |
| Age | 9.50 | 1.56 | 1.56 | 2.51 |
Values obtained for criteria AIC, AICc, and BIC (rows) for the corresponding Cox models (columns). Acute coronary syndrome data.
| Model | AIC | AICc | BIC | REML | |
|---|---|---|---|---|---|
| Score | |||||
| AIC | 858.096 | 860.048 | 862.907 | 861.898 | |
| AICc | 899.816 | 869.928 | 870.774 | 872.283 | |
| BIC | 930.326 | 895.101 | 893.166 | 898.032 |
Degrees of freedom (df) for the multivariable Cox model with penalized splines for DI, size, and LNI. SPF and ER were the remaining predictors. Breast cancer data.
| Covariates | dfAIC | dfAICc | dfBIC | dfREML |
|---|---|---|---|---|
| DI | 14.99 | 14.99 | 5.10 | 6.39 |
| Size | 10.98 | 10.63 | 1.78 | 2.78 |
| LNI | 2.01 | 1.50 | 1.50 | 2.18 |
Values obtained for criteria AIC, AICc, and BIC (rows) for the corresponding Cox models (columns). Breast cancer data.
| Model | AIC | AICc | BIC | REML | |
|---|---|---|---|---|---|
| Score | |||||
| AIC | 1505.559 | 1506.235 | 1539.252 | 1537.230 | |
| AICc | 1524.557 | 1524.200 | 1543.318 | 1542.556 | |
| BIC | 1595.218 | 1593.327 | 1570.269 | 1577.272 |