Black-White gap over time and by SES (SPSS syntax) in the GSS and other gaps by SES from other survey data

The GSS data for SPSS format is available at this address. Just click on “GSS 1972-2012 Cross-Sectional Cumulative Data (Release 2, June 2013)”. The Add Health here. Download everything, the weight variables too. The NLSF is available here. This needs a free account. It will also give the access to the New Immigrant Survey (NIS). The NLSY79, NLSY97 and CNLSY79 can be found here. Again, it needs a free account. The HSLS 2009 can be accessed here. The ECLS-K here.

Concerning the GSS, the original wordsum variable counts the missing answers as wrong answers. One would like to compare the original variable with a newly created variable which exclude all cases having at least one missing answers in any items.

Concerning the Add Health, the histogram of residuals show there are some outliers. They can be removed and the regression re-done, which would change the results of the regression. Note however that a large sample attenuates the impact of such outliers.

Concerning the NLSF, which is a pretty bad organized data set, almost all the variables need to be recoded due to the fact that the original variables do not exclude missing values. More, importantly, the syntax won’t work for gender and race variables if you simply copy-paste it. It is because of quotation marks. Here’s the difference. The first line will end up with error message, the second line is the good one.

SPSS quotation marks

THE GENERAL SOCIAL SURVEY (GSS)

SET MXCELLS=9000.

RECODE race (1=2) (2=1) (ELSE=SYSMIS) INTO BW.

RECODE cohort (1920 thru 1930=1) (1931 thru 1941=2) (1942 thru 1952=3) (1953 thru 1963=4) (1964 thru 1974=5) (1975 thru 1985=6) (ELSE=SYSMIS) INTO Cohort6.
RECODE year (1972 thru 1975=1) (1976 thru 1979=2) (1980 thru 1983=3) (1984 thru 1987=4) (1988 thru 1991=5) (1992 thru 1995=6) (1996 thru 1999=7) (2000 thru 2003=8) (2004 thru 2007=9) (2008 thru 2012=10) INTO Year10.

COMPUTE wtssall_oversamp=wtssall*oversamp.

COMPUTE BW_YEAR_INTERACTION=BW*year.
COMPUTE BW_COHORT_INTERACTION=BW*cohort.
COMPUTE sex_cohort_interaction=sex*cohort.
COMPUTE sex_year_interaction=sex*year.

DO IF NOT (MISSING(worda)) AND NOT (MISSING(wordb)) AND NOT (MISSING(wordc)) AND NOT (MISSING(wordd)) AND NOT (MISSING(worde))
AND NOT (MISSING(wordf)) AND NOT (MISSING(wordg)) AND NOT (MISSING(wordh)) AND NOT (MISSING(wordi)) AND NOT (MISSING(wordj)).
COMPUTE Wordsum_Vocabulary=SUM(worda, wordb, wordc, wordd, worde, wordf, wordg, wordh, wordi, wordj).
END IF.
EXECUTE.

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

FREQUENCIES VARIABLES=sei educ SQRTrealinc wordsum
/FORMAT=NOTABLE
/HISTOGRAM NORMAL
/ORDER=ANALYSIS.

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

RECODE RES_1 (lowest thru highest=COPY) INTO Wordsum_SexAge.

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

RECODE ZRE_1 (lowest thru highest=COPY) INTO zWordsum_SexAge.

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

RECODE ZRE_2 (lowest thru highest=COPY) INTO zWordsum_Vocabulary_SexAge.

COMPUTE BW_SQRTrealinc=BW*SQRTrealinc.
COMPUTE BW_educ=BW*educ.
COMPUTE BW_sei=BW*sei.

FREQUENCIES VARIABLES=educ SQRTrealinc zWordsum_SexAge zWordsum_Vocabulary_SexAge
/FORMAT=NOTABLE
/HISTOGRAM NORMAL
/ORDER=ANALYSIS.

WEIGHT BY wtssall_oversamp.

UNIANOVA wordsum BY BW educ WITH age sex
/METHOD=SSTYPE(3)
/INTERCEPT=INCLUDE
/PLOT=PROFILE(educ*BW)
/EMMEANS=TABLES(BW) WITH(age=MEAN sex=MEAN)
/EMMEANS=TABLES(educ) WITH(age=MEAN sex=MEAN)
/EMMEANS=TABLES(BW*educ) WITH(age=MEAN sex=MEAN)
/PRINT=LOF OPOWER ETASQ HOMOGENEITY DESCRIPTIVE
/PLOT=SPREADLEVEL RESIDUALS
/CRITERIA=ALPHA(.05)
/DESIGN=age sex BW educ BW*educ.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum BY age
/CELLS MEAN COUNT STDDEV.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age
/CELLS MEAN COUNT STDDEV.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

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 wordsum
/METHOD=ENTER sex age BW sei
/METHOD=ENTER BW_sei
/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 wordsum
/METHOD=ENTER sex age BW SQRTrealinc
/METHOD=ENTER BW_SQRTrealinc
/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 wordsum
/METHOD=ENTER sex age BW educ
/METHOD=ENTER BW_educ
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS HISTOGRAM(ZRESID) NORMPROB(ZRESID).

USE ALL.
COMPUTE filter_$=(educ>=0 and educ<=8).
VARIABLE LABELS filter_$ ‘educ>=0 and educ<=8 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(educ>=9 and educ<=13).
VARIABLE LABELS filter_$ ‘educ>=9 and educ<=13 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(educ>=14 and educ<=20).
VARIABLE LABELS filter_$ ‘educ>=14 and educ<=20 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(SQRTrealinc>=0 and SQRTrealinc<=130).
VARIABLE LABELS filter_$ ‘SQRTrealinc>=0 and SQRTrealinc<=130 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(SQRTrealinc>=131 and SQRTrealinc<=200).
VARIABLE LABELS filter_$ ‘SQRTrealinc>=131 and SQRTrealinc<=200 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(SQRTrealinc>=201 and SQRTrealinc<=410).
VARIABLE LABELS filter_$ ‘SQRTrealinc>=201 and SQRTrealinc<=410 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(sei>=0 and sei<=35).
VARIABLE LABELS filter_$ ‘sei>=0 and sei<=35 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(sei>=36 and sei<=60).
VARIABLE LABELS filter_$ ‘sei>=36 and sei<=60 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(sei>=61 and sei<=100).
VARIABLE LABELS filter_$ ‘sei>=61 and sei<=100 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(age>=23 and age<=67 and cohort>=1920 and cohort<=1932).
VARIABLE LABELS filter_$ ‘age>=23 and age<=67 and cohort>=1920 and cohort<=1932 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(age>=23 and age<=67 and cohort>=1933 and cohort<=1945).
VARIABLE LABELS filter_$ ‘age>=23 and age<=67 and cohort>=1933 and cohort<=1945 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(age>=23 and age<=67 and cohort>=1946 and cohort<=1958).
VARIABLE LABELS filter_$ ‘age>=23 and age<=67 and cohort>=1946 and cohort<=1958 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(age>=23 and age<=67 and cohort>=1959 and cohort<=1971).
VARIABLE LABELS filter_$ ‘age>=23 and age<=67 and cohort>=1959 and cohort<=1971 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(age>=23 and age<=67 and cohort>=1972 and cohort<=1984).
VARIABLE LABELS filter_$ ‘age>=23 and age<=67 and cohort>=1972 and cohort<=1984 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

FILTER OFF.
USE ALL.
EXECUTE.

UNIANOVA wordsum BY BW Cohort6 WITH age sex
/METHOD=SSTYPE(3)
/INTERCEPT=INCLUDE
/PLOT=PROFILE(Cohort6*BW)
/EMMEANS=TABLES(BW) WITH(age=MEAN sex=MEAN)
/EMMEANS=TABLES(Cohort6) WITH(age=MEAN sex=MEAN)
/EMMEANS=TABLES(BW*Cohort6) WITH(age=MEAN sex=MEAN)
/PRINT=LOF OPOWER ETASQ HOMOGENEITY DESCRIPTIVE
/PLOT=SPREADLEVEL RESIDUALS
/CRITERIA=ALPHA(.05)
/DESIGN=age sex BW Cohort6 BW*Cohort6.

UNIANOVA wordsum BY BW Year10 WITH age sex
/METHOD=SSTYPE(3)
/INTERCEPT=INCLUDE
/PLOT=PROFILE(Year10*BW)
/EMMEANS=TABLES(BW) WITH(age=MEAN sex=MEAN)
/EMMEANS=TABLES(Year10) WITH(age=MEAN sex=MEAN)
/EMMEANS=TABLES(BW*Year10) WITH(age=MEAN sex=MEAN)
/PRINT=LOF OPOWER ETASQ HOMOGENEITY DESCRIPTIVE
/PLOT=SPREADLEVEL RESIDUALS
/CRITERIA=ALPHA(.05)
/DESIGN=age sex BW Year10 BW*Year10.

USE ALL.
COMPUTE filter_$=(age>=23 and age<=67 and year>=1972 and year<=1980).
VARIABLE LABELS filter_$ ‘age>=23 and age<=67 and year>=1972 and year<=1980 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(age>=23 and age<=67 and year>=1981 and year<=1990).
VARIABLE LABELS filter_$ ‘age>=23 and age<=67 and year>=1981 and year<=1990 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(age>=23 and age<=67 and year>=1991 and year<=2000).
VARIABLE LABELS filter_$ ‘age>=23 and age<=67 and year>=1991 and year<=2000 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

USE ALL.
COMPUTE filter_$=(age>=23 and age<=67 and year>=2001 and year<=2012).
VARIABLE LABELS filter_$ ‘age>=23 and age<=67 and year>=2001 and year<=2012 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

WEIGHT BY wtssall.

USE ALL.
COMPUTE filter_$=(age>=23 and age<=67 and year>=2004 and year<=2012).
VARIABLE LABELS filter_$ ‘age>=23 and age<=67 and year>=2004 and year<=2012 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

WEIGHT BY wtssnr.

USE ALL.
COMPUTE filter_$=(age>=23 and age<=67 and year>=2004 and year<=2012).
VARIABLE LABELS filter_$ ‘age>=23 and age<=67 and year>=2004 and year<=2012 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MEANS TABLES=zWordsum_Vocabulary_SexAge zWordsum_SexAge Wordsum age BY BW
/CELLS MEAN COUNT STDDEV.

FILTER OFF.
USE ALL.
EXECUTE.

WEIGHT BY wtssall_oversamp.

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 wordsum
/METHOD=ENTER sex age BW year
/METHOD=ENTER BW_YEAR_INTERACTION
/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 wordsum
/METHOD=ENTER sex age BW cohort
/METHOD=ENTER BW_COHORT_INTERACTION
/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 wordsum
/METHOD=ENTER race sex age year
/METHOD=ENTER sex_year_interaction
/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 wordsum
/METHOD=ENTER race sex age cohort
/METHOD=ENTER sex_cohort_interaction
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS HISTOGRAM(ZRESID) NORMPROB(ZRESID).

USE ALL.
COMPUTE filter_$=(race=1).
VARIABLE LABELS filter_$ ‘race=1 (FILTER)’.
VALUE LABELS filter_$ 0 ‘Not Selected’ 1 ‘Selected’.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
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 wordsum
/METHOD=ENTER sex age year
/METHOD=ENTER sex_year_interaction
/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 wordsum
/METHOD=ENTER sex age cohort
/METHOD=ENTER sex_cohort_interaction
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS HISTOGRAM(ZRESID) NORMPROB(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.

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 wordsum
/METHOD=ENTER sex age year
/METHOD=ENTER sex_year_interaction
/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 wordsum
/METHOD=ENTER sex age cohort
/METHOD=ENTER sex_cohort_interaction
/PARTIALPLOT ALL
/SCATTERPLOT=(*ZRESID ,*ZPRED)
/RESIDUALS HISTOGRAM(ZRESID) NORMPROB(ZRESID).

WEIGHT OFF.

FILTER OFF.
USE ALL.
EXECUTE.

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