[R] vcov method for 'coxph' objects
p.dalgaard at biostat.ku.dk
Tue Oct 26 17:34:34 CEST 2004
"Vito Muggeo" <vito.muggeo at giustizia.it> writes:
> Dear all,
> The help file for the generic function vcov states
> "Classes with methods for this function include: 'lm', 'glm', 'nls', 'lme',
> 'gls', 'coxph' and 'survreg' (the last two in package 'survival')."
> Since, I am not able to use vcov.coxph(), I am wondering whether I am
> missing something (as I suspect..)
It's a bug in the NAMESPACE file for survival:
> vcov.coxph <- survival:::vcov.coxph
So the only thing you're missing is example(coxph) in your example.
Without that, test1 is not found.
> > o<- coxph( Surv(time, status) ~ x + strata(sex), test1) #example from
> > vcov(o) #of course I could use o$var
> Error in vcov(o) : no applicable method for "vcov"
It has been reported before, and I think it is fixed in the current
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help