knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This package allows you to easily fit and report results from cure mixture models using a tidy framework. The package includes functions to:
You can install {cureit} with the following code:
remotes::install_github("karissawhiting/cureit")
Load the package:
library(cureit)
Functions to fit the models are wrappers for the smcure()
function from the {smcure} package with the additional capability of passing a formula and directly passing categortical variables without first creating a model matrix:
p <- cureit(surv_formula = Surv(ttdeath, death) ~ age, cure_formula = ~ age, data = trial) p$surv_coefs p$cure_coefs
Please note that the cureit project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Thank you to Sabrina Lin (@stl2137) for package contributions!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.