Displaying 2 results from an estimated 2 matches for "gbsg2".
Did you mean:
gbsg
2012 May 17
1
ctree for suvival analysis problem
...ysis.
When I used party version party_0.9-9991 everything worked well, but when I
update to party_1.0-2 (due to using 64bit R), I get an error. For simplicity
I will show the error I get for the example in the party documentation:
### survival analysis
if (require("ipred")) {
data("GBSG2", package = "ipred")
GBSG2ct <- ctree(Surv(time, cens) ~ .,data = GBSG2)
plot(GBSG2ct)
treeresponse(GBSG2ct, newdata = GBSG2[1:2,])
}
for the plot(GBSG2ct) line I get the following error:
Error in Summary.Surv(c(1814, 2018, 712, 1807, 772, 448, 2172, 2161, 471, :
Invalid oper...
2011 Apr 27
1
ctree and survival problem
...n the demo with example(ctree) and did get the survival graphs in the end. Upon doing this with my own data and yielding a "Invalid operation on a survival time" I tried to rerun example(ctree) and now I also get "Invalid operation on a survival time" after the example runs plot(GBSG2ct)... any ideas what is going on here. I?m running R 2.11.1
//M