Learn R Programming

Biocomb (version 0.4)

compute.auc.permutation: Calculates the p-values

Description

This auxiliary function calculates the p-value of the significance of the AUC values using the permutation test (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.permutation(aucs,dattable,repetitions=1000)

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 permutations of feature values.

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:

p.values

a numeric vector with the 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). See the “Value” section to this page for more details.

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. The maximal number of class labels equals 10.

References

David J. Hand and Robert J. Till (2001). A Simple Generalisation of the Area Under the ROC Curve for Multiple Class Classification Problems. Machine Learning 45(2), p. 171<U+2013>186.

See Also

compute.aucs, pauclog, pauc, compute.auc.random

Examples

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

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

auc.val=compute.aucs(dattable=data_test)
vauc<-auc.val[,"AUC"]
rep.num<-20

p.values=compute.auc.permutation(aucs=vauc,dattable=data_test,rep.num)
# }

Run the code above in your browser using DataLab