search for: ovarian2

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

Did you mean: ovarian
2020 Sep 30
0
2 KM curves on the same plot
...it" object is a survfit object, this would reset to default plot region. See the ovarian example below: > > > > library(survival) > > ovarian1<-ovarian > > ovarian1$fustat[ovarian$futime>450]<-0 > > ovarian1$futime[ovarian$futime>450]<-450 > > ovarian2<-subset(ovarian,futime>450) > > > > fit1 <- survfit(Surv(futime, fustat) ~ rx, data = ovarian1) > > fit2 <- survfit(Surv(futime, fustat) ~ rx, data = ovarian2) > > > > plot(fit1, xlim=c(0,1200), col = 1:2) > > abline(v=450) > > xylim<-par(&qu...
2020 Sep 29
5
2 KM curves on the same plot
Hello, Can anyone suggest a simple way to generate a Kaplan-Meier plot with 2 survfit objects, just like this one:? https://drive.google.com/file/d/1fEcpdIdE2xYtA6LBQN9ck3JkL6-goabX/view?usp=sharing Suppose I have 2 survfit objects: fit1 is for the curve on the left (survtime has been truncated to the cutoff line: year 5), fit2 is for the curve on the right (minimum survival time is at the