https://github.com/cran/rstpm2
Raw File
Tip revision: c12a9847539968aa375d4df8349a3a524e7c1bb5 authored by Mark Clements on 17 January 2019, 14:50:04 UTC
version 1.4.5
Tip revision: c12a984
_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