goranbrostrom / eha

eha
6 stars 1 forks source link

The Connection to Cox Regression #9

Open w1806291 opened 3 years ago

w1806291 commented 3 years ago

Can you help me with this code? I have loaded the survival and eha packages.

fit <- coxreg(Surv(enter, exit, event) ~ x, data = dat) fit$hazards

The output I get is NULL, not what is in the book.

and...

fit2 <- glmmboot(event ~ x, cluster = riskset, family = poisson, data = datB) coefficients(fit2)

Error in glmmboot(event ~ x, cluster = riskset, family = poisson, data = datB) : could not find function "glmmboot"

Thanks,