karissawhiting / cureit

Home Page:http://www.karissawhiting.com/cureit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cureit

This package allows you to easily fit and report results from cure mixture models using a tidy framework. The package includes functions to:

  • Fit mixture cure models
  • Summarize coefficients using tidiers and gtsummary
  • Vizualize the data using nomograms
  • Assess model results with Brier scores and K-indicies

Installation

You can install {cureit} with the following code:

remotes::install_github("karissawhiting/cureit")

Load the package:

library(cureit)

Fit Mixture Cure Models

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
#> age, Survival model 
#>        -0.001010027

p$cure_coefs
#> (Intercept), Cure model         age, Cure model 
#>             -0.32294763              0.01067634

About

http://www.karissawhiting.com/cureit/

License:Other


Languages

Language:HTML 63.2%Language:R 36.8%