[R] save print survfit object to data frame
Ruud H. Koning
info at rhkoning.com
Tue Oct 5 11:55:22 CEST 2004
Hello, I have estimated a survival model with six strata:
>model.b <-
survfit(Surv(time=start.tijd,time2=eind.tijd2,event=va)~strata(product.code)
,
data=wu.wide)
I would like to save the output of
>print(model.b,print.n="records",show.rmean=FALSE)
in a dataframe so that I can export it later. How do I do this? Note that
summary(model.b) gives an error:
Error in as.matrix(x) : (subscript) logical subscript too long
(R 1.9.1, windows xp, sp 2)
Thanks for any help, Ruud
More information about the R-help
mailing list