Displaying 1 result from an estimated 1 matches for "age_diag".
2007 Oct 11
0
Cox with time varying effect
...t to split time into 2 separate intervals : t<6months and t>=6months, to estimate one hazard ratio (hr) for each interval.
I am analysing Overall survival according to 3 prognostic factors (age,deep,ldh).
my dataframe (dtemp) looks like this:
> dtemp[1:3,]
id time status age_diag deep ldh
1 1 1.544148 1 65.42368 present elevated
2 2 17.051335 1 46.92676 present elevated
4 4 84.829569 0 65.86448 present normal
my first model without time varying hr is:
> mod<-coxph(Surv(time,status)~age_diag+deep+ldh,data=dtemp)
> mod...