getOptimalKValue {evaluomeR} | R Documentation |
This method finds the optimal value of K per each metric.
getOptimalKValue(stabData, qualData, k.range = NULL)
stabData |
An output |
qualData |
An output |
k.range |
A range of K values to limit the scope of the analysis. |
It returns a dataframe following the schema:
metric
, optimal_k
.
# Using example data from our package data("rnaMetrics") stabilityData <- stabilityRange(data=rnaMetrics, k.range=c(2,4), bs=20, getImages = FALSE) qualityData <- qualityRange(data=rnaMetrics, k.range=c(2,4), getImages = FALSE) kOptTable = getOptimalKValue(stabilityData, qualityData)