Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use R language to realize Principal component Analysis

2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how to use R language to achieve principal component analysis. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

It is suggested that we directly use R language to achieve principal component analysis, and send a case first today.

Using R language to bring USJudgeRatings judge comprehensive quality score data, each judge has 12 dimensions to score. We think that using 12 indicators to evaluate a judge is too complicated. Now please reduce the dimensions of the 12 dimension scoring variables and create several principal components for comprehensive evaluation.

The data are as follows:

Load package:

Library (psych)

Draw a map of gravel with parallel analysis:

Fa.parallel (USJudgeRatings, fa = "pc", n.iter = 100, show.legend = TRUE, main = 'Scree plot with parallel analysis')

This picture tells us that it seems to extract a principal component. The experience and method of judging the number of principal components is not only this one. I think it is a bit paranoid to extract only one principal component. We can consider mentioning one more principal component and extracting a total of two principal components for investigation.

Next, start the principal component analysis, do not rotate for the time being:

USJ.pc

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report