calibration_surro {MiMIR}R Documentation

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
)

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

Value

list with the calibrated surrogates

See Also

plattCalibration


[Package MiMIR version 1.5 Index]