Displaying 1 result from an estimated 1 matches for "statcr".
Did you mean:
statci
2006 Jul 17
1
use "factor" for categorical covariate in Cox PH model
...riate or not: if we don't add "factor", there is
only one hazard ratio; if we add "factor", there are two hazard ratios.
So does the "factor" actually create some dummy variables for the
calculation?
Here is the code example:
curve2=survfit(Surv(CR, statcr) ~ factor(X1),data=dat1)
where X1 have three categories.
Thanks!
[[alternative HTML version deleted]]