Re: [R] library(survival)-- cluster

2009-12-11 Thread Terry Therneau
The query was why survreg() with a cluster() statement fails. The answer: a bug. A call to resid() preceded setting the class of the result to 'survreg'. I am currently adding another case to the test suite so that this does not happen again, and to formally validate that the numeric valu

[R] library(survival)-- cluster

2009-12-10 Thread sayan dasgupta
dear all Can you please throw some light on this .I am getting som error when I use library(survival) model <- survreg(Surv(time, status) ~ rx + cluster(litter), rats) Error in rowsum.default(resid(fit, "dfbeta"), cluster) : 'x' must be numeric Why does it throw up error ? Thanks and Regar