https://github.com/cran/rstpm2
Raw File
Tip revision: ecc02a93ab91dcf160aeb7d64a1954671e83ddde authored by Mark Clements on 01 November 2018, 21:30:03 UTC
version 1.4.4
Tip revision: ecc02a9
_region_.tex
\message{ !name(Introduction.Rnw.tex)}
\message{ !name(Introduction.Rnw) !offset(291) }
fit <- stpm2(Surv(rectime,censrec==1)~hormon,
             data=brcancer, link.type="AH")
summary(fit)
plot(fit, newdata=data.frame(hormon=0))
lines(fit, newdata=data.frame(hormon=1), lty=2)
lines(survfit(Surv(rectime,censrec==1)~hormon, data=brcancer), col="blue", lty=1:2)

\message{ !name(Introduction.Rnw.tex) !offset(-10) }
back to top