"Vito Muggeo" <[EMAIL PROTECTED]> 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:

> survival:::vcov.coxph(o)
         x
x 1.660006

or

> vcov.coxph <- survival:::vcov.coxph
> vcov(o)
         x
x 1.660006


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
> ?coxph
> > 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
patch version.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])             FAX: (+45) 35327907

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to