当前位置:网站首页>PCA 报错Error in eigen(crossprod(t(X), t(X)), symmetric = TRUE) : ‘x‘里有无穷值或遗漏值
PCA 报错Error in eigen(crossprod(t(X), t(X)), symmetric = TRUE) : ‘x‘里有无穷值或遗漏值
2022-07-28 16:29:00 【皮肤科大白】
有缺失值如何PCA
> dat.pca <- PCA(dat, graph = FALSE)
Error in eigen(crossprod(t(X), t(X)), symmetric = TRUE) :
'x'里有无穷值或遗漏值
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

但是出来下面的提示,说让我用imputaPCA,搜索后知道这个imputePCA是missMDA包中的一个函数,于是需要然后下载missMDA包,并把其中的PCA换成imputePCA。那么什么是missMDA?如下图所示,就是一种matrix中含有缺失值,但是可以用这个包是这些缺失值对PCA的结果影像不大,这个函数imputePCA就是能把含有缺失值的matrix变成一个这些缺失值可以变成一个可以估算的值,然后仍然可以用PCA中的FactoMineR来计算。也可以参考
Husson和Josse写了一个称为missMDA的包,汇总了PCA分析所有可能通过迭代方式插值缺失值的方法。imputePCA()函数可以进行缺失值的内插。请查看此函数的帮助。
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)
边栏推荐
- Editor MAVON editor for offline use
- Several methods of importing excel file data by C #
- Verilog 每日一题(VL4 移位运算与乘法)
- Application system log structure of elastic stack
- AMQP protocol details
- Convert multidimensional object array to one-dimensional array
- Vscode plug-in automatically adds comments
- C#基础面试题(附答案)
- The practice of beego framework developed by goweb: Section 4 database configuration and connection
- The practice of the beego framework for goweb development: Section V project construction and user registration
猜你喜欢

高速电路中电容的选型和应用——详解

The practice of the beego framework of goweb development: Section II project initialization configuration

Verilog 每日一题 (VL27 可置位计数器)

谈谈你知道的发布上线(一)

Encrypt the video and upload it to OSS to achieve high concurrent access

Verilog 每日一题 (VL24 多bit MUX同步器 跨时域输出)
![[CDH] configure CDH components through clouderamanager and collect JMX information with Prometheus monitoring](/img/6a/bbc1ab0cfae9139308da4ded1376a8.png)
[CDH] configure CDH components through clouderamanager and collect JMX information with Prometheus monitoring

Verilog daily question (vl27 settable counter)

Redis源码剖析,狠狠地拿捏了,赶紧码住

Zero foundation uses unity3d to develop AR applications and download 3D models remotely
随机推荐
C语言实现扫雷小游戏
Batch download files
Selection of resistance in high speed circuit
一文掌握 JVM 面试要点
Application system log structure of elastic stack
The practice of beego framework in goweb development: Section I Introduction to beego framework
Insert text watermark in PDF
Andthen of function interface
在PDF中插入文本水印
Vscode uses eslint prettier to format code automatically
The actual combat of the beego framework of goweb development: Section III program execution process analysis
Verilog daily question (vl29 single port RAM)
Deploy lamp platform -- compilation and installation of Linux, Apache, MySQL and PHP
LNMP源码编译安装
Verilog 每日一题(VL4 移位运算与乘法)
Use Alibaba cloud's free SSL certificate
SNAT、DNAT 防火墙规则的备份和还原
数据库优化——深入理解Mysql索引底层数据结构与算法
部署LAMP平台---Linux,Apache,MySQL,PHP的编译安装
异步FIFO基本原理(基于Verilog的简单实现)