search for: zpfitp

Displaying 1 result from an estimated 1 matches for "zpfitp".

Did you mean: zpfit
2009 Mar 16
0
hazard function in a Cox model
...--- end inclusion ---- The best tool for understanding what is happening is cox.zph. cox.V <- coxph(Surv(intDaysUntilFVPO, Event_v) ~ intAgeAtMHCIndex + PRE + group + MHC + strGender, data = recidivismv) zpfit <- cox.zph(cox.V, transform='identity') plot( zpfitp[1]) #plot for the first variable plot( zpfitp[2]) #plot for the second You will get a plot of beta(t) versus time, a horizontal line corresponds to a constant hazard ratio. The Cox model coefficient is an "average" of the curve, e.g., the best horizontal line fit to it....