KNN | R Documentation |
The fraction of k-nearest neighbours in the original data that are preserved as k-nearest neighbours in imputed data. KNN quantifies preservation of the local, or microscopic structure. Requires complete datasets - for developers/use in benchmark studies only.
KNN(xorigin, ximputed, k = 3)
xorigin |
numeric matrix. The original log-intensity data. Can not contain missing values. |
ximputed |
numeric matrix. The imputed log-intensity data. Can not contain missing values. |
k |
number of nearest neighbours. default to k=3. |
numeric The proportion of preserved k-nearest neighbours in imputed data.
data(pxd007959)
y <- pxd007959$y
y <- y[complete.cases(y),]
# for demonstration we use same y for xorigin and ximputed
KNN(y, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.