[R] Getting HR from Cox model in R

Ruzan Udumyan ruzudumyan at gmail.com
Tue Dec 23 10:42:04 CET 2014

Dear All,

I am not familiar with R language well. Could you please help me interpret
these commands?:

 TE = exp(sum(coef(cox)[c('aTRUE', 'bTRUE')]))   - does it mean exp(coef(a
variable) + coef(b variable)) ?
 DE = exp(unname(coef(cox)['aTRUE']))  - what is unname for ?

Thank you very much beforehand for your help.

Wishing you happy holidays,

	[[alternative HTML version deleted]]

More information about the R-help mailing list