Skip to content

Commit

Permalink
Add survfit class designation to h2o.coxph survfit output.
Browse files Browse the repository at this point in the history
  • Loading branch information
aboyoun committed Jan 23, 2015
1 parent fa8af63 commit b504526
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/h2o-package/R/Classes.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ function(formula, newdata, conf.int = 0.95,
res$cumhaz <- outer(res$cumhaz, pred, FUN = "*")
res$std.err <- NULL
res$surv <- exp(- res$cumhaz)
class(res) <- c("survfit.H2OCoxPHModel", "survfit.cox", "survfit")
return(res)

# Code below assumes calculation in H2O
Expand Down

0 comments on commit b504526

Please sign in to comment.