View source: R/metricsAnalysis.R
getOptimalKValue | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.