calibration_surro function

calibration_surro

calibration_surro

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 )

Arguments

  • 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

Returns

list with the calibrated surrogates

See Also

plattCalibration

  • Maintainer: Daniele Bizzarri
  • License: GPL-3
  • Last published: 2024-02-01

Useful links