CoxPH: ("start", "stop", "status") not equivalent to ("elapsed", "status")

Description

library(h2o)
h <- h2o.init(nthreads = -1)
heart.hex <- as.h2o(h, heart)
heart.hex$elapsed <- heart.hex$stop - heart.hex$start

heart.coxph.h2o <- h2o.coxph(x = "age", y = c("start", "stop", "event"), data = heart.hex, key = "heartmod.h2o")
heart.coxph.h2o2 <- h2o.coxph(x = "age", y = c("elapsed", "event"), data = heart.hex, key = "heartmod.h2o")

The two models are not equivalent:
> heart.coxph.h2o
Call:
h2o.coxph(x = "age", y = c("start", "stop", "event"), data = heart.hex,
key = "heartmod.h2o")

coef exp(coef) se(coef) z p
age 0.0307 1.03 0.0143 2.15 0.031

Likelihood ratio test=5.17 on 1 df, p=0.023 n= 172, number of events= 75
> heart.coxph.h2o2
Call:
h2o.coxph(x = "age", y = c("elapsed", "event"), data = heart.hex,
key = "heartmod.h2o")

coef exp(coef) se(coef) z p
age 0.0296 1.03 0.0146 2.03 0.042

Likelihood ratio test=4.6 on 1 df, p=0.032 n= 172, number of events= 75

Activity

Show:
Bill Gallmeister
December 10, 2016, 12:15 AM

I resolved these.

Won't Fix
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Bill Gallmeister

Reporter

Amy Wang

CustomerVisible

No