knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of the sta545package is to implement the methods in David Cox's 1972 paper Regression Models and Life Tables for use in a project for the class "STA 545: Statistical Data Mining" at the University of Buffalo.
You can install the released version of the sta545package from GitHub with:
install.packages("devtools") devtools::install_github("mathmonster/sta545package")
library(sta545package) plot(fitkm(remission ~ sample, delta="censor", data=leukemia))
fitcox.leukemia <- fitcox(remission ~ sample, delta="censor", data=leukemia) summary(fitcox.leukemia)
predict(fitcox.leukemia, newdata=leukemia, type="expected")
concordance.fitcox(fitcox.leukemia, newdata=leukemia)
cv.fitcox(leukemia, fitcox(remission ~ sample, delta="censor", data=leukemia), 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.