calibration_surro | R Documentation |
helper function that calculates the Platt Calibrations for all the surrogates
calibration_surro( bin_phenotypes, surrogates, bin_names, bin_pheno_available, pl = FALSE, nbins = 10 )
bin_phenotypes |
data.frame with binary phenotypes resulting form binarize_all_pheno |
surrogates |
data.frame with surrogates resulting from calculate_surrogate_scores |
bin_names |
string with the names of the binarize clinical variables |
bin_pheno_available |
string with the names of the binarize clinical variables available in the dataset |
pl |
TRUE/FALSE. If TRUE creates the calibration plots |
nbins |
number of bins for the plots |
list with the calibrated surrogates
plattCalibration
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.