search for: whenfail

Displaying 2 results from an estimated 2 matches for "whenfail".

Did you mean: whenfailed
2012 Nov 26
1
Plotting an adjusted survival curve
...or > every single individual factor in my coxph, whereas I would like it to only display the > adjusted curves for when Treatment==1 and Treatment==0. How can I do this? > > A simplified example of my code with only one effect-modifier is: > > simple.cox.ethnicity<- coxph(Surv(whenfailed,failed) ~ factor(Treatment) + factor(ethnicity)) #I've my data are attached already > survfit.simple.cox.ethnicity<- survfit(simple.cox.ethnicity,survmat) #survmat is a data.frame that contains Treatment and ethnicity > plot(survfit.simple.cox.ethnicity, col=c("red","b...
2012 Nov 26
1
Plotting an adjusted kaplan-meier curve
...ink it displays a curve for every single individual factor in my coxph, whereas I would like it to only display the adjusted curves for when Treatment==1 and Treatment==0. How can I do this? A simplified example of my code with only one effect-modifier is: simple.cox.ethnicity <- coxph(Surv(whenfailed,failed) ~ factor(Treatment) + factor(ethnicity)) #I've my data are attached already survfit.simple.cox.ethnicity <- survfit(simple.cox.ethnicity,survmat) #survmat is a data.frame that contains Treatment and ethnicity plot(survfit.simple.cox.ethnicity, col=c("red","black&quot...