Re: [R] coxreg vs coxph: time-dependent treatment

2011-09-30 Thread Göran Broström
2011/9/12 Göran Broström > Dear Ehsan, > > the cluster option is not implemented in 'eha', although you obviously get > no error if trying > I'll fix this. Thanks for the report. (So, use 'coxph' with cluster). > > Actually, there is nothing to fix; the cluster function works like the ident

Re: [R] coxreg vs coxph: time-dependent treatment

2011-09-12 Thread Göran Broström
Dear Ehsan, the cluster option is not implemented in 'eha', although you obviously get no error if trying I'll fix this. Thanks for the report. (So, use 'coxph' with cluster). Göran On Mon, Sep 12, 2011 at 4:43 AM, Ehsan Karim wrote: > Sorry: there was an error in the weight calculation,

Re: [R] coxreg vs coxph: time-dependent treatment

2011-09-11 Thread Ehsan Karim
Sorry: there was an error in the weight calculation, fixed version is the following, but still the final estimates differ as explained in the original email: # require(survival) require(eha) data(heart) head(heart) follow <- heart$stop - heart$start fit <- glm(transplan

[R] coxreg vs coxph: time-dependent treatment

2011-09-11 Thread Ehsan Karim
Dear List, After including cluster() option the coxreg (from eha package) produces results slightly different than that of coxph (from survival) in the following time-dependent treatment effect calculation (example is used just to make the point). Will appreciate any explaination / comment. cheer