Hi, I'm using the rsept for WINDOWS 95 (with modified men?, and "fixed" survival4). See the Ennapadam Venkatraman's example made in date 35/07/97 19.02 Ennapadam Venkatraman wrote:> library(splines) > library(survival4) > xx <- NULL > xx$ftim <- exp(-runif(100)) > xx$ctim <- 2*runif(100) > xx$sts <- 1*(xx$ftim <= xx$ctim) > xx$otim <- xx$sts*xx$ftim + (1-xx$sts)*xx$ctim > xx$z1 <- runif(100) > xx$z2 <- runif(100) > survfit( Surv(otim,sts) ~ 1,xx)Error in eval(frame, data)[subset, , drop = FALSE] : incorrect number of dimensions> coxph( Surv(otim,sts) ~ z1 + z2, data=xx)Error in eval(frame, data)[subset, , drop = FALSE] : incorrect number of dimensions These problems can be fixed? Any suggestion is welcome. Andrea Rossetti. Excuse me for my bad english. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 9 Dec 1997, Andrea Rossetti wrote:> > survfit( Surv(otim,sts) ~ 1,xx) > Error in eval(frame, data)[subset, , drop = FALSE] : incorrect number of > dimensions > > coxph( Surv(otim,sts) ~ z1 + z2, data=xx) > Error in eval(frame, data)[subset, , drop = FALSE] : incorrect number of > dimensions > > These problems can be fixed? Any suggestion is welcome. >There is a problem with model.frame(), which was being rewritten when the Win95 snapshot of the code was taken and doesn't quite work. The survival library exercises model.frame() rather more than most code does. I will try to find a temporary solution, but it may be necessary to wait for the next edition. -thomas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._