- In factor.scores, the correlation matrix is singular, an approximation is used
我知道是相关系数矩阵的问题,但具体怎么解决?还是说整个数据有错?
主成分代码如下:此步骤为判断主成分个数:
- library(psych)
- #判断主成分的个数
- fa.parallel(train_data_3,fa="PC",n.iter = 100,show.legend = FALSE,main = "Scree plot with parallel analysis")