Skip to content
Prev 59454 / 398502 Next

function 'vcov' for coxph in R 2.0.0

Lei Liu wrote:

            
Please give us details and read the posting guide.

The first thing we can guess is that you are using function coxph() from 
package "survival". Is this correct?

If yes, the following extended exmaple from ?coxph works perfectly for 
me in R-2.0.1:

test1 <- list(time=  c(4, 3,1,1,2,2,3),
                 status=c(1,NA,1,0,1,1,0),
                 x=     c(0, 2,1,1,1,0,0),
                 sex=   c(0, 0,0,0,1,1,1))
vcov(coxph( Surv(time, status) ~ x + strata(sex), test1))


Uwe Ligges