Psychometric bias regarding race differences in the NLSY-ASVAB : How much ? (NLSY79 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.

DO IF(NOT MISSING(R0214800)) AND (NOT MISSING(R0000600)).
IF R0214700=2 BW=1.
IF R0214700=3 BW=2.

IF R0214700=1 HW=1.
IF R0214700=3 HW=2.

IF R0214700=2 BH=1.
IF R0214700=1 BH=2.

IF R0214700=2 BHW=1.
IF R0214700=1 BHW=2.
IF R0214700=3 BHW=3.
END IF.
EXECUTE.

DESCRIPTIVES VARIABLES=R0615000 R0615100 R0615200 R0615300 R0615400 R0615500 R0615600 R0615700 R0615800 R0615900
/SAVE
/STATISTICS=MEAN STDDEV MIN MAX.

RECODE ZR0615000 (-3 thru 3=COPY) INTO zGS.
RECODE ZR0615100 (-3 thru 3=COPY) INTO zAR.
RECODE ZR0615200 (-3 thru 3=COPY) INTO zWK.
RECODE ZR0615300 (-3 thru 3=COPY) INTO zPC.
RECODE ZR0615400 (-3 thru 3=COPY) INTO zNO.
RECODE ZR0615500 (-3 thru 3=COPY) INTO zCS.
RECODE ZR0615600 (-3 thru 3=COPY) INTO zASI.
RECODE ZR0615700 (-3 thru 3=COPY) INTO zMK.
RECODE ZR0615800 (-3 thru 3=COPY) INTO zMC.
RECODE ZR0615900 (-3 thru 3=COPY) INTO zEI.
EXECUTE.

SELECT IF(NOT MISSING(BHW)) AND (NOT MISSING(R0214800)) AND (NOT MISSING(R0000600)) 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(zASI))
AND (NOT MISSING(zMK)) AND (NOT MISSING(zMC)) AND (NOT MISSING(zEI)).
EXECUTE.

FACTOR
/VARIABLES zGS zAR zWK zPC zNO zCS zASI zMK zMC zEI
/MISSING LISTWISE
/ANALYSIS zGS zAR zWK zPC zNO zCS zASI zMK zMC zEI
/PRINT UNIVARIATE INITIAL CORRELATION SIG DET KMO EXTRACTION
/PLOT EIGEN
/CRITERIA FACTORS(2) ITERATE(25)
/EXTRACTION PAF
/ROTATION NOROTATE
/SAVE REG(ALL)
/METHOD=CORRELATION.

RECODE FAC1_1 (lowest thru highest=COPY) INTO Gfactor.
EXECUTE.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

RECODE ZRE_1 (lowest thru highest=Copy) INTO GS_sexage.
RECODE ZRE_2 (lowest thru highest=Copy) INTO AR_sexage.
RECODE ZRE_3 (lowest thru highest=Copy) INTO WK_sexage.
RECODE ZRE_4 (lowest thru highest=Copy) INTO PC_sexage.
RECODE ZRE_5 (lowest thru highest=Copy) INTO NO_sexage.
RECODE ZRE_6 (lowest thru highest=Copy) INTO CS_sexage.
RECODE ZRE_7 (lowest thru highest=Copy) INTO ASI_sexage.
RECODE ZRE_8 (lowest thru highest=Copy) INTO MK_sexage.
RECODE ZRE_9 (lowest thru highest=Copy) INTO MC_sexage.
RECODE ZRE_10 (lowest thru highest=Copy) INTO EI_sexage.
EXECUTE.

RECODE ZRE_11 (lowest thru highest=Copy) INTO GS_age.
RECODE ZRE_12 (lowest thru highest=Copy) INTO AR_age.
RECODE ZRE_13 (lowest thru highest=Copy) INTO WK_age.
RECODE ZRE_14 (lowest thru highest=Copy) INTO PC_age.
RECODE ZRE_15 (lowest thru highest=Copy) INTO NO_age.
RECODE ZRE_16 (lowest thru highest=Copy) INTO CS_age.
RECODE ZRE_17 (lowest thru highest=Copy) INTO ASI_age.
RECODE ZRE_18 (lowest thru highest=Copy) INTO MK_age.
RECODE ZRE_19 (lowest thru highest=Copy) INTO MC_age.
RECODE ZRE_20 (lowest thru highest=Copy) INTO EI_age.
EXECUTE.

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 ‘NLSY79 corr matrix ASVAB for blacks (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_sexage AR_sexage WK_sexage PC_sexage NO_sexage CS_sexage ASI_sexage MK_sexage MC_sexage EI_sexage
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY79 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 ‘NLSY79 corr matrix ASVAB for hispanics (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_sexage AR_sexage WK_sexage PC_sexage NO_sexage CS_sexage ASI_sexage MK_sexage MC_sexage EI_sexage
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY79 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 ‘NLSY79 corr matrix ASVAB for whites (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_sexage AR_sexage WK_sexage PC_sexage NO_sexage CS_sexage ASI_sexage MK_sexage MC_sexage EI_sexage
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY79 cov matrix ASVAB for whites (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=1 and R0214800=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 ‘NLSY79 corr matrix ASVAB for black males (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_age AR_age WK_age PC_age NO_age CS_age ASI_age MK_age MC_age EI_age
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY79 cov matrix ASVAB for black males (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=1 and R0214800=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 ‘NLSY79 corr matrix ASVAB for black females (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_age AR_age WK_age PC_age NO_age CS_age ASI_age MK_age MC_age EI_age
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY79 cov matrix ASVAB for black females (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=2 and R0214800=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 ‘NLSY79 corr matrix ASVAB for hispanic males (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_age AR_age WK_age PC_age NO_age CS_age ASI_age MK_age MC_age EI_age
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY79 cov matrix ASVAB for hispanic males (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=2 and R0214800=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 ‘NLSY79 corr matrix ASVAB for hispanic females (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_age AR_age WK_age PC_age NO_age CS_age ASI_age MK_age MC_age EI_age
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY79 cov matrix ASVAB for hispanic females (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=3 and R0214800=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 ‘NLSY79 corr matrix ASVAB for white males (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_age AR_age WK_age PC_age NO_age CS_age ASI_age MK_age MC_age EI_age
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY79 cov matrix ASVAB for white males (*.sav)’.
LIST.

DATASET ACTIVATE DataSet1.

USE ALL.
COMPUTE filter_$=(BHW=3 and R0214800=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 ‘NLSY79 corr matrix ASVAB for white females (*.sav)’.
LIST.
CORRELATIONS
/VARIABLES=GS_age AR_age WK_age PC_age NO_age CS_age ASI_age MK_age MC_age EI_age
/PRINT=TWOTAIL NOSIG
/MISSING=LISTWISE
/MATRIX = OUT(*).
MCONVERT.
TITLE ‘NLSY79 cov matrix ASVAB for white females (*.sav)’.
LIST.

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