当前位置:网站首页>PCA reports error in eigen (crossprod (t (x), t (x)), symmetric = true): 'x' has infinite value or missing value
PCA reports error in eigen (crossprod (t (x), t (x)), symmetric = true): 'x' has infinite value or missing value
2022-07-28 17:40:00 【Dermatology Dabai】
How about missing values PCA
> dat.pca <- PCA(dat, graph = FALSE)
Error in eigen(crossprod(t(X), t(X)), symmetric = TRUE) :
'x' There are infinite values or missing values in
In addition: Warning message:
In PCA(dat, graph = FALSE) :
Missing values are imputed by the mean of the variable: you should use the imputePCA function of the missMDA package

But come up with the following tips , Say let me use it imputaPCA, I know this after searching imputePCA yes missMDA A function in a package , So you need to download missMDA package , And put the PCA Switch to imputePCA. So what is missMDA? As shown in the figure below , It's a kind of matrix There are missing values , But this package can be used for these missing value pairs PCA The resulting image is not large , This function imputePCA That is to say, those with missing values matrix These missing values can become an estimable value , Then you can still use PCA Medium FactoMineR To calculate . It's fine too Reference resources
Husson and Josse Wrote a book called missMDA My bag , Sum up PCA Analyze all possible methods of interpolating missing values through iteration .imputePCA() Function can interpolate missing values . Please check the help of this function .
Josse, J., Husson, F.: Handling missing values in exploratory multivariate data analysis methods.
Journal de la Société Française de Statistique. 153, 79–99 (2012)
边栏推荐
猜你喜欢

Can‘t use an undefined value as an ARRAY reference at probe2symbol
![[Presto] details of the new version upgrade of Presto](/img/12/61ed53ff7a8a810092d60501cca443.png)
[Presto] details of the new version upgrade of Presto

Talk about what you know about publishing online (2)

Insert text watermark in PDF

Verilog daily question (vl4 shift operation and multiplication)

Using OCR to reverse recognize text content in airtest

蚂蚁金服移动测试工具solopi监控部分源码导读。。持续更新

解决Package is not available (for R ve【PACKAGE ‘XXX’ IS NOT AVAILABLE (FOR R VERSION X.Y.Z)” WARNING?】

Wild pointer recurrence

Firewall protective wall
随机推荐
Visual Object Class介绍PASCAL VOC数据集
软件测试工程师如何突破职业发展瓶颈
软件测试前景如何?该如何进行学习呢?
Wild pointer recurrence
生信人的20个R语言习题
C#基础面试题(附答案)
软件测试零基础入门好学吗?
转行学习软件测试有前途吗?
多大适合学习软件测试?
一文掌握 JVM 面试要点
都说软件测试是IT行业最差的,是这样的吗?
软件测试培训两个月骗局?培训机构到底如何选择?
Insert text watermark in PDF
地图R语言
如何看软件测试未来的发展?
新人如何入门学习软件测试
mmcv安装的办法
特殊质数js实现
软件测试需求人才越来越多,走上测试道路的人却越来越少?
[Presto] common commands of Presto