Re: [R] Question about survdiff in for-loop.

2012-10-19 Thread Sando
Thank you for your replay and help !! Best Regards, Young. -- View this message in context: http://r.789695.n4.nabble.com/Question-about-survdiff-in-for-loop-tp4646707p4646827.html Sent from the R help mailing list archive at Nabble.com. __ R-hel

[R] Question about survdiff in for-loop.

2012-10-19 Thread Sando
Hi everyone!! I have dataset composed of a numbers of survival analyses. ( for batch survival analyses by using for-loop) . Here are code !! ### dim(svsv) Num_t<-dim(svsv) Num<-Num_t[2] # These are predictors !! names=colnames(svsv) for (i in 1:Num ) { name_tt=names[i] survdiff(Surv(s