[R] questions about coxph.detail

From: singyee ling <singyee.ling_at_googlemail.com>
Date: Sat 21 Jan 2006 - 03:52:01 EST


Dear R- users,

I obtained a coxph object using the coxph function and use the coxph.detail function to understand what coxph function actually does.

what follow are the R output

fit<-coxph(Surv(B3TODEATH,STATUS)~GROUP+AGE+SEX+SEX:AGE) detail<- coxph.detail(fit)

<-detail
$time

.... .(rows of events time)

$means

......(a matrix consisting of mean of each variable at event time)

$nevent

......( number of event at unique event time)

$nrisk

......(number of ppl at risk at each event time)

$hazard

.......(hazard at each event time)

etc...etc

okay, my question is on how the hazard at each event time is calculated. I suspect that it is h(t) = (nevent(t)/nrisk(t))* exp( sum(coeff* means(t)). Am I right? if not, how is the hazard actually calculated?

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jan 21 04:15:06 2006

This archive was generated by hypermail 2.1.8 : Sat 21 Jan 2006 - 06:23:19 EST