Hi all,
I have installed in R 2.6 the survival package and I am trying to analyze some data and present plots. The problem occurs when I try to plot different lines on the same plot. E.g.
### This is how I create the data to plot
res.plot.12a <- survfit(Surv(t1,e1)~ as.factor(group1))
res.plot.1star<-survfit(Surv(t2, e2)~ as.factor(group2))
### This is what I want to do and the problem appears:
plot(res.plot.12a)
lines(res.plot.1star,type="s")
Error in rep(2, n2 - 1) : invalid 'times' argument
I have run this same program millions of times from my previous pc and I never had such a problem. Now suddenly this error message appears. Can someone help?
Thank you,
Makis
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
|