print.HR | R Documentation |
This class of objects is returned by the HR class of functions to represent smooth hazard ratio curve. Objects of this class have methods for print
, predict
and plot
.
## S3 method for class 'HR' print(x, ...)
x |
An object of class HR. |
... |
Other arguments. |
No value is returned.
Artur Araújo and Luís Meira-Machado
Meira-Machado, L. and Cadarso-Suárez, C. and Gude, F. and Araújo, A. (2013). smoothHR: An R Package for Pointwise Nonparametric Estimation of Hazard Ratio Curves of Continuous Predictors. Computational and Mathematical Methods in Medicine, 2013, 11 pages. doi: 10.1155/2013/745742
smoothHR
.
# Example 1 library(survival) data(whas500) fit <- coxph(Surv(lenfol, fstat)~age+hr+gender+diasbp+pspline(bmi)+pspline(los), data=whas500, x=TRUE) hr1 <- smoothHR(data=whas500, coxfit=fit) print(hr1) # Example 2 hr2 <- smoothHR( data=whas500, time="lenfol", status="fstat", formula=~age+hr+gender+diasbp+ pspline(bmi)+pspline(los) ) print(hr2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.