Closed cfz1998 closed 1 year ago
grp <- find.clusters(y, max.n.clust=100, n.clust = 3)
# 40 for PCA
dapc1 <- dapc(y, grp$grp, n.pca = 40, n.da = 4)
# scatter(dapc1)
You are using the same number of Principle Components to train your model as you used to detect your clusters. You are overfitting the model. Reduce the number of principle components.
Hi! @zkamvar I got the same result when i reduced the number of principal components to detect clusters.
It's not an error. This means that you are comparing groups that are quite disparate.
Hi! @zkamvar
According to the tutorial for Discriminant Analysis of Principal Components (DAPC). The scatter does not work well.
May be the big number of pca.cent?
Thank you for your reply!