writing syntax to do a factor analysis using spearman correlations

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

writing syntax to do a factor analysis using spearman correlations

Carolyn H. Gould

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]

 

Reply | Threaded
Open this post in threaded view
|

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

Albert-Jan Roskam
>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
Reply | Threaded
Open this post in threaded view
|

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

Villegas, Emilio (Bisnode)
In reply to this post by Carolyn H. Gould

Jag är på semester och är åter på kontoret måndag den 12 Aug 2013.

Vid brådskande ärenden kontakta mig på 0709 471115.

 

/Emilio