View source: R/function_find_maxn_clust.R
find_max_nclust | R Documentation |
Estimate the maximum number of groups in DAPC analysis
find_max_nclust(
x,
threshold,
max.nclust,
nperm = 100,
method = "kmeans",
stat = "BIC",
criterion = "diffNgroup",
subset = 100,
confidence.level = c(0.7, 0.8, 0.9, 0.95, 0.99)
)
x |
A data.frame or matrix object containing eigenvectors by sites. |
threshold |
Scalar. The number of eigenvectors used to perform classification. |
max.nclust |
Scalar indicating the maximum number of groups to be evaluated. |
nperm |
Scalar. Number of times classification will be performed. |
method |
c("kmeans","ward"). See |
stat |
c("BIC", "AIC", or "WSS"). See |
criterion |
c("diffNgroup", "min","goesup", "smoothNgoesup", or "goodfit"). See |
subset |
number of cells used in the analysis. It is particularly important whenever the total number of cells is large (> 1000). |
confidence.level |
threshold confidence level used to estimate congruence in the classification pattern. |
Matrix containing congruence values ranging between 0-1 for each max.nclust value (see Arguments) and confidence level.
## Not run:
data(regions)
evovectors <- regions$PCPS$vectors # eigenvectors by site
find_max_nclust(x=evovectors, threshold=3,max.nclust=10)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.