当前位置:网站首页>factoextra:多元统计方法的可视化PCA
factoextra:多元统计方法的可视化PCA
2022-07-29 10:23:00 【Mrrunsen】
FactoMineR和factoextra包括的降维方法可以根据数据变量的特点(定量/数值、定性/分类、混合)对这些方法进行区分。
主成分分析(PCA)
例:洛杉矶街区数据
来自美国人口普查局2000年的数据,包括了洛杉矶地区110个街区,15个变量。使用rvest包,从网络获取这个数据集。它的15个变量如下表所示:
表:洛杉矶街区数据集
我们只使用其中的六个变量(Income,Schools,Diversity,Age,Homes,Vets)进行主成分分析,其余的变量中取出与种族有关的四个变量(Asian,Black,Latino,White)作为探索性数据分析的补充变量。使用FactoMineR包的函数PCA()实现主成分分析:
library(FactoMineR)
library(factoextra)
library(rvest)
<边栏推荐
- 数据可视化设计指南(信息图表篇)
- 通俗易懂讲解梯度下降法!
- Meituan senior technical expert: DDD's practice in the evolution of tourism e-commerce architecture
- Function - (C travel notes)
- 若依集成minio实现分布式文件存储
- The latest translated official pytorch easy introduction tutorial (pytorch version 1.0)
- Summary of window system operation skills
- [jetson][reprint]pycharm installed on Jetson
- How to integrate Google APIs with Google's application system (3) -- call the restful service of Google discovery API
- Reasons for the rise of DDD and its relationship with microservices
猜你喜欢

2018-UperNet ECCV

Why use markdown to write?

若依如何实现添加水印功能

PDF处理还收费?不可能

函数——(C游记)

Knowledge points of common interview questions: distributed lock

汉源高科千兆2光6电导轨式网管型工业级以太网交换机支持X-Ring冗余环网一键环网交换机

Oracle advanced (XIV) explanation of escape characters

Implementation of college logistics repair application system based on SSM

静态资源映射
随机推荐
Oracle advanced (XIV) explanation of escape characters
Drunken driving alarm system based on stm32
[semantic segmentation] 2021-pvt iccv
Achieve the effect of a menu tab
[semantic segmentation] 2021-pvt2 cvmj
Implementation of college logistics repair application system based on SSM
[FPGA tutorial case 19] factorial operation through multiplier
MySQL 8 of relational database -- deepening and comprehensive learning from the inside out
[FPGA tutorial case 18] develop low delay open root calculation through ROM
What is "enterprise level" low code? Five abilities that must be possessed to become enterprise level low code
Atomic operation of day4 practice in 2022cuda summer training camp
Research on the realization of linear gradient circular progress bar
[reading notes] the way of enterprise IT architecture transformation Alibaba's China Taiwan strategic thinking and Architecture Practice
This is the right way for developers to open artifacts
Efficient 7 habit learning notes
TMS320C6000_ Tms320f28035 Chinese data manual
[log frame]
ADB shell WM command and usage:
Are you familiar with the redis cluster principle of high paid programmers & interview questions series 122? How to ensure the high availability of redis (Part 2): cluster mechanism and principle, clu
跟着李老师学线代——矩阵(持续更新)