Login  Register

writing syntax to do a factor analysis using spearman correlations

Posted by Carolyn H. Gould on Jul 12, 2013; 8:14pm
URL: http://spssx-discussion.165.s1.nabble.com/writing-syntax-to-do-a-factor-analysis-using-spearman-correlations-tp5721146.html

Hi all . . .

I am running spss v. 20 and am trying, unsuccessfully, to use spearman correlations in my factor analysis. Here is the spss syntax I am using:

CORRELATIONS
/VARIABLES=RElectives RFacIntraction RHardSkills RApplication RLeadership REthics RQualInstr RIntegrtn Rworkload RCore Radvising RSoftSkills RTutoring ROCR RAlumIntrctn RCourseSch RLeadCoach RIntvwPrep RMktProg Rrespnsvns RCompSppt RCarCoun RFAid Rresume RStudConcern RCommCoach RMellonSpSeries Rstorage RClassTech RPosnerHall ROffEquip RQuietStudy RMeetRoom RSocSpace RSocAct RCampusEv RClubProg RPghEvents RGBA
/MATRIX=OUT('C:\Users\2013\corr1_.sav')
/MISSING=PAIRWISE .
NONPAR CORR
/VARIABLES=RElectives RFacIntraction RHardSkills RApplication RLeadership REthics RQualInstr RIntegrtn Rworkload RCore Radvising RSoftSkills RCapstone RTutoring RAlumIntrctn RCourseSch RLeadCoach RIntvwPrep RMktProg Rrespnsvns RCompSppt RCarCoun RFAid Rresume RStudConcern RCommCoach RMellonSpSeries Rstorage RClassTech RPosnerHall ROffEquip RQuietStudy RMeetRoom RSocSpace RSocAct RCampusEv RClubProg RPghEvents RGBA
/PRINT=SPEARMAN
/MATRIX=OUT('C:\Users\2013\corr2_.sav')
/MISSING=PAIRWISE .
GET FILE='C:\Users\chaddock.ANDREW\Desktop\Student Experience\2013\corr2_.sav'.
SELECT IF(rowtype_ ~= 'N').
RECODE rowtype_ ('RHO'='CORR') .
SAVE OUTFILE='C:\Users\2013\corr2_.sav'.
GET FILE='C:\Users\2013\corr1_.sav'.
SELECT IF($casenum<4).
ADD FILES FILE='C:\Users\2013\corr2_.sav'.
SAVE OUTFILE='C:\Users\2013\c_matrix.sav'.
FACTOR
/MATRIX=IN (COR 'C:\Users\2013\c_matrix.sav')
/ANALYSIS RElectives RFacIntraction RHardSkills RApplication RLeadership REthics RQualInstr RIntegrtn Rworkload RCore Radvising RSoftSkills RTutoring RAlumIntrctn RCourseSch RLeadCoach RIntvwPrep RMktProg Rrespnsvns RCompSppt RCarCoun RFAid Rresume RStudConcern RCommCoach RMellonSpSeries Rstorage RClassTech RPosnerHall ROffEquip RQuietStudy RMeetRoom RSocSpace RSocAct RCampusEv RClubProg RPghEvents RGBA
/FORMAT SORT BLANK(0.4)
/PLOT EIGEN
/CRITERIA MINEIGEN(1) ITERATE(25)
/EXTRACTION PC
/CRITERIA ITERATE(25)
/ROTATION VARIMAX
/METHOD=CORRELATION .

I keep getting the following error message: 26 Factor Analysis A row of number of cases (N's) is expected but not found in the input matrix file."

Can anyone help?

Thanks,

Carolyn

 

Carolyn H. Gould, Ph.D.

Associate Director, Research

Tepper School of Business

Carnegie Mellon University

 

(412)268-5036

[hidden email]