pointsCurve {ROCpAI} | R Documentation |
It calculates the coordinates (fpr, sen) of the ROC curve. This function sorts the scores of a model test and generates the points which will be used to plot its the ROC curve
pointsCurve(x, y)
x |
It is the vector of the status (gold standar) |
y |
It is the vector with the values of a predictor variable or clasificator |
return a matrix with the points of 1-specificity and sensibility that will be used to generate a ROC curve
library(fission) data("fission") strain <- fission@colData@listData$strain pointsCurve<- pointsCurve(strain, t(assay(fission))[,"SPNCRNA.1080"])