Re: [Rd] Adding a survival object to a data frame (PR#10510)

2007-12-13 Thread Prof Brian Ripley
Apparently this was Surv from package Design. So the bug is in contributed package Design, and nothing to do with R-bugs. On Wed, 12 Dec 2007, Peter Dalgaard wrote: > [EMAIL PROTECTED] wrote: >> Your example is not reproducible without 'library(survival)'. >> When I include that, I get >> >> >>>

Re: [Rd] Adding a survival object to a data frame (PR#10510)

2007-12-12 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: > Your example is not reproducible without 'library(survival)'. > When I include that, I get > > >> head(D,20) >> > stime status surv > 1176 TRUE 176 > ... > > Objects of class "Surv" are from the contributed package survival, and you > need that attach

Re: [Rd] Adding a survival object to a data frame (PR#10510)

2007-12-12 Thread ripley
Your example is not reproducible without 'library(survival)'. When I include that, I get > head(D,20) stime status surv 1176 TRUE 176 ... Objects of class "Surv" are from the contributed package survival, and you need that attached to deal with them properly. On Wed, 12 Dec 2007, [

[Rd] Adding a survival object to a data frame (PR#10510)

2007-12-12 Thread edward . m
Full_Name: Edward McNeil Version: 2.6.1 OS: Windows Submission from: (NULL) (203.170.234.5) I want to show students how the survival object looks like in R. Reproducible example: library(MASS) data(Aids2) attach(Aids2) status <- status=="D" stime <- death-diag surv <- Surv(stime, status) D <- da