R/metapredict_confusion.R
calcConfusionCv.RdCalculate a confusion matrix based on predictions from cross-validation.
calcConfusionCv( cvFit, lambda, ematMerged, sampleMetadata, className = "class", classLevels = NA )
| cvFit | cv.glmnet object from |
|---|---|
| lambda | value of lambda at which to use predictions. |
| ematMerged | matrix of gene expression for genes by samples. |
| sampleMetadata | data.frame of sample metadata. |
| className | name of column in |
| classLevels | Order of classes in the confusion matrix. If |
An object of class table.