Date: Thu, 17 Feb 2005 10:35:56 -0600
Reply-To: "Peck, Jon" <peck@spss.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Peck, Jon" <peck@spss.com>
Subject: Re: oms and factor analysis
Content-Type: text/plain; charset="iso-8859-1"
The OMS syntax below will work fine if it just surrounds the FACTOR command, but it would be a little more robust if the selector also specifies the command.
/IF COMMANDS = ["Factor Analysis"]
SUBTYPES = ["Descriptive Statistics"]
Some table types, including Descriptive Statistics, can be produced by more than one procedure, so if the job stream included a DESCRIPTIVES command while OMS is active, OMS would be picking up more than was intended.
Regards,
Jon Peck
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Marta García-Granero
Sent: Thursday, February 17, 2005 9:55 AM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Re: [SPSSX-L] oms and factor analysis
Hi Ann,
Something like this should work:
OMS SELECT TABLES
/IF SUBTYPES=['Descriptive Statistics']
/DESTINATION FORMAT=SAV OUTFILE='c:\temp\descriptives.sav'.
OMS SELECT TABLES
/IF SUBTYPES=['Factor Score Coefficient Matrix']
/DESTINATION FORMAT=SAV OUTFILE='c:\temp\Factorscore.sav'.
FACTOR
/VARIABLES m3a1a m3b1a m3d1a m3e1a m3g1a m3h1a m3k1a m3n1a m151aa m151ab
m141aa m141ba m141ca m141da age_bm1a age_bm1b
age_bm1c age_bm1d age_bm1e age_bm1f bord1aa bord1ba bord1ca bord1da
/MISSING LISTWISE /ANALYSIS m3a1a m3b1a m3d1a m3e1a
m3g1a m3h1a m3k1a m3n1a m151aa m151ab m141aa m141ba m141ca m141da age_bm1a
age_bm1b age_bm1c age_bm1d age_bm1e age_bm1f
bord1aa bord1ba bord1ca bord1da
/PRINT UNIVARIATE INITIAL EXTRACTION FSCORE
/CRITERIA FACTORS(1) ITERATE(25)
/EXTRACTION PC
/ROTATION NOROTATE
/SAVE REG(ALL)
/METHOD=CORRELATION .
OMSEND.
The sav files will need a bit of editing (this can be automated
too)
AEF> I have the following factor analysis code
AEF> FACTOR
AEF> /VARIABLES m3a1a m3b1a m3d1a m3e1a m3g1a m3h1a m3k1a m3n1a m151aa m151ab
AEF> m141aa m141ba m141ca m141da age_bm1a age_bm1b
AEF> age_bm1c age_bm1d age_bm1e age_bm1f bord1aa bord1ba bord1ca bord1da
AEF> /MISSING LISTWISE /ANALYSIS m3a1a m3b1a m3d1a m3e1a
AEF> m3g1a m3h1a m3k1a m3n1a m151aa m151ab m141aa m141ba m141ca m141da age_bm1a
AEF> age_bm1b age_bm1c age_bm1d age_bm1e age_bm1f
AEF> bord1aa bord1ba bord1ca bord1da
AEF> /PRINT UNIVARIATE INITIAL EXTRACTION FSCORE
AEF> /CRITERIA FACTORS(1) ITERATE(25)
AEF> /EXTRACTION PC
AEF> /ROTATION NOROTATE
AEF> /SAVE REG(ALL)
AEF> /METHOD=CORRELATION .
AEF> this will generate a descriptives piece of output and also the component
AEF> score coefficient matrix and also some additional tables
AEF> what I am trying to do is to export these two tables using oms to a sav
AEF> file so that I can do some calculations and then possibly (at a later date)
AEF> merge the results back into the original data file
Regards
Marta