Package: survalis 0.7.1

survalis: Interpretable Survival Machine Learning Framework

A modular toolkit for interpretable survival machine learning with a unified interface for fitting, prediction, evaluation, and interpretation. It includes semiparametric, parametric, tree-based, ensemble, boosting, kernel, and deep-learning survival learners, together with benchmarking, scoring, calibration, and model-agnostic interpretation utilities. Representative methodological anchors include Cox (1972) <doi:10.1111/j.2517-6161.1972.tb00899.x>, Royston and Parmar (2002) <doi:10.1002/sim.1203>, Ishwaran et al. (2008) <doi:10.1214/08-AOAS169>, Jaeger et al. (2019) <doi:10.1214/19-AOAS1261>, Harrell et al. (1982) <doi:10.1001/jama.1982.03320430047030>, Graf et al. (1999) <doi:10.1002/(SICI)1097-0258(19990915/30)18:17/18%3C2529::AID-SIM274%3E3.0.CO;2-5>, Friedman (2001) <doi:10.1214/aos/1013203451>, Apley and Zhu (2020) <doi:10.1111/rssb.12377>, and Lundberg and Lee (2017) <https://papers.nips.cc/paper/7062-a-unified-approach-to-interpreting-model-predictions>, and other related methods for survival modeling, prediction, and interpretation.

Authors:Imad El Badisy [aut, cre]

survalis_0.7.1.tar.gz
survalis_0.7.1.zip(r-4.7)survalis_0.7.1.zip(r-4.6)survalis_0.7.1.zip(r-4.5)
survalis_0.7.1.tgz(r-4.6-any)survalis_0.7.1.tgz(r-4.5-any)
survalis_0.7.1.tar.gz(r-4.7-any)survalis_0.7.1.tar.gz(r-4.6-any)
survalis_0.7.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
survalis/json (API)

# Install 'survalis' in R:
install.packages('survalis', repos = c('https://ielbadisy.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ielbadisy/survalis/issues

Datasets:
  • veteran - Veteran's Administration Lung Cancer Trial Data

On CRAN:

Conda:

interpretable-machine-learningsurvival-analysis

3.98 score 3 scripts 267 downloads 99 exports 174 dependencies

Last updated from:44df45d1ae. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK264
source / vignettesOK264
linux-release-x86_64OK268
macos-release-arm64OK228
macos-oldrel-arm64OK197
windows-develOK226
windows-releaseOK169
windows-oldrelOK205
wasm-releaseOK174

Exports:auc_survmatbenchmark_default_survlearnersbenchmark_tuned_survlearnersbest_survlearnerbriercindex_survmatcompute_alecompute_calibrationcompute_counterfactualcompute_interactionscompute_pdpcompute_shapcompute_surrogatecompute_tree_surrogatecompute_varimpcv_plotcv_summarycv_survlearnercv_survmetalearnerece_survmatfit_aalenfit_aftgeefit_bartfit_blackboostfit_bnnsurvfit_cforestfit_coxphfit_flexsurvregfit_glmnetfit_orsffit_rangerfit_rpartfit_rsffit_selectcoxfit_stpm2fit_survdnnfit_survmetalearnerfit_survsvmfit_xgboostiae_survmatibs_survmatise_survmatlist_interpretability_methodslist_metricslist_survlearnerslist_tunable_survlearnersplot_aleplot_benchmarkplot_calibrationplot_counterfactualplot_interactionsplot_pdpplot_shapplot_surrogateplot_survmatplot_survmetalearner_weightsplot_tree_surrogateplot_varimppredict_aalenpredict_aftgeepredict_bartpredict_blackboostpredict_bnnsurvpredict_cforestpredict_coxphpredict_flexsurvregpredict_glmnetpredict_orsfpredict_rangerpredict_rpartpredict_rsfpredict_selectcoxpredict_stpm2predict_survdnnpredict_survmetalearnerpredict_survsvmpredict_xgboostscore_survmodelsummarise_benchmarksummarize_benchmark_resultsSurvsurvmat_to_chfsurvmat_to_hazsurvmat_to_quantilesurvmat_to_rmsttune_barttune_blackboosttune_bnnsurvtune_cforesttune_flexsurvregtune_glmnettune_orsftune_rangertune_rparttune_rsftune_selectcoxtune_survdnntune_survsvmtune_xgboost

Dependencies:aftgeeaorsfassertthatbackportsBARTbase64encBBbbmlebdsmatrixbitbit64bnnSurvivalbroombslibcachemcallrcheckmateclicliprclustercmprskcodetoolscoincollapsecolorspacecorocpp11crayondata.tabledata.treedescdeSolvediagramDiagrammeRdigestdoParalleldplyrevaluatefarverfastGHQuadfastmapflexsurvfontawesomeforeachforeignFormulafsfunctionalsfurrrfuturefuture.applygeepackgenericsggplot2glmnetglobalsgluegowergridExtragtablehighrHmischmshtmlTablehtmltoolshtmlwidgetsigraphinumisobanditeratorsjquerylibjsonlitekernlabKernSmoothknitrlabelinglatticelavalibcoinlifecyclelistenvlsodamagrittrMASSMatrixMatrixModelsmatrixStatsmboostmemoisemetsmgcvmimemodeltoolsmstatemuhazmultcompmvtnormnlmennetnnlsnumDerivotelparallellypartypartykitpecpillarpkgconfigplotrixpolsplinepracmaprettyunitsprocessxprodlimprogressprogressrpsPublishpurrrquadprogquantregR6randomForestSRCrangerrappdirsRColorBrewerRcppRcppArmadilloRcppEigenreadrriskRegressionrlangrmarkdownrmsrpartrsamplerstpm2rstudioapiS7safetensorssandwichsassscalesshapesliderSparseMSQUAREMstabsstatmodstringistringrstrucchangesurvdnnsurvivalsurvivalsvmTH.datatibbletidyrtidyselecttimeregtinytextorchtzdbutf8vctrsviridisLitevisNetworkvroomwarpwithrxfunxgboostyamlzoo

Readme and manuals

Help Manual

Help pageTopics
Time-Dependent AUC from a Survival-Probability Matrixauc_survmat
Benchmark Multiple Survival Learners (Cross-Validation Wrapper)benchmark_default_survlearners
Benchmark Tuned Survival Learners with Nested Cross-Validationbenchmark_tuned_survlearners
Select the Best Survival Learner by a Given Metricbest_survlearner
Brier Score with IPCW for a Single Time Pointbrier
Concordance Index from a Survival-Probability Matrixcindex_survmat
Accumulated Local Effects (ALE) for Survival Modelscompute_ale
Calibration of Survival Predictions at a Single Time Pointcompute_calibration
Compute individual counterfactual changes to increase survivalcompute_counterfactual
Compute Feature Interactions for Survival Predictionscompute_interactions
Partial Dependence and ICE for Survival Predictionscompute_pdp
Compute local SHAP-like contributions for survival predictionscompute_shap
Local Surrogate Explanation for Survival Predictions (LIME-style)compute_surrogate
Compute Tree-Based Surrogate Model for Survival Predictionscompute_tree_surrogate
Permutation variable importance for survival modelscompute_varimp
Boxplot of Cross-Validation Metric Distributionscv_plot
Summarize Cross-Validation Resultscv_summary
Cross-Validate a Survival Learner (fold-mapped with 'fmapn')cv_survlearner
Cross‑Validate a Stacked Survival Meta‑Learnercv_survmetalearner
Expected Calibration Error (ECE) at a Single Time Pointece_survmat
Fit an Additive Hazards (Aalen) Modelfit_aalen
Fit an Accelerated Failure Time Model Using Generalized Estimating Equationsfit_aftgee
Fit a Bayesian Additive Regression Trees (BART) Survival Modelfit_bart
Fit a Componentwise Gradient Boosted Cox Model (blackboost)fit_blackboost
Fit a kNN–Ensemble Survival Model (bnnSurvival)fit_bnnsurv
Fit a Conditional Inference Survival Forestfit_cforest
Fit a Cox Proportional Hazards Modelfit_coxph
Fit a Parametric Survival Regression Model Using flexsurvregfit_flexsurvreg
Fit a Penalized Cox Proportional Hazards Model (glmnet)fit_glmnet
Fit an Oblique Random Survival Forest (ORSF) Modelfit_orsf
Fit a Survival Random Forest Model Using rangerfit_ranger
Fit a Survival Tree Model using 'rpart'fit_rpart
Fit a Random Survival Forest (RSF) Modelfit_rsf
Fit a Predictor-Selection Cox Model (pec::selectCox, mlsurv_model-compatible)fit_selectcox
Fit a Flexible Parametric Survival Model (rstpm2, mlsurv_model-compatible)fit_stpm2
Fit a Deep Neural Network Survival Model (mlsurv_model-compatible)fit_survdnn
Fit a Stacked Survival Meta‑Learner (Time‑Varying NNLS)fit_survmetalearner
Fit a Survival SVM Model (mlsurv_model-compatible)fit_survsvm
Fit an XGBoost Survival Model (mlsurv_model-compatible)fit_xgboost
Integrated Absolute Error Against Kaplan-Meieriae_survmat
Integrated Brier Score (Discrete Integration)ibs_survmat
Integrated Squared Error Against Kaplan-Meierise_survmat
List interpretability methods available in survalislist_interpretability_methods
List Available Evaluation Metricslist_metrics
List survival learners available in survalislist_survlearners
List tunable survival learnerslist_tunable_survlearners
Plot ALE Curves for Survival Modelsplot_ale
Plot Benchmark Distributions Across Learnersplot_benchmark
Plot Calibration Curve for Survival Predictionsplot_calibration
Plot Counterfactual Recommendationsplot_counterfactual
Plot Interaction Strengths for Survival Modelsplot_interactions
Plot PDP/ICE Curves for Survival Modelsplot_pdp
Plot SHAP-like contributions for survival modelsplot_shap
Plot Local Surrogate Explanationplot_surrogate
Plot Predicted Survival Curves from a survmatplot_survmat
Plot Time‑Varying Stacking Weightsplot_survmetalearner_weights
Plot Tree-Based Surrogate Models or Feature Importancesplot_tree_surrogate
Plot Permutation Variable Importanceplot_varimp
Predict Survival from an Aalen Additive Hazards Modelpredict_aalen
Predict Survival Probabilities from an 'aftgee' Modelpredict_aftgee
Predict Survival Probabilities from a BART Survival Modelpredict_bart
Predict Survival Probabilities from a blackboost Modelpredict_blackboost
Predict Survival with a bnnSurvival Modelpredict_bnnsurv
Predict Survival Probabilities from a Conditional Inference Survival Forestpredict_cforest
Predict Survival Probabilities from a Cox PH Modelpredict_coxph
Predict Survival Probabilities from a flexsurvreg Modelpredict_flexsurvreg
Predict Survival Probabilities from a Penalized Cox Model (glmnet)predict_glmnet
Predict Survival Probabilities from an ORSF Modelpredict_orsf
Predict Survival Probabilities from a ranger Modelpredict_ranger
Predict Survival Probabilities from an 'rpart' Survival Treepredict_rpart
Predict Survival Probabilities from an RSF Modelpredict_rsf
Predict Survival Probabilities with a Selected Cox Modelpredict_selectcox
Predict Survival Probabilities with an rstpm2 Modelpredict_stpm2
Predict Survival Probabilities with a DNN Survival Modelpredict_survdnn
Predict with a Stacked Survival Meta‑Learnerpredict_survmetalearner
Predict Survival Probabilities with Survival SVMpredict_survsvm
Predict Survival with XGBoostpredict_xgboost
Score a Fitted Survival Model on Its Training Datascore_survmodel
Summarise Benchmark Results (Mean SD with Wald CI)summarise_benchmark
Compact Table of Mean SD by Learner and Metricsummarize_benchmark_results
Summarize an 'mlsurv_model'summary.mlsurv_model
Convert a survival-probability matrix (survmat) to cumulative hazardsurvmat_to_chf
Convert a survival-probability matrix (survmat) to hazards on a time gridsurvmat_to_haz
Compute a survival-time quantile from a survival-probability matrix (survmat) with grid-based approachsurvmat_to_quantile
Compute restricted mean survival time (RMST) from a survival-probability matrix (survmat)survmat_to_rmst
Tune BART Survival Hyperparameters (Cross-Validation)tune_bart
Tune blackboost Hyperparameters (Cross-Validation)tune_blackboost
Tune bnnSurvival Hyperparameters (Cross-Validation)tune_bnnsurv
Tune a Conditional Inference Survival Foresttune_cforest
Tune Parametric Survival Models with flexsurvregtune_flexsurvreg
Tune Penalized Cox Proportional Hazards Model via Cross-Validationtune_glmnet
Tune Oblique Random Survival Forests (ORSF) via Cross-Validationtune_orsf
Hyperparameter Tuning for ranger Survival Modelstune_ranger
Tune a Survival Tree Model ('rpart') via Cross-Validationtune_rpart
Tune Random Survival Forest Hyperparameters (Cross-Validation)tune_rsf
Tune SelectCox Rule (Cross-Validation)tune_selectcox
Tune Deep Neural Network Survival Models (Cross-Validation)tune_survdnn
Tune Survival SVM Hyperparameters (Cross-Validation)tune_survsvm
Tune XGBoost Survival Hyperparameters (Cross-Validation)tune_xgboost
Veteran's Administration Lung Cancer Trial Dataveteran