Explainers

Create a model agnostic explainer for further processing

explain_survival() explain()

A model-agnostic explainer for survival models

Dataset level explanations

model_diagnostics()

Dataset Level Model Diagnostics

model_parts()

Dataset Level Variable Importance for Survival Models

model_performance()

Dataset Level Performance Measures

model_profile()

Dataset Level Variable Profile as Partial Dependence Explanations for Survival Models

model_profile_2d()

Dataset Level 2-Dimensional Variable Profile for Survival Models

model_survshap()

Global SHAP Values

Instance level explanations

predict(<surv_explainer>)

Model Predictions for Survival Models

predict_parts()

Instance Level Parts of Survival Model Predictions

predict_profile()

Instance Level Profile as Ceteris Paribus for Survival Models

Metrics and loss functions

brier_score() loss_brier_score()

Calculate Brier score

integrated_brier_score() loss_integrated_brier_score()

Calculate integrated Brier score

loss_adapt_mlr3proba()

Adapt mlr3proba measures for use with survex

loss_integrate()

Calculate integrated metrics based on time-dependent metrics.

loss_one_minus_c_index()

Calculate the Concordance index loss

loss_one_minus_cd_auc()

Calculate Cumulative/Dynamic AUC loss

loss_one_minus_integrated_cd_auc()

Calculate integrated C/D AUC loss

cd_auc()

Calculate Cumulative/Dynamic AUC

c_index()

Compute the Harrell's Concordance index

integrated_cd_auc()

Calculate integrated C/D AUC

Plotting functions

Plot results created by different functions

Model Performance

plot(<model_performance_survival>)

Plot Model Performance for Survival Models

plot(<surv_model_performance>)

Plot Model Performance Metrics for Survival Models

plot(<surv_model_performance_rocs>)

Plot ROC Curves for Survival Models

Model Parts

plot(<model_parts_survival>)

Plot Model Parts for Survival Models

plot(<surv_feature_importance>)

Plot Permutational Feature Importance for Survival Models

Model Profile

plot(<model_profile_survival>)

Plot Model Profile for Survival Models

plot(<model_profile_2d_survival>)

Plot 2-Dimensional Model Profile for Survival Models

Model SurvSHAP(t)

plot(<aggregated_surv_shap>)

Plot Aggregated SurvSHAP(t) Explanations for Survival Models

Model Diagnostics

plot(<model_diagnostics_survival>)

Plot Model Diagnostics for Survival Models

Predict Parts

plot(<predict_parts_survival>)

Plot Predict Parts for Survival Models

plot(<surv_shap>)

Plot SurvSHAP(t) Explanations for Survival Models

plot(<surv_lime>)

Plot SurvLIME Explanations for Survival Models

Predict Profile

plot(<predict_profile_survival>)

Plot Predict Profile for Survival Models

Utility functions

extract_predict_survshap()

Extract Local SurvSHAP(t) from Global SurvSHAP(t)

transform_to_stepfunction()

Transform Fixed Point Prediction into a Stepfunction

risk_from_chf()

Generate Risk Prediction based on the Survival Function

cumulative_hazard_to_survival()

Transform Cumulative Hazard to Survival

survival_to_cumulative_hazard()

Transform Survival to Cumulative Hazard

surv_model_info()

Extract additional information from the model

set_theme_survex() theme_default_survex() theme_vertical_default_survex()

Default Theme for survex plots