[Rd] Segmentation fault using "survival" package (PR#2320)
jerome@hivnet.ubc.ca
jerome@hivnet.ubc.ca
Sat, 23 Nov 2002 00:51:51 +0100 (MET)
Full_Name: Jerome Asselin
Version: 1.6.1
OS: RedHat Linux 7.2
Submission from: (NULL) (142.103.173.179)
Hello,
I get a segmentation fault when I run the following code. I wouldn't expect
meaningful results because my response variable contains only missing values.
However, I would expect something like a regular error (not a segmentation
fault).
library(survival)
data <- structure(list(surv = structure(c(NA, NA, NA, 0,
0, 0), .Dim = c(3, 2), .Dimnames = list(NULL, c("time", "status"
)), class = "Surv", type = "right"), x = c(-1, -1, -0.5)),
.Names = c("surv", "x"),row.names = c("1", "2", "3"),
class = "data.frame")
coxph(surv ~ x,data=data)
Below is what I get when I run these commands from a freshly started R session.
This is always reproducible for me.
Sincerely,
Jerome Asselin
> library(survival)
>
> data <- structure(list(surv = structure(c(NA, NA, NA, 0,
+ 0, 0), .Dim = c(3, 2), .Dimnames = list(NULL, c("time", "status"
+ )), class = "Surv", type = "right"), x = c(-1, -1, -0.5)),
+ .Names = c("surv", "x"),row.names = c("1", "2", "3"),
+ class = "data.frame")
>
> coxph(surv ~ x,data=data)
Segmentation fault