biolearn.mortality
: Mortality Predictor Evaluation#
This module provides a set of functions for evaluating predictors of mortality
Functions:
|
Runs predictions using a collection of models from the model gallery specified in predictors_dict and returns a DataFrame with the results. |
|
Calculates the C-index for each predictor in the predictor_results DataFrame without adjusting for age. |
|
Calculates mortality hazard ratios for predictor results using a Cox Proportional Hazards model. |
|
Calculates the C-index for each predictor in the predictor_results DataFrame, adjusted for age. |
|
Calculates the log-rank test for each predictor in the predictor_results DataFrame, adjusted for age. |
|
Plots hazard ratios from the provided data in a forest plot. |