[Rd] R2.0.0 bug in function vcov in library survival (PR#7266)

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Thu 07 Oct 2004 - 04:06:06 EST

On Wed, 6 Oct 2004, Prof Brian Ripley wrote:

> Those vcov methods were removed from stats at
>
> 2004-08-28 20:40:13 +0100 survival now has vcov.{coxph,survreg}
>
> Looks like they have been removed from survival since: that is where they
> should be. They are very simple --
>
> vcov.coxph <- vcov.survreg <- function (object, ...) object$var
>

No, they haven't been updated to cope with lazy loading (they are defined in a top-level if statement to prevent conflicts in older versions of R).

vcov.coxph is actually

     vcov.coxph<-function (object, ...) {
         rval<-object$var
         dimnames(rval)<-list(names(coef(object)),names(coef(object)))
         rval
     }

since object$var doesn't have dimnames.

         -thomas



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu Oct 07 04:23:43 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:00:27 EST