当前位置:网站首页>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)
边栏推荐
- Talk about what you know about publishing online (2)
- 区分ES6的export与Nodejs的module.exports的区别
- dos命令大全 基础命令+网络的常用命令
- R中因子(factor)
- 医学公共数据库
- 完全未接触过软件测试的人,培训两个月就可以上岗,真的现实吗?
- Ng repeat executes a method when iterating over the last element
- 100+ collection of medical image data sets
- Database optimization -- deeply understand the underlying data structure and algorithm of MySQL index
- 软件测试零基础入门好学吗?
猜你喜欢

地图R语言

Verilog daily question (vl4 shift operation and multiplication)

Esp-mqtt-at instruction connects Alibaba cloud Internet of things platform

数据库性能分析与优化(爱测未来团队内训材料)

No interactive operation of shell script

easyui tree

掌握JVM面试专题和答案Offer拿到手软(附学习路线图)

Hgu95av2. Online installation failed

Talk about what you know about publishing online (I)

Awk of shell script
随机推荐
js将本地时间与服务器时间同步
一篇带你走近Kubernetes概貌与原理
JS中为对象数组添加新对象结果导致数组中已存在的对象也修改了
@RequestParam使用
Can you read the story?
Arya-专业web自动化测试平台
软件测试需求人才越来越多,走上测试道路的人却越来越少?
软件测试培训两个月靠谱吗?
Flat data to tree
PCA 报错Error in eigen(crossprod(t(X), t(X)), symmetric = TRUE) : ‘x‘里有无穷值或遗漏值
Backup and restore of SNAT and DNAT firewall rules
[kibana] problem sorting kibana 7.x no indices match pattern "APM-*“
深度分享阿里(蚂蚁金服)技术面试流程,附前期准备,学习方向
软件测试培训两个月骗局?培训机构到底如何选择?
你能读懂这个故事吗?
【 R语言—基础绘图】
[Presto] common commands of Presto
将input type='file' 类型的图片文件转成base64
小白如何零基础学习软件测试?
阿里P8架构师谈:成为架构师必须学好的七大知识点(含面试题)