Displaying 2 results from an estimated 2 matches for "survmat".
Did you mean:
survfit
2012 Nov 26
1
Plotting an adjusted kaplan-meier curve
...atment==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"), main="survfit.simple.cox", xlab="survival time", ylab="propotion surviving")
Thank you so much for your help.
Yours gratefully,...
2012 Nov 26
1
Plotting an adjusted survival curve
...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"), main="survfit.simple.cox", xlab="survival time", ylab="propotion surviving")
>
> Thank you so much for your help.
>...