Learn R Programming

Biocomb (version 0.4)

compute.auc.random: Calculates the p-values

Description

This auxiliary function calculates the p-value of the significance of the AUC values using the comparison with random sample generation (for each input feature). It takes as an input the results of the AUC value calculation using function compute.aucs.

The results is in the form of “numeric vector” with p-values for each AUC value.

Usage

compute.auc.random(aucs,dattable,repetitions=10000,correction="none")

Arguments

aucs

a numeric vector of AUC values.

dattable

a dataset, a matrix of feature values for several cases, the last column is for the class labels. Class labels could be numerical or character values.

repetitions

the number of repetitions of random sample' generation.

correction

the method of p-value correction for multiple testing, including Bonferroni-Holm, Bonferroni corrections or without correction.

Value

The data can be provided with reasonable number of missing values that must be at first preprocessed with one of the imputing methods in the function input_miss. A returned data is the following:

pvalues.raw

a numeric vector with the corrected p-values for each feature AUC value

Details

This auxiliary function's main job is to calculate the p-values of the statistical significance test of the AUC values for each input feature for two-class problem.

Data can be provided in matrix form, where the rows correspond to cases with feature values and class label. The columns contain the values of individual features and the last column must contain class labels (with two class labels).

The correction methods include the Bonferroni correction ("bonferroni") in which the p-values are multiplied by the number of comparisons and the less conservative corrections by Bonferroni-Holm method ("bonferroniholm"). A pass-through option ("none") is also included.

The correction methods are designed to give strong control of the family-wise error rate. See the “Value” section to this page for more details.

References

Benjamini, Y., and Yekutieli, D. (2001). The control of the false discovery rate in multiple testing under dependency. Annals of Statistics 29, 1165<U+2013>1188.

See Also

compute.aucs, pauclog, pauc, compute.auc.permutation

Examples

Run this code
# NOT RUN {
# example
data(datasetF6)

# class label must be factor
datasetF6[,ncol(datasetF6)]<-as.factor(datasetF6[,ncol(datasetF6)])

auc.val=compute.aucs(dattable=datasetF6)
vauc<-auc.val[,"AUC"]

cors<-"none"
rep.num<-100

pvalues.raw<-compute.auc.random(aucs=vauc,dattable=datasetF6,
 repetitions=rep.num,correction=cors)
# }

Run the code above in your browser using DataLab