IQ Regression to the Mean and Genetic Prediction : NLSY 79/97 SPSS Syntax for IQ subgroups

For running the below syntax, my SPSS file is needed (available at request) because of the way I named my variables. Or the other way is to run the syntax given here and there, and to rename the variables as I did.

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

MEANS TABLES=white_g_factor1 white_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=white_g_factor1 white_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=white_g_factor1 white_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=white_g_factor1 white_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=white_g_factor1 white_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=white_g_factor1 white_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=black_g_factor1 black_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=black_g_factor1 black_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=black_g_factor1 black_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=black_g_factor1 black_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=black_g_factor1 black_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=black_g_factor1 black_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=hisp_g_factor1 hisp_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=hisp_g_factor1 hisp_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=hisp_g_factor1 hisp_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=hisp_g_factor1 hisp_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=hisp_g_factor1 hisp_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=hisp_g_factor1 hisp_g_factor2
/CELLS MEAN COUNT STDDEV.

FILTER OFF.
USE ALL.
EXECUTE.

GRAPH
/SCATTERPLOT(OVERLAY)=IQ_g_white_FS1 IQ_g_black_FS1 IQ_g_hispanic_FS1 WITH IQ_g_white_FS2 IQ_g_black_FS2 IQ_g_hispanic_FS2 (PAIR)
/MISSING=VARIABLEWISE.

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

MEANS TABLES=white_non_g_factor1 white_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=white_non_g_factor1 white_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=white_non_g_factor1 white_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=white_non_g_factor1 white_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=white_non_g_factor1 white_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=white_non_g_factor1 white_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=black_non_g_factor1 black_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=black_non_g_factor1 black_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=black_non_g_factor1 black_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=black_non_g_factor1 black_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=black_non_g_factor1 black_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=black_non_g_factor1 black_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=hisp_non_g_factor1 hisp_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=hisp_non_g_factor1 hisp_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=hisp_non_g_factor1 hisp_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=hisp_non_g_factor1 hisp_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=hisp_non_g_factor1 hisp_non_g_factor2
/CELLS MEAN COUNT STDDEV.

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

MEANS TABLES=hisp_non_g_factor1 hisp_non_g_factor2
/CELLS MEAN COUNT STDDEV.

FILTER OFF.
USE ALL.
EXECUTE.

GRAPH
/SCATTERPLOT(OVERLAY)=IQ_non_g_white_FS1 IQ_non_g_black_FS1 IQ_non_g_hispanic_FS1 WITH IQ_non_g_white_FS2 IQ_non_g_black_FS2 IQ_non_g_hispanic_FS2 (PAIR)
/MISSING=VARIABLEWISE.

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