Login  Register

Re: writing syntax to do a factor analysis using spearman correlations

Posted by Albert-Jan Roskam on Jul 12, 2013; 8:23pm
URL: http://spssx-discussion.165.s1.nabble.com/writing-syntax-to-do-a-factor-analysis-using-spearman-correlations-tp5721146p5721147.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'.

shoudn't the last line be:

ADD FILES /FILE = * /FILE='C:\Users\2013\corr2_.sav'.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD