From tlumley at u.washington.edu  Wed Oct  6 20:06:06 2004
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Wed Oct  6 20:06:22 2004
Subject: [Rd] R2.0.0 bug in function vcov in library survival (PR#7266)
In-Reply-To: <Pine.LNX.4.44.0410061725330.564-100000@gannet.stats>
References: <Pine.LNX.4.44.0410061725330.564-100000@gannet.stats>
Message-ID: <Pine.A41.4.61.0410061103540.346816@homer06.u.washington.edu>

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


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