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
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
2 matches
Mail list logo