'parsnip' Engines for Survival Models

Engines for survival models from the 'parsnip' package. These include parametric models (e.g., Jackson (2016) ), semi-parametric (e.g., Simon et al (2011) ), and tree-based models (e.g., Buehlmann and Hothorn (2007) ).


censored a pixelated version of the parsnip logo with a black censoring bar

R-CMD-check Codecov testcoverage Lifecycle:experimental R-CMD-check-hard

censored is a parsnip extension package which provides engines for various models for censored regression and survival analysis.

Installation

You can install the released version of censored from CRAN with:

install.packages("censored")

And the development version from GitHub with:

# install.packages("pak")
pak::pak("tidymodels/censored")

Available models, engines, and prediction types

censored provides engines for the models in the following table. For examples, please see Fitting and Predicting with censored.

The time to event can be predicted with type = "time", the survival probability with type = "survival", the linear predictor with type = "linear_pred", the quantiles of the event time distribution with type = "quantile", and the hazard with type = "hazard".

model engine time survival linear_pred raw quantile hazard
bag_tree rpart ✔ ✔ ✖ ✖ ✖ ✖
boost_tree mboost ✔ ✔ ✔ ✖ ✖ ✖
decision_tree rpart ✔ ✔ ✖ ✖ ✖ ✖
decision_tree partykit ✔ ✔ ✖ ✖ ✖ ✖
proportional_hazards survival ✔ ✔ ✔ ✖ ✖ ✖
proportional_hazards glmnet ✔ ✔ ✔ ✔ ✖ ✖
rand_forest partykit ✔ ✔ ✖ ✖ ✖ ✖
rand_forest aorsf ✔ ✔ ✖ ✖ ✖ ✖
survival_reg survival ✔ ✔ ✔ ✖ ✔ ✔
survival_reg flexsurv ✔ ✔ ✔ ✖ ✔ ✔
survival_reg flexsurvspline ✔ ✔ ✔ ✖ ✔ ✔

Contributing

This project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("censored")

0.3.5 by Hannah Frick, a month ago


https://github.com/tidymodels/censored, https://censored.tidymodels.org


Report a bug at https://github.com/tidymodels/censored/issues


Browse source code at https://github.com/cran/censored


Authors: Emil Hvitfeldt [aut] , Hannah Frick [aut, cre] (ORCID: , Posit Software , PBC [cph, fnd] (ROR: <https://ror.org/03wc8by49>)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports cli, dials, dplyr, generics, glue, hardhat, lifecycle, mboost, prodlim, purrr, rlang, stats, tibble, tidyr, vctrs

Depends on parsnip, survival

Suggests aorsf, coin, covr, flexsurv, glmnet, ipred, partykit, pec, rmarkdown, rpart, testthat


Imported by easysurv.

Suggested by MachineShop, butcher, fastml, important, lnmixsurv, spsurv, survex, tidyAML, triageR, tune.


See at CRAN