Re: [R] Presenting Hazard ratios for interacting variables in a Cox model

2016-11-21 Thread Stuart Patterson via R-help
On 18 November 2016 at 19:21, David Winsemius wrote: > > > On Nov 18, 2016, at 6:56 AM, Stuart Patterson via R-help < > r-help@r-project.org> wrote: > > > > I have a time-dependent cox model with three variables, each of which > > interacts with the other two

[R] Presenting Hazard ratios for interacting variables in a Cox model

2016-11-18 Thread Stuart Patterson via R-help
I have a time-dependent cox model with three variables, each of which interacts with the other two. So my final model is: fit12<-coxph(formula = Surv(data$TimeIn, data$Timeout, data$Status) ~ data$ Year+data$Life_Stg+data$prev.tb +data$prev.tb*data$Life_Stg + data$Year*data $Life_Stg + data$Year*d