Learn R Programming

MiMIR (version 1.5)

calibration_surro: calibration_surro

Description

helper function that calculates the Platt Calibrations for all the surrogates

Usage

calibration_surro(
  bin_phenotypes,
  surrogates,
  bin_names,
  bin_pheno_available,
  pl = FALSE,
  nbins = 10
)

Value

list with the calibrated surrogates

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

See Also

plattCalibration