[Fwd: R-beta: R 0.50 alpha]

Andrea Rossetti rossetti at stat.unipg.it
Tue Dec 9 23:40:03 CET 1997


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list