coxres | R Documentation |
This function takes a survival structure such as produced by function Surv of package survival. Takes a (discretized) vector v, indexed as ss. Fits the Cox regression model of ss against v, and tests the proportional hazards assumption. Returns as a named vector of length 5: pv_logrank: the significance p-value (logrank) pvhz: the p-value for the validity of the model hrlb: the lower bound of the 95 hr: the hazard ratio hrub: the upper bound of the 95
coxres(ss, v)
ss |
A survival structure such as produced by function Surv of package survival. |
v |
A (discretized) vector indexed as ss. |
censoring |
date at which data are censored |
A named vector of length 5.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.