当前位置:网站首页>SAS factor analysis (proc factor process, factor rotation and regression method for factor score function)
SAS factor analysis (proc factor process, factor rotation and regression method for factor score function)
2022-06-11 01:26:00 【I have a clear idea】
The data given in the following table are obtained from the population survey conducted in the 12 standard metropolitan areas of Los Angeles . It has five socio-economic variables , They are the total population (pop) 、 The educational level of the residents or the number of years of secondary education (school )、 Total number of employees (employ )、 Number of people in various service industries (services ) And moderate prices (house ), Try factor analysis .
Five social factors survey data
n | pop | school | employ | services | house |
1 | 5700 | 12.8 | 2500 | 270 | 25000 |
2 | 1000 | 10.9 | 600 | 10 | 10000 |
3 | 3400 | 8.8 | 1000 | 10 | 9000 |
4 | 3800 | 13.6 | 1700 | 140 | 25000 |
5 | 4000 | 12.8 | 1600 | 140 | 25000 |
6 | 8200 | 8.3 | 2600 | 60 | 12000 |
7 | 1200 | 11.4 | 400 | 10 | 16000 |
8 | 9100 | 11.5 | 3300 | 60 | 14000 |
9 | 9900 | 12.5 | 3400 | 180 | 18000 |
10 | 9600 | 13.7 | 3600 | 390 | 25000 |
11 | 9600 | 9.6 | 3300 | 80 | 12000 |
12 | 9400 | 11.4 | 4000 | 100 | 13000 |
Experimental code :
proc import out=temp1
datafile="D:\1 Common desktop files \IT\SAS experiment \ experiment 8\1.xls"
DBMS=EXCEL2000 replace;
run;
proc factor data=temp1 method=prin priors=one simple corr proportion=0.80 rotate=varimax score n=3 out=test;
var pop school employ services house;
run;
proc print data=test;
var factor1 factor2 factor3;
run;
proc plot data=test;
plot factor2*factor1 $ n=′*′/
href=0 vref=0;
run;Code result interpretation :
method by principal The principal component method is used for factor analysis
priors=one Specify the method for calculating the variance estimation of a priori common factor , Both are program default parameters
corr Find correlation matrix and partial correlation matrix ,simple Output simple conditional quantity
score The coefficient of factor score model is estimated by regression method
proportion To select the number of common factors m, send m To satisfy λ1+…+λm / p ≥ 0.80 The smallest positive integer of
The common factor solution obtained , The initial factor load matrix does not satisfy “ Simple structure criterion ”, That is, the typical representative variables of each common factor are not very prominent , Therefore, it is easy to make the meaning of common factors ambiguous , It is not conducive to the explanation of factors . Therefore, it is necessary to perform rotation transformation on the factor load matrix , So that the square of the load of each factor is in the column 0 and 1 Bipolar transformation , Achieve the purpose of simplifying its structure . This method of transforming factor load matrix is called factor rotation , The methods of rotation transformation mainly include orthogonal rotation , Skew rotation, etc .
Pop=0.58096F1+0.80642F2
School=0.76704F1-0.54476F2
Employ=0.67243F1+0.72605F2
Services=0.93239F1-0.10431F2
House=0.79116F1-0.55818F2
The variances that can be explained by common factors are 2.8733136 and 1.7966601, The sum of the final common factor variances is 4.669974=2.8733136+1.7966601=0.98782629+0.88510555+0.97930583+0.88023562+0.93750041.
Common factor F1 stay 4 The factor loads on all variables are positive , Where it is related to the variable Services,house,school Is particularly relevant , Common factor F2 In variables Employ,Pop There is a large positive load on the 0.80642,0.72605. Combined with professional knowledge, I think F1 Economic development factor ,F2 Population factor . If it is necessary to conduct an analysis , It is necessary to obtain the factor score function after factor rotation for analysis . The author does not conduct the analysis after rotation , If necessary, the reader can conduct experiments and analysis with the above methods , The operation of factor rotation is only carried out after factor analysis because the factor load is average and it is difficult to explain , The purpose is to polarize the load , It is convenient for professional explanation .
边栏推荐
- Project_ Visual analysis of epidemic data based on Web Crawler
- After a/b machine is connected normally, B machine suddenly restarts. Ask a what is the TCP status at this time? How to eliminate this state in the server program?
- SAS聚类分析(系统聚类cluster,动态聚类fastclus,变量聚类varclus)
- 深圳中国专利奖政策支持介绍,补贴100万
- Viewpager and dot of bottom wireless loop
- IRS application release 16: H5 application design guide
- 项目_基于网络爬虫的疫情数据可视化分析
- Simple select sort and heap sort
- SAS主成分分析(求相关阵,特征值,单位特征向量,主成分表达式,贡献率和累计贡献率以及进行数据解释)
- 北京延庆区高新技术企业培育支持标准,补贴10万
猜你喜欢

NVIDIA Jetson's PWM Fan custom control

Brief description of custom annotations

項目_基於網絡爬蟲的疫情數據可視化分析

Middleware_ Redis_ 06_ Redis transactions

快递鸟系统对接

云呐|庆远固定资产管理及条码盘点系统

Centos7 actual deployment mysql8 (binary mode)

Basic introduction of graph and depth first traversal and breadth first traversal
![[introduction to ROS] - 03 ROS workspace and function pack](/img/74/ff9bf9fd4912a02d016f560ac3aebb.png)
[introduction to ROS] - 03 ROS workspace and function pack
WSL automatically updates the IP hosts file
随机推荐
ion_ dma_ buf_ begin_ cpu_ access
Bubble sort and quick sort
Yunna PDA wireless fixed assets inventory management system
复利的保险理财产品怎么样?可以买吗?
SSH远程登陆配置sshd_config文件详解
Sealem Finance打造Web3去中心化金融平台基础设施
IRS application release 16: H5 application design guide
Norme de soutien à la culture des entreprises de haute technologie du district de Mentougou à Beijing, subvention de 100 000 RMB
Introduction to the application process of Beijing China Patent Award, with a subsidy of 1million yuan
深圳市南山区专精特新企业申报条件,补贴10-50万
SAS期末复习知识点总结(应用多元统计实验笔记)
One way linked list to realize student information management
After a/b machine is connected normally, B machine suddenly restarts. Ask a what is the TCP status at this time? How to eliminate this state in the server program?
Introduction to the policy support of Shenzhen China Patent Award, with a subsidy of 1million yuan
Embedded learning materials and project summary
Introduction to the policy support of Beijing China Patent Award, with a subsidy of 1million yuan
ava.lang.NoClassDefFoundError: org/apache/velocity/context/Context解决办法
Network foundation (1) -- understanding the network
Introduction to support standards for specialized, special and new manufacturing enterprises in Chaoyang District, Beijing, with a subsidy of 1million yuan
Direct insert sort and shell sort