Function that calculates a t-test and a plotly image of the selected surrogates
ttest_surrogates(surrogates, bin_phenotypes)
Arguments
surrogates: numeric data.frame containing the surrogate values by Bizzarri et al.
bin_phenotypes: numeric data.frame with the binarized phenotypes output of binarize_all_pheno
Returns
plotly image with all the ROCs for all the available clinical variables
Details
Barplot and T-test indicating if the surrogate variables could split accordingly the real value of the binary clinical variables.
Examples
require(pROC)require(plotly)require(MiMIR)require(foreach)#load the datasetm <- synthetic_metabolic_dataset
p <- synthetic_phenotypic_dataset
#Calculating the binarized surrogatesb_p<-binarize_all_pheno(p)#Apply a surrogate models and plot the ROC curvesurr<-calculate_surrogate_scores(met=m, pheno=p, MiMIR::PARAM_surrogates, bin_names=colnames(b_p))ttest_surrogates(surr$surrogates, b_p)