On the partial mediating role of processing speed between black-white differences, IQ and GPA (NLSY79 syntax)

Related article here.

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.

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

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

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

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

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

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

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

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

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

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

RECODE ZRE_1 (lowest thru highest=COPY) INTO GENERAL_SCIENCE.
RECODE ZRE_2 (lowest thru highest=COPY) INTO ARITHMETIC_REASONING.
RECODE ZRE_3 (lowest thru highest=COPY) INTO WORD_KNOWLEDGE.
RECODE ZRE_4 (lowest thru highest=COPY) INTO PARAGRAPH_COMPREHENSION.
RECODE ZRE_5 (lowest thru highest=COPY) INTO NUMERICAL_OPERATIONS.
RECODE ZRE_6 (lowest thru highest=COPY) INTO CODING_SPEED.
RECODE ZRE_7 (lowest thru highest=COPY) INTO AUTO_AND_SHOP_INFO.
RECODE ZRE_8 (lowest thru highest=COPY) INTO MATHEMATICS_KNOWLEDGE.
RECODE ZRE_9 (lowest thru highest=COPY) INTO MECHANICAL_COMPREHENSION.
RECODE ZRE_10 (lowest thru highest=COPY) INTO ELECTRONICS_INFORMATION.
EXECUTE.

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

COMPUTE Speed=MEAN(ZR0615400, ZR0615500).
EXECUTE.

FACTOR
/VARIABLES ZR0615000 ZR0615100 ZR0615200 ZR0615300 ZR0615600 ZR0615700 ZR0615800 ZR0615900
/MISSING LISTWISE
/ANALYSIS ZR0615000 ZR0615100 ZR0615200 ZR0615300 ZR0615600 ZR0615700 ZR0615800 ZR0615900
/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 Gfactor8.
EXECUTE.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS CI(95) R ANOVA COLLIN TOL CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT Gfactor8
/METHOD=ENTER R0214800 R0000600 BW
/METHOD=ENTER Speed
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS HISTOGRAM(ZRESID) NORMPROB(ZRESID).

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS CI(95) R ANOVA COLLIN TOL CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT Gfactor8
/METHOD=ENTER R0214800 R0000600 BH
/METHOD=ENTER Speed
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS HISTOGRAM(ZRESID) NORMPROB(ZRESID).

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS CI(95) R ANOVA COLLIN TOL CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT Gfactor8
/METHOD=ENTER R0214800 R0000600 HW
/METHOD=ENTER Speed
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS HISTOGRAM(ZRESID) NORMPROB(ZRESID).

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