Psychometric bias regarding race differences in the NLSY-ASVAB : How much ? (NLSY97 syntax)

At the end of this page, I display a series of syntax for ASVAB subtest matrices (blacks, hispanics, whites, and then by gender within races). These commands will produce a new data file with means, standard deviations, variances, covariances, N, for each variables. This can be used as input for AMOS to perform MGCFA. Normally, each command run should produce one separate file, but in this situation you must run them one at a time, otherwise SPSS will replace the previously created file by the next one if you don’t save it and close it.

SET MXCELLS=9000.

IF R0538700=2 BW=1.
IF R0538700=1 and R1482600=4 BW=2.

IF R0538700=2 BH=1.
IF R1482600=2 BH=2.

IF R1482600=2 HW=1.
IF R0538700=1 and R1482600=4 HW=2.

IF R0538700=2 BHW=1.
IF R1482600=2 BHW=2.
IF R0538700=1 and R1482600=4 BHW=3.

IF R1302500=1 or R1302400=1 PARENTEDUC=1.
IF R1302500=2 or R1302400=2 PARENTEDUC=2.
IF R1302500=3 or R1302400=3 PARENTEDUC=3.
IF R1302500=4 or R1302400=4 PARENTEDUC=4.
IF R1302500=5 or R1302400=5 PARENTEDUC=5.
IF R1302500=6 or R1302400=6 PARENTEDUC=6.
IF R1302500=7 or R1302400=7 PARENTEDUC=7.
IF R1302500=8 or R1302400=8 PARENTEDUC=8.
IF R1302500=9 or R1302400=9 PARENTEDUC=9.
IF R1302500=10 or R1302400=10 PARENTEDUC=10.
IF R1302500=11 or R1302400=11 PARENTEDUC=11.
IF R1302500=12 or R1302400=12 PARENTEDUC=12.
IF R1302500=13 or R1302400=13 PARENTEDUC=13.
IF R1302500=14 or R1302400=14 PARENTEDUC=14.
IF R1302500=15 or R1302400=15 PARENTEDUC=15.
IF R1302500=16 or R1302400=16 PARENTEDUC=16.
IF R1302500=17 or R1302400=17 PARENTEDUC=17.
IF R1302500=18 or R1302400=18 PARENTEDUC=18.
IF R1302500=19 or R1302400=19 PARENTEDUC=19.
IF R1302500=20 or R1302400=20 PARENTEDUC=20.

RECODE Z9083800 (1 thru 20=COPY) (ELSE=SYSMIS) INTO RGRADE.
RECODE R1302500 (1 thru 20=COPY) (ELSE=SYSMIS) INTO MOM_EDUC.
RECODE R1302400 (1 thru 20=COPY) (ELSE=SYSMIS) INTO DAD_EDUC.
COMPUTE PARENT_EDUC=MEAN(MOM_EDUC,DAD_EDUC).

RECODE PARENTEDUC (1 thru 11=1) (12=2) (13 thru 20=3) (ELSE=SYSMIS) INTO PARENTEDUC3.

COMPUTE PARENTAL_INCOME = SUM(R0609800, R0610500, R0611100, R0612700).
COMPUTE SQRT_PARENTAL_INCOME=SQRT(PARENTAL_INCOME+1).
VARIABLE LABELS SQRT_PARENTAL_INCOME ‘Square Root of Parental Income’.

RECODE R9871900 (1 thru highest=Copy) INTO TRANS_CRD_GPA_OVERALL.
RECODE R9872000 (1 thru highest=Copy) INTO TRANS_CRD_GPA_ENG.
RECODE R9872100 (1 thru highest=Copy) INTO TRANS_CRD_GPA_FGN_LANG.
RECODE R9872200 (1 thru highest=Copy) INTO TRANS_CRD_GPA_MATH.
RECODE R9872300 (1 thru highest=Copy) INTO TRANS_CRD_GPA_SOC_SCI.
RECODE R9872400 (1 thru highest=Copy) INTO TRANS_CRD_GPA_LP_SCI.

DESCRIPTIVES VARIABLES=TRANS_CRD_GPA_OVERALL TRANS_CRD_GPA_ENG TRANS_CRD_GPA_FGN_LANG TRANS_CRD_GPA_MATH TRANS_CRD_GPA_SOC_SCI TRANS_CRD_GPA_LP_SCI
/SAVE
/STATISTICS=MEAN STDDEV MIN MAX.

RECODE ZTRANS_CRD_GPA_OVERALL (-3 thru 3=Copy) INTO zGPA_OVERALL.
RECODE ZTRANS_CRD_GPA_ENG (-3 thru 3=Copy) INTO zGPA_ENG.
RECODE ZTRANS_CRD_GPA_FGN_LANG (-3 thru 3=Copy) INTO zGPA_FGN_LANG.
RECODE ZTRANS_CRD_GPA_MATH (-3 thru 3=Copy) INTO zGPA_MATH.
RECODE ZTRANS_CRD_GPA_SOC_SCI (-3 thru 3=Copy) INTO zGPA_SOC_SCI.
RECODE ZTRANS_CRD_GPA_LP_SCI (-3 thru 3=Copy) INTO zGPA_LP_SCI.

RECODE R9793200 (1 thru highest=Copy) INTO PSAT_Math1999.
RECODE R9793300 (1 thru highest=Copy) INTO PSAT_Verbal1999.
RECODE R9793400 (1 thru 40=Copy) INTO ACT_Comp1999.
RECODE R9793500 (5 thru 40=Copy) INTO ACT_Eng1999.
RECODE R9793600 (5 thru 40=Copy) INTO ACT_Math1999.
RECODE R9793700 (5 thru 40=Copy) INTO ACT_Read1999.
RECODE R9793800 (200 thru highest=Copy) INTO SAT_Verbal1999.
RECODE R9793900 (200 thru highest=Copy) INTO SAT_Math1999.

COMPUTE PIAT1997revised=SQRT(R1318200).

DESCRIPTIVES VARIABLES=PSAT_Math1999 PSAT_Verbal1999 ACT_Comp1999 ACT_Eng1999 ACT_Math1999 ACT_Read1999 SAT_Verbal1999 SAT_Math1999 PIAT1997revised
/SAVE
/STATISTICS=MEAN STDDEV MIN MAX.

RECODE R9705200 (0 thru highest=Copy) INTO GSPOSrecode.
RECODE R9705300 (0 thru highest=Copy) INTO ARPOSrecode.
RECODE R9705400 (0 thru highest=Copy) INTO WKPOSrecode.
RECODE R9705500 (0 thru highest=Copy) INTO PCPOSrecode.
RECODE R9705600 (0 thru highest=Copy) INTO NOPOSrecode.
RECODE R9705700 (0 thru highest=Copy) INTO CSPOSrecode.
RECODE R9705800 (0 thru highest=Copy) INTO AIPOSrecode.
RECODE R9705900 (0 thru highest=Copy) INTO SIPOSrecode.
RECODE R9706000 (0 thru highest=Copy) INTO MKPOSrecode.
RECODE R9706100 (0 thru highest=Copy) INTO MCPOSrecode.
RECODE R9706200 (0 thru highest=Copy) INTO EIPOSrecode.
RECODE R9706300 (0 thru highest=Copy) INTO AOPOSrecode.

RECODE R9706400 (0 thru highest=Copy) INTO GSNEGrecode.
RECODE R9706500 (0 thru highest=Copy) INTO ARNEGrecode.
RECODE R9706600 (0 thru highest=Copy) INTO WKNEGrecode.
RECODE R9706700 (0 thru highest=Copy) INTO PCNEGrecode.
RECODE R9706800 (0 thru highest=Copy) INTO NONEGrecode.
RECODE R9706900 (0 thru highest=Copy) INTO CSNEGrecode.
RECODE R9707000 (0 thru highest=Copy) INTO AINEGrecode.
RECODE R9707100 (0 thru highest=Copy) INTO SINEGrecode.
RECODE R9707200 (0 thru highest=Copy) INTO MKNEGrecode.
RECODE R9707300 (0 thru highest=Copy) INTO MCNEGrecode.
RECODE R9707400 (0 thru highest=Copy) INTO EINEGrecode.
RECODE R9707500 (0 thru highest=Copy) INTO AONEGrecode.

COMPUTE RECODEGSNEG=GSNEGrecode*-1.
COMPUTE RECODEARNEG=ARNEGrecode*-1.
COMPUTE RECODEWKNEG=WKNEGrecode*-1.
COMPUTE RECODEPCNEG=PCNEGrecode*-1.
COMPUTE RECODENONEG=NONEGrecode*-1.
COMPUTE RECODECSNEG=CSNEGrecode*-1.
COMPUTE RECODEAINEG=AINEGrecode*-1.
COMPUTE RECODESINEG=SINEGrecode*-1.
COMPUTE RECODEMKNEG=MKNEGrecode*-1.
COMPUTE RECODEMCNEG=MCNEGrecode*-1.
COMPUTE RECODEEINEG=EINEGrecode*-1.
COMPUTE RECODEAONEG=AONEGrecode*-1.

COMPUTE CombinedGS = SUM(GSPOSrecode, RECODEGSNEG).
COMPUTE CombinedAR = SUM(ARPOSrecode, RECODEARNEG).
COMPUTE CombinedWK = SUM(WKPOSrecode, RECODEWKNEG).
COMPUTE CombinedPC = SUM(PCPOSrecode, RECODEPCNEG).
COMPUTE CombinedNO = SUM(NOPOSrecode, RECODENONEG).
COMPUTE CombinedCS = SUM(CSPOSrecode, RECODECSNEG).
COMPUTE CombinedAI = SUM(AIPOSrecode, RECODEAINEG).
COMPUTE CombinedSI = SUM(SIPOSrecode, RECODESINEG).
COMPUTE CombinedMK = SUM(MKPOSrecode, RECODEMKNEG).
COMPUTE CombinedMC = SUM(MCPOSrecode, RECODEMCNEG).
COMPUTE CombinedEI = SUM(EIPOSrecode, RECODEEINEG).
COMPUTE CombinedAO = SUM(AOPOSrecode, RECODEAONEG).

DO IF NOT (MISSING(R0536401)) AND NOT (MISSING(R0536402)).
COMPUTE BIRTHDATE=R0536402+(R0536401/100*(100/12)).
COMPUTE AGEat1997=1997-BIRTHDATE.
END IF.
EXECUTE.

IF R0536300=1 and BHW=1 Blacks_Male1Female2=1.
IF R0536300=2 and BHW=1 Blacks_Male1Female2=2.
IF R0536300=1 and BHW=2 Hispanics_Male1Female2=1.
IF R0536300=2 and BHW=2 Hispanics_Male1Female2=2.
IF R0536300=1 and BHW=3 Whites_Male1Female2=1.
IF R0536300=2 and BHW=3 Whites_Male1Female2=2.

DESCRIPTIVES VARIABLES=CombinedGS CombinedAR CombinedWK CombinedPC CombinedNO CombinedCS CombinedAI CombinedSI CombinedMK CombinedMC CombinedEI CombinedAO
/SAVE
/STATISTICS=MEAN STDDEV MIN MAX.

RECODE zCombinedGS (-3 thru 3=COPY) INTO zGS.
RECODE zCombinedAR (-3 thru 3=COPY) INTO zAR.
RECODE zCombinedWK (-3 thru 3=COPY) INTO zWK.
RECODE zCombinedPC (-3 thru 3=COPY) INTO zPC.
RECODE zCombinedNO (-3 thru 3=COPY) INTO zNO.
RECODE zCombinedCS (-3 thru 3=COPY) INTO zCS.
RECODE zCombinedAI (-3 thru 3=COPY) INTO zAI.
RECODE zCombinedSI (-3 thru 3=COPY) INTO zSI.
RECODE zCombinedMK (-3 thru 3=COPY) INTO zMK.
RECODE zCombinedMC (-3 thru 3=COPY) INTO zMC.
RECODE zCombinedEI (-3 thru 3=COPY) INTO zEI.
RECODE zCombinedAO (-3 thru 3=COPY) INTO zAO.

SELECT IF(NOT MISSING(BHW)) AND (NOT MISSING(R0536300)) AND (NOT MISSING(R0536402)) AND (NOT MISSING(zGS)) AND (NOT MISSING(zAR))
AND (NOT MISSING(zWK)) AND (NOT MISSING(zPC)) AND (NOT MISSING(zNO)) AND (NOT MISSING(zCS)) AND (NOT MISSING(zAI))
AND (NOT MISSING(zSI)) AND (NOT MISSING(zMK)) AND (NOT MISSING(zMC)) AND (NOT MISSING(zEI)) AND (NOT MISSING(zAO)).
EXECUTE.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedGS
/METHOD=ENTER R0536300 AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedAR
/METHOD=ENTER R0536300 AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedWK
/METHOD=ENTER R0536300 AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedPC
/METHOD=ENTER R0536300 AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedNO
/METHOD=ENTER R0536300 AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedCS
/METHOD=ENTER R0536300 AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedAI
/METHOD=ENTER R0536300 AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedSI
/METHOD=ENTER R0536300 AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedMK
/METHOD=ENTER R0536300 AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedMC
/METHOD=ENTER R0536300 AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedEI
/METHOD=ENTER R0536300 AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedAO
/METHOD=ENTER R0536300 AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedGS
/METHOD=ENTER AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedAR
/METHOD=ENTER AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedWK
/METHOD=ENTER AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedPC
/METHOD=ENTER AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedNO
/METHOD=ENTER AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedCS
/METHOD=ENTER AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedAI
/METHOD=ENTER AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedSI
/METHOD=ENTER AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedMK
/METHOD=ENTER AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedMC
/METHOD=ENTER AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedEI
/METHOD=ENTER AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT CombinedAO
/METHOD=ENTER AGEat1997
/SAVE RESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT zGPA_OVERALL
/METHOD=ENTER R0536300 AGEat1997
/SAVE ZRESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT zGPA_ENG
/METHOD=ENTER R0536300 AGEat1997
/SAVE ZRESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT zGPA_FGN_LANG
/METHOD=ENTER R0536300 AGEat1997
/SAVE ZRESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT zGPA_MATH
/METHOD=ENTER R0536300 AGEat1997
/SAVE ZRESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT zGPA_SOC_SCI
/METHOD=ENTER R0536300 AGEat1997
/SAVE ZRESID.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT zGPA_LP_SCI
/METHOD=ENTER R0536300 AGEat1997
/SAVE ZRESID.

RECODE RES_1 (lowest thru highest=COPY) INTO GS_sexage.
RECODE RES_2 (lowest thru highest=COPY) INTO AR_sexage.
RECODE RES_3 (lowest thru highest=COPY) INTO WK_sexage.
RECODE RES_4 (lowest thru highest=COPY) INTO PC_sexage.
RECODE RES_5 (lowest thru highest=COPY) INTO NO_sexage.
RECODE RES_6 (lowest thru highest=COPY) INTO CS_sexage.
RECODE RES_7 (lowest thru highest=COPY) INTO AI_sexage.
RECODE RES_8 (lowest thru highest=COPY) INTO SI_sexage.
RECODE RES_9 (lowest thru highest=COPY) INTO MK_sexage.
RECODE RES_10 (lowest thru highest=COPY) INTO MC_sexage.
RECODE RES_11 (lowest thru highest=COPY) INTO EI_sexage.
RECODE RES_12 (lowest thru highest=COPY) INTO AO_sexage.

RECODE RES_13 (lowest thru highest=COPY) INTO GS_age.
RECODE RES_14 (lowest thru highest=COPY) INTO AR_age.
RECODE RES_15 (lowest thru highest=COPY) INTO WK_age.
RECODE RES_16 (lowest thru highest=COPY) INTO PC_age.
RECODE RES_17 (lowest thru highest=COPY) INTO NO_age.
RECODE RES_18 (lowest thru highest=COPY) INTO CS_age.
RECODE RES_19 (lowest thru highest=COPY) INTO AI_age.
RECODE RES_20 (lowest thru highest=COPY) INTO SI_age.
RECODE RES_21 (lowest thru highest=COPY) INTO MK_age.
RECODE RES_22 (lowest thru highest=COPY) INTO MC_age.
RECODE RES_23 (lowest thru highest=COPY) INTO EI_age.
RECODE RES_24 (lowest thru highest=COPY) INTO AO_age.

RECODE ZRE_25 (lowest thru highest=COPY) INTO GPA_OVERALL.
RECODE ZRE_26 (lowest thru highest=COPY) INTO GPA_ENG.
RECODE ZRE_27 (lowest thru highest=COPY) INTO GPA_FGN_LANG.
RECODE ZRE_28 (lowest thru highest=COPY) INTO GPA_MATH.
RECODE ZRE_29 (lowest thru highest=COPY) INTO GPA_SOC_SCI.
RECODE ZRE_30 (lowest thru highest=COPY) INTO GPA_LP_SCI.

SORT CASES BY BHW.
SPLIT FILE SEPARATE BY BHW.

EXAMINE VARIABLES=GS_sexage AR_sexage WK_sexage PC_sexage NO_sexage CS_sexage AI_sexage SI_sexage MK_sexage MC_sexage EI_sexage AO_sexage
/PLOT BOXPLOT STEMLEAF HISTOGRAM NPPLOT
/COMPARE GROUPS
/STATISTICS DESCRIPTIVES EXTREME
/CINTERVAL 95
/MISSING PAIRWISE
/NOTOTAL.

EXAMINE VARIABLES=GPA_OVERALL GPA_ENG GPA_FGN_LANG GPA_MATH GPA_SOC_SCI GPA_LP_SCI
/PLOT BOXPLOT STEMLEAF HISTOGRAM NPPLOT
/COMPARE GROUPS
/STATISTICS DESCRIPTIVES EXTREME
/CINTERVAL 95
/MISSING PAIRWISE
/NOTOTAL.

SPLIT FILE OFF.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=1).
VARIABLE LABELS filter_$ ‘BHW=1 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

TITLE ‘NLSY97 corr matrix ASVAB for blacks (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_sexage AR_sexage WK_sexage PC_sexage NO_sexage CS_sexage AI_sexage SI_sexage MK_sexage MC_sexage EI_sexage AO_sexage
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY97 cov matrix ASVAB for blacks (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=2).
VARIABLE LABELS filter_$ ‘BHW=2 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

TITLE ‘NLSY97 corr matrix ASVAB for hispanics (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_sexage AR_sexage WK_sexage PC_sexage NO_sexage CS_sexage AI_sexage SI_sexage MK_sexage MC_sexage EI_sexage AO_sexage
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY97 cov matrix ASVAB for hispanics (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=3).
VARIABLE LABELS filter_$ ‘BHW=3 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

TITLE ‘NLSY97 corr matrix ASVAB for whites (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_sexage AR_sexage WK_sexage PC_sexage NO_sexage CS_sexage AI_sexage SI_sexage MK_sexage MC_sexage EI_sexage AO_sexage
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY97 cov matrix ASVAB for whites (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=1 and R0536300=1).
VARIABLE LABELS filter_$ ‘BHW=1 and R0214800=1 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

TITLE ‘NLSY97 corr matrix ASVAB for black males (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_age AR_age WK_age PC_age NO_age CS_age AI_age SI_age MK_age MC_age EI_age AO_age
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY97 cov matrix ASVAB for black males (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=1 and R0536300=2).
VARIABLE LABELS filter_$ ‘BHW=1 and R0214800=2 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

TITLE ‘NLSY97 corr matrix ASVAB for black females (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_age AR_age WK_age PC_age NO_age CS_age AI_age SI_age MK_age MC_age EI_age AO_age
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY97 cov matrix ASVAB for black females (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=2 and R0536300=1).
VARIABLE LABELS filter_$ ‘BHW=2 and R0214800=1 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

TITLE ‘NLSY97 corr matrix ASVAB for hispanic males (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_age AR_age WK_age PC_age NO_age CS_age AI_age SI_age MK_age MC_age EI_age AO_age
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY97 cov matrix ASVAB for hispanic males (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=2 and R0536300=2).
VARIABLE LABELS filter_$ ‘BHW=2 and R0214800=2 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

TITLE ‘NLSY97 corr matrix ASVAB for hispanic females (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_age AR_age WK_age PC_age NO_age CS_age AI_age SI_age MK_age MC_age EI_age AO_age
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY97 cov matrix ASVAB for hispanic females (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=3 and R0536300=1).
VARIABLE LABELS filter_$ ‘BHW=3 and R0214800=1 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

TITLE ‘NLSY97 corr matrix ASVAB for white males (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_age AR_age WK_age PC_age NO_age CS_age AI_age SI_age MK_age MC_age EI_age AO_age
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY97 cov matrix ASVAB for white males (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=3 and R0536300=2).
VARIABLE LABELS filter_$ ‘BHW=3 and R0214800=2 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

TITLE ‘NLSY97 corr matrix ASVAB for white females (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_age AR_age WK_age PC_age NO_age CS_age AI_age SI_age MK_age MC_age EI_age AO_age
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY97 cov matrix ASVAB for white females (*.sav)’.
LIST.

This entry was posted in Stats, Softwares, Syntax and tagged . Bookmark the permalink.