将质心提取的因子矩阵读入SPSS进行旋转,分析 [英] Reading Centroid extracted factor matrix into SPSS for rotation, analysis

查看:116
本文介绍了将质心提取的因子矩阵读入SPSS进行旋转,分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新:4/28 我找到了将我的中心因子提取导入SPSS并将其旋转的正确语法.由于SPSS在通过MATRIX IN(...)读取矩阵时可以使用哪些子命令的限制,我仍然需要找到一种方法来获取FSCORE并保存新变量(/SAVE REG(ALL)),但这是另一篇文章.

UPDATE: 4/28 I found the proper syntax to import my centriod factor extraction into SPSS and rotate it. Because of limitations in SPSS on what subcommands can be used when reading a matrix in via MATRIX IN (...), I still need to find a way to get the FSCORE and save the new variable (/SAVE REG(ALL) ), but that is another post.

以下是我认为正确的语法以及正确的矩阵设置.如果我错了,请纠正我!

What I believe to be the correct syntax is below, along with the proper setup of the matrix. Please correct me if I'm wrong!

原始帖子: 在过去的4天里,我一直在为此苦苦挣扎.我得出的结论是,我不够聪明,无法自己解决这个问题,我想做正确的事.

ORIGINAL POST: I've been struggling with this for the last 4 days. I have concluded that I'm not smart enough to sort this out on my own, and I want to do this right.

所需结果: 我想指示SPSS读取从另一个程序计算出的提取因子矩阵,然后继续进行因子分析.换句话说,不是让SPSS使用PCA(或任何适合数据的方法)提取因子,而是需要使用质心提取方法(据我所知,在SPSS中不可用).

Desired Outcome: I want to instruct SPSS to read a matrix of extracted factors calculated from another program and proceed with factor analysis. Put another way, instead of having SPSS extract the factors using PCA (or whatever method fits the data), I needed to use the centroid extraction method (unavailable, to my knowledge, in SPSS).

我想使用此质心因子提取数据,并使用每个变量的因子得分在数据集A中创建一个新变量.

I would like to use this centroid factor extraction data and create a new variable into Dataset A with the factor scores for each variable.

所以...执行以下分析,而是使用我自己提取的因素:

So...performing the following analysis but instead using my own extracted factors:

 FACTOR 
   /VARIABLES VAR00001 VAR00002 VAR00003 VAR00004 VAR00005 VAR00006 VAR00007 VAR00008 VAR00009 VAR00010 VAR00011 VAR00012 VAR00013 VAR00014 VAR00015 VAR00016 VAR00017 VAR00018 VAR00019 VAR00020 VAR00021 VAR00022 VAR00023 VAR00024 VAR00025 VAR00026 VAR00027 VAR00028 VAR00029 VAR00030 VAR00031 VAR00032 VAR00033 VAR00034 VAR00035 VAR00036 VAR00037 VAR00038 VAR00039 VAR00040 VAR00041 VAR00042 VAR00043 VAR00044 VAR00045 VAR00046 VAR00047 VAR00048 VAR00049 VAR00050 VAR00051 VAR00052 VAR00053 VAR00054 VAR00055 VAR00056 VAR00057 VAR00058 VAR00059 VAR00060 VAR00061 VAR00062 VAR00063 VAR00064 VAR00065 VAR00066 VAR00067 VAR00068 VAR00069 VAR00070 VAR00071 VAR00072 VAR00073 VAR00074 
   /MISSING LISTWISE 
   /ANALYSIS VAR00001 VAR00002 VAR00003 VAR00004 VAR00005 VAR00006 VAR00007 VAR00008 VAR00009 VAR00010 VAR00011 VAR00012 VAR00013 VAR00014 VAR00015 VAR00016 VAR00017 VAR00018 VAR00019 VAR00020 VAR00021 VAR00022 VAR00023 VAR00024 VAR00025 VAR00026 VAR00027 VAR00028 VAR00029 VAR00030 VAR00031 VAR00032 VAR00033 VAR00034 VAR00035 VAR00036 VAR00037 VAR00038 VAR00039 VAR00040 VAR00041 VAR00042 VAR00043 VAR00044 VAR00045 VAR00046 VAR00047 VAR00048 VAR00049 VAR00050 VAR00051 VAR00052 VAR00053 VAR00054 VAR00055 VAR00056 VAR00057 VAR00058 VAR00059 VAR00060 VAR00061 VAR00062 VAR00063 VAR00064 VAR00065 VAR00066 VAR00067 VAR00068 VAR00069 VAR00070 VAR00071 VAR00072 VAR00073 VAR00074 
 /PRINT INITIAL CORRELATION SIG DET INV REPR AIC EXTRACTION ROTATION FSCORE 
 /FORMAT BLANK(.544) 
 /CRITERIA FACTORS(6) ITERATE(60) 
 /EXTRACTION PC 
 /CRITERIA ITERATE(100) DELTA(0) 
 /ROTATION OBLIMIN 
 /SAVE REG(ALL) 
 /METHOD=CORRELATION.

资产:数据集A(由36个可衡量的名义变量组成的74个调查回复);质心矩阵(每个受访者六个提取因子)

Assets: Dataset A (consists of 74 survey responses across 36 nominal, commeasurable variables); Centroid matrix (six extracted factors for each respondent)

ID    f1      f2       f3      f4      f5       f6
1    .79778 .02151  -.07729 -.04738 .09509  -.06625
2    .65029 .02050   .29293  .04123 .24523  -.13920
3    .75398 .14790   .03987 -.09101 .16572   .24866
   etc..

解决方案

首先,请确保正确设置了质心提取矩阵.这意味着:

First, make sure your centroid extraction matrix is set up properly. This means:

ROWTYPE_作为系统变量,FACTOR作为每个行/案例的字符串值.

ROWTYPE_ as system variable with FACTOR as a string value for each row/case.

FACTOR_作为系统变量,带有数字值,该数字值标记每行/每个案例.

FACTOR_ as system variable with numeric values that labels each row/case.

此矩阵中的每个因子都是一行/案例. (我换了位,因为那是它的提取方式……叹了口气……)

Each factor in this matrix is one row/case. (I had mine transposed since that was how it was extracted...sigh...)

FACTOR MATRIX IN (FAC='path to centroid extraction matrix.sav')
/MISSING LISTWISE
 /PRINT ROTATION 
 /FORMAT BLANK(.544) 
 /CRITERIA ITERATE(80) DELTA(0) 
  /ROTATION OBLIMIN 
  /METHOD=CORRELATION.

作为我的语法不足的纪念碑的尝试失败 我确定我会以某种方式弄乱(请注意:是的!),但这是我尝试过的语法:

Failed Attempts as Monuments to My Syntax Inadequacies I'm sure that I'm messing this up somehow (note: yep!), but here's the syntax I've tried:

方法1:打开数据集A并在语法编辑器中将其设置为活动数据集,指示SPSS读取质心因子并继续进行分析.

Approach 1: With Dataset A open and set as the active dataset in the syntax editor, instruct SPSS to read the centroid factors and proceed with the analysis.

FACTOR 
/MATRIX=IN (FAC= 'C:/YYYY/cent.sav')
/PRINT ALL
/ROTATION OBLIMIN 
/METHOD=CORRELATION.

方法2:将质心矩阵手动读取到SPSS中,然后将数据集1设置为活动,继续进行因子分析.

Approach 2: Manually reading the centroid matrix into SPSS then proceeding with the factor analysis with Dataset 1 set as active.

MATRIX DATA VARIABLES=varlist
/N=74
/CONTENTS= MAT.
BEGIN DATA
.79778   .02151   -.07729   -.04738   .09509   -.06625
.65029   .02050   .29293   .04123   .24523   -.13920
.75398   .14790   .03987   -.09101  .16572  .24866
etc.
END DATA.
EXECUTE.
FACTOR
/PRINT ROTATION
/ROTATION OBLIMIN
/SAVE REG(ALL) 
/METHOD=CORRELATION. 

请原谅我语法的弱代码.我正在尝试学习规则,并且一直在阅读SPSS手册(联机和脱机),试图使它正确.

Please forgive the weak code of my syntax. I'm trying to learn the rules and have been reading the SPSS manual (online and off) trying (and failing) to get it right.

感谢您能提供的任何帮助,对于这个问题的时长,我们深表歉意.

Thank you for any assistance you can offer, and sorry for the length of the question.

推荐答案

旋转解决方案

首先,请确保正确设置了质心提取矩阵.这意味着:

First, make sure your centroid extraction matrix is set up properly. This means:

ROWTYPE_是系统变量,而FACTOR是每个行/案例的字符串值.

ROWTYPE_ as system variable with FACTOR as a string value for each row/case.

FACTOR_作为系统变量,带有数字值,用于标记每行/每个案例.

FACTOR_ as system variable with numeric values that labels each row/case.

此矩阵中的每个因子都是一行/案例. (我换了位,因为那是它的提取方式……叹了口气……)

Each factor in this matrix is one row/case. (I had mine transposed since that was how it was extracted...sigh...)

FACTOR MATRIX IN (FAC='path to centroid extraction matrix.sav')
/MISSING LISTWISE
/PRINT ROTATION 
/FORMAT BLANK(.544) 
/CRITERIA ITERATE(80) DELTA(0) 
/ROTATION OBLIMIN 
/METHOD=CORRELATION.

这篇关于将质心提取的因子矩阵读入SPSS进行旋转,分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆