Skin Color, Verbal IQ, and Test of the Colorism Hypothesis in the GSS (syntax SPSS)

See related post here.

RECODE race (1=1) (2=0) (ELSE=SYSMIS) INTO BWRACE.
VARIABLE LABELS BWRACE ‘BW’.
EXECUTE.

RECODE ratetone (1 thru 5=1) (6 thru 10=2) INTO ratetone2C.
VARIABLE LABELS ratetone2C ‘skin color dichotomized’.
EXECUTE.

COMPUTE SQRTrealinc=SQRT(realinc+1).
VARIABLE LABELS SQRTrealinc ‘square root of R income in constant dollars’.
EXECUTE.

COMPUTE LNrealinc=ln(realinc+1).
VARIABLE LABELS LNrealinc ‘natural logarithm of R income in constant dollars’.
EXECUTE.

COMPUTE SQRTdegree=SQRT(degree).
VARIABLE LABELS SQRTdegree ‘square root of degree’.
EXECUTE.

WEIGHT BY wtssnr.

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

MEANS TABLES=wordsum BY BWRACE
/CELLS MEAN COUNT STDDEV.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT wordsum
/METHOD=ENTER BWRACE age
/METHOD=ENTER sex
/METHOD=ENTER SQRTdegree SQRTrealinc
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT wordsum
/METHOD=ENTER BWRACE age
/METHOD=ENTER sex
/METHOD=ENTER degree LNrealinc
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

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

MEANS TABLES=wordsum BY ratetone2C
/CELLS MEAN COUNT STDDEV.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT SQRTrealinc
/METHOD=ENTER ratetone age
/METHOD=ENTER sex
/METHOD=ENTER wordsum
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT LNrealinc
/METHOD=ENTER ratetone age
/METHOD=ENTER sex
/METHOD=ENTER wordsum
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT SQRTdegree
/METHOD=ENTER ratetone age
/METHOD=ENTER sex
/METHOD=ENTER wordsum
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT wordsum
/METHOD=ENTER ratetone age
/METHOD=ENTER sex
/METHOD=ENTER SQRTdegree SQRTrealinc
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT wordsum
/METHOD=ENTER ratetone age
/METHOD=ENTER sex
/METHOD=ENTER degree LNrealinc
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

WEIGHT BY wtssall.

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

MEANS TABLES=wordsum BY BWRACE
/CELLS MEAN COUNT STDDEV.

MEANS TABLES=wordsum BY color
/CELLS MEAN COUNT STDDEV.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT SQRTrealinc
/METHOD=ENTER color age
/METHOD=ENTER sex
/METHOD=ENTER wordsum
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT LNrealinc
/METHOD=ENTER color age
/METHOD=ENTER sex
/METHOD=ENTER wordsum
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT SQRTdegree
/METHOD=ENTER color age
/METHOD=ENTER sex
/METHOD=ENTER wordsum
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT wordsum
/METHOD=ENTER color age
/METHOD=ENTER sex
/METHOD=ENTER SQRTdegree SQRTrealinc
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT wordsum
/METHOD=ENTER BWRACE age
/METHOD=ENTER sex
/METHOD=ENTER SQRTdegree SQRTrealinc
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT wordsum
/METHOD=ENTER color age
/METHOD=ENTER sex
/METHOD=ENTER degree LNrealinc
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT wordsum
/METHOD=ENTER BWRACE age
/METHOD=ENTER sex
/METHOD=ENTER degree LNrealinc
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS DURBIN HISTOGRAM(ZRESID) NORMPROB(ZRESID)
/CASEWISE PLOT(ZRESID) OUTLIERS(3)
/SAVE MAHAL COOK LEVER ZRESID.

FILTER OFF.
USE ALL.
EXECUTE.

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