distMoa {mogsa} | R Documentation |
moa-class
.
A convenient function to calculate the distance matrix from
an object of class moa-class
.
distMoa(x, nf = NA, tol = 1e-05, method = "euclidean", diag = FALSE, upper = FALSE, p = 2)
x |
An object of class |
nf |
Integer; the number of component used to calculate the distance. Default setting (NA) will keep all the axes. |
tol |
Numerical; the tolerance of component with low variance. |
method |
passed to function |
diag |
passed to function |
upper |
passed to function |
p |
passed to function |
An object of class dist
, see function "dist".
Chen Meng
# see examples in \code{\link{mbpca}} data("NCI60_4arrays") moa <- mbpca(NCI60_4arrays, ncomp = 10, k = "all", method = "globalScore", option = "lambda1", center=TRUE, scale=FALSE) dst <- distMoa(moa)