Self-reported white ancestry among US blacks : A Jensen effect (NLSY97 syntax)

See the related post here.

As always, before running the below syntax, the relevant NLSY97 variables (denoted by their reference number) are needed. They can be downloaded here. Also important. Use the Copy Dataset function. The syntax for factor analysis at the very bottom of the lines will replace the existent data window by a new one.

IF R0538700=2 BW=1.
IF R0538700=1 and R1482600=4 BW=2.

IF R1482600=1 BHW=1.
IF R1482600=2 BHW=2.
IF R0538700=1 and R1482600=4 BHW=3.

COMPUTE SKINCOLOR = SUM(T3173000, T4584700, T6217800).

IF R1302500=0 or R1302400=0 PARENTEDUC=0.
IF R1302500=1 or R1302400=1 PARENTEDUC=1.
IF R1302500=2 or R1302400=2 PARENTEDUC=2.
IF R1302500=3 or R1302400=3 PARENTEDUC=3.
IF R1302500=4 or R1302400=4 PARENTEDUC=4.
IF R1302500=5 or R1302400=5 PARENTEDUC=5.
IF R1302500=6 or R1302400=6 PARENTEDUC=6.
IF R1302500=7 or R1302400=7 PARENTEDUC=7.
IF R1302500=8 or R1302400=8 PARENTEDUC=8.
IF R1302500=9 or R1302400=9 PARENTEDUC=9.
IF R1302500=10 or R1302400=10 PARENTEDUC=10.
IF R1302500=11 or R1302400=11 PARENTEDUC=11.
IF R1302500=12 or R1302400=12 PARENTEDUC=12.
IF R1302500=13 or R1302400=13 PARENTEDUC=13.
IF R1302500=14 or R1302400=14 PARENTEDUC=14.
IF R1302500=15 or R1302400=15 PARENTEDUC=15.
IF R1302500=16 or R1302400=16 PARENTEDUC=16.
IF R1302500=17 or R1302400=17 PARENTEDUC=17.
IF R1302500=18 or R1302400=18 PARENTEDUC=18.
IF R1302500=19 or R1302400=19 PARENTEDUC=19.
IF R1302500=20 or R1302400=20 PARENTEDUC=20.

RECODE Z9083800 (1 thru 20=COPY) (ELSE=SYSMIS) INTO RGRADE.
RECODE R1302500 (1 thru 20=COPY) (ELSE=SYSMIS) INTO MOM_EDUC.
RECODE R1302400 (1 thru 20=COPY) (ELSE=SYSMIS) INTO DAD_EDUC.
COMPUTE PARENT_EDUC=MEAN(MOM_EDUC,DAD_EDUC).

RECODE PARENTEDUC (1 thru 11=1) (12=2) (13 thru 20=3) (ELSE=SYSMIS) INTO PARENTEDUC3.

COMPUTE PARENT_WA=0.
IF R0552103=1 or R0552104=1 or R0552105=1 or R0552106=1 or R0552108=1 or R0552109=1 or R0552110=1 or R0552113=1 or R0552116=1 or R0552117=1 or R0552127=1 or R0552128=1 or R0552129=1 or R0552130=1 or R0552131=1 or R0552132=1 or R0552135=1 or R0552136=1 or R0552137=1 or R0552138=1 or R0552139=1 or R0552140=1 or R0552141=1 or R0552142=1 or R0552143=1 or R0552144=1 or R0552145=1 or R0552146=1 or R0552147=1 PARENT_WA=1.

COMPUTE PARENT_AA=0.
IF R0552101=1 or R0552111=1 or R0552150=1 PARENT_AA=1.

COMPUTE AFRICAN_ANCESTRY=0.
IF PARENT_WA=0 or PARENT_AA=1 AFRICAN_ANCESTRY=1.

COMPUTE WHITE_ANCESTRY=0.
IF PARENT_WA=1 or PARENT_AA=0 WHITE_ANCESTRY=1.

COMPUTE SPOUSE_WHITE=0.
IF R0555603=1 or R0555604=1 or R0555605=1 or R0555606=1 or R0555608=1 or R0555609=1 or R0555610=1 or R0555613=1 or R0555616=1 or R0555617=1 or R0555627=1 or R0555628=1 or R0555629=1 or R0555630=1 or R0555631=1 or R0555632=1 or R0555635=1 or R0555636=1 or R0555637=1 or R0555638=1 or R0555639=1 or R0555640=1 or R0555641=1 or R0555642=1 or R0555643=1 or R0555644=1 or R0555645=1 or R0555646=1 or R0555647=1 SPOUSE_WHITE=1.

COMPUTE SPOUSE_BLACK=0.
IF R0555601=1 or R0555650=1 SPOUSE_BLACK=1.

IF PARENT_AA=1 and SPOUSE_BLACK=1 F_ANCESTRY=0.
IF PARENT_WA=1 or SPOUSE_WHITE=1 F_ANCESTRY=1.

WEIGHT BY R1236201.

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

RECODE R9705200 (0 thru 100000000=Copy) INTO GSPOSrecode.
VARIABLE LABELS GSPOSrecode ‘GSPOSrecode’.

RECODE R9705300 (0 thru 100000000=Copy) INTO ARPOSrecode.
VARIABLE LABELS ARPOSrecode ‘ARPOSrecode’.

RECODE R9705400 (0 thru 100000000=Copy) INTO WKPOSrecode.
VARIABLE LABELS WKPOSrecode ‘WKPOSrecode’.

RECODE R9705500 (0 thru 100000000=Copy) INTO PCPOSrecode.
VARIABLE LABELS PCPOSrecode ‘PCPOSrecode’.

RECODE R9705600 (0 thru 100000000=Copy) INTO NOPOSrecode.
VARIABLE LABELS NOPOSrecode ‘NOPOSrecode’.

RECODE R9705700 (0 thru 100000000=Copy) INTO CSPOSrecode.
VARIABLE LABELS CSPOSrecode ‘CSPOSrecode’.

RECODE R9705800 (0 thru 100000000=Copy) INTO AIPOSrecode.
VARIABLE LABELS AIPOSrecode ‘AIPOSrecode’.

RECODE R9705900 (0 thru 100000000=Copy) INTO SIPOSrecode.
VARIABLE LABELS SIPOSrecode ‘SIPOSrecode’.

RECODE R9706000 (0 thru 100000000=Copy) INTO MKPOSrecode.
VARIABLE LABELS MKPOSrecode ‘MKPOSrecode’.

RECODE R9706100 (0 thru 100000000=Copy) INTO MCPOSrecode.
VARIABLE LABELS MCPOSrecode ‘MCPOSrecode’.

RECODE R9706200 (0 thru 100000000=Copy) INTO EIPOSrecode.
VARIABLE LABELS EIPOSrecode ‘EIPOSrecode’.

RECODE R9706300 (0 thru 100000000=Copy) INTO AOPOSrecode.
VARIABLE LABELS AOPOSrecode ‘AOPOSrecode’.

RECODE R9706400 (0 thru 100000000=Copy) INTO GSNEGrecode.
VARIABLE LABELS GSNEGrecode ‘GSNEGrecode’.

RECODE R9706500 (0 thru 100000000=Copy) INTO ARNEGrecode.
VARIABLE LABELS ARNEGrecode ‘ARNEGrecode’.

RECODE R9706600 (0 thru 100000000=Copy) INTO WKNEGrecode.
VARIABLE LABELS WKNEGrecode ‘WKNEGrecode’.

RECODE R9706700 (0 thru 100000000=Copy) INTO PCNEGrecode.
VARIABLE LABELS PCNEGrecode ‘PCNEGrecode’.

RECODE R9706800 (0 thru 100000000=Copy) INTO NONEGrecode.
VARIABLE LABELS NONEGrecode ‘NONEGrecode’.

RECODE R9706900 (0 thru 100000000=Copy) INTO CSNEGrecode.
VARIABLE LABELS CSNEGrecode ‘CSNEGrecode’.

RECODE R9707000 (0 thru 100000000=Copy) INTO AINEGrecode.
VARIABLE LABELS AINEGrecode ‘AINEGrecode’.

RECODE R9707100 (0 thru 100000000=Copy) INTO SINEGrecode.
VARIABLE LABELS SINEGrecode ‘SINEGrecode’.

RECODE R9707200 (0 thru 100000000=Copy) INTO MKNEGrecode.
VARIABLE LABELS MKNEGrecode ‘MKNEGrecode’.

RECODE R9707300 (0 thru 100000000=Copy) INTO MCNEGrecode.
VARIABLE LABELS MCNEGrecode ‘MCNEGrecode’.

RECODE R9707400 (0 thru 100000000=Copy) INTO EINEGrecode.
VARIABLE LABELS EINEGrecode ‘EINEGrecode’.

RECODE R9707500 (0 thru 100000000=Copy) INTO AONEGrecode.
VARIABLE LABELS AONEGrecode ‘AONEGrecode’.

COMPUTE RECODEGSNEG=GSNEGrecode*-1.
VARIABLE LABELS RECODEGSNEG.

COMPUTE RECODEARNEG=ARNEGrecode*-1.
VARIABLE LABELS RECODEARNEG.

COMPUTE RECODEWKNEG=WKNEGrecode*-1.
VARIABLE LABELS RECODEWKNEG.

COMPUTE RECODEPCNEG=PCNEGrecode*-1.
VARIABLE LABELS RECODEPCNEG.

COMPUTE RECODENONEG=NONEGrecode*-1.
VARIABLE LABELS RECODENONEG.

COMPUTE RECODECSNEG=CSNEGrecode*-1.
VARIABLE LABELS RECODECSNEG.

COMPUTE RECODEAINEG=AINEGrecode*-1.
VARIABLE LABELS RECODEAINEG.

COMPUTE RECODESINEG=SINEGrecode*-1.
VARIABLE LABELS RECODESINEG.

COMPUTE RECODEMKNEG=MKNEGrecode*-1.
VARIABLE LABELS RECODEMKNEG.

COMPUTE RECODEMCNEG=MCNEGrecode*-1.
VARIABLE LABELS RECODEMCNEG.

COMPUTE RECODEEINEG=EINEGrecode*-1.
VARIABLE LABELS RECODEEINEG.

COMPUTE RECODEAONEG=AONEGrecode*-1.
VARIABLE LABELS RECODEAONEG.

COMPUTE CombGS = SUM(GSPOSrecode, RECODEGSNEG).
COMPUTE CombAR = SUM(ARPOSrecode, RECODEARNEG).
COMPUTE CombWK = SUM(WKPOSrecode, RECODEWKNEG).
COMPUTE CombPC = SUM(PCPOSrecode, RECODEPCNEG).
COMPUTE CombNO = SUM(NOPOSrecode, RECODENONEG).
COMPUTE CombCS = SUM(CSPOSrecode, RECODECSNEG).
COMPUTE CombAI = SUM(AIPOSrecode, RECODEAINEG).
COMPUTE CombSI = SUM(SIPOSrecode, RECODESINEG).
COMPUTE CombMK = SUM(MKPOSrecode, RECODEMKNEG).
COMPUTE CombMC = SUM(MCPOSrecode, RECODEMCNEG).
COMPUTE CombEI = SUM(EIPOSrecode, RECODEEINEG).
COMPUTE CombAO = SUM(AOPOSrecode, RECODEAONEG).

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

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

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

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

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

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

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

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

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

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

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

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

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.

FACTOR
/VARIABLES RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/MISSING LISTWISE
/ANALYSIS RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT UNIVARIATE INITIAL CORRELATION SIG DET KMO EXTRACTION
/PLOT EIGEN
/CRITERIA MINEIGEN(1) ITERATE(25)
/EXTRACTION PAF
/ROTATION NOROTATE
/SAVE REG(ALL)
/METHOD=CORRELATION.

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.

FACTOR
/VARIABLES RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/MISSING LISTWISE
/ANALYSIS RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT UNIVARIATE INITIAL CORRELATION SIG DET KMO EXTRACTION
/PLOT EIGEN
/CRITERIA MINEIGEN(1) ITERATE(25)
/EXTRACTION PAF
/ROTATION NOROTATE
/SAVE REG(ALL)
/METHOD=CORRELATION.

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.

FACTOR
/VARIABLES RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/MISSING LISTWISE
/ANALYSIS RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT UNIVARIATE INITIAL CORRELATION SIG DET KMO EXTRACTION
/PLOT EIGEN
/CRITERIA MINEIGEN(1) ITERATE(25)
/EXTRACTION PAF
/ROTATION NOROTATE
/SAVE REG(ALL)
/METHOD=CORRELATION.

FILTER OFF.
USE ALL.
EXECUTE.

FACTOR
/VARIABLES RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/MISSING LISTWISE
/ANALYSIS RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT UNIVARIATE INITIAL CORRELATION SIG DET KMO EXTRACTION
/PLOT EIGEN
/CRITERIA MINEIGEN(1) ITERATE(25)
/EXTRACTION PAF
/ROTATION NOROTATE
/SAVE REG(ALL)
/METHOD=CORRELATION.

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.

WEIGHT OFF.

CORRELATIONS
/VARIABLES=F_ANCESTRY RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=TWOTAIL NOSIG
/MISSING=PAIRWISE.

NONPAR CORR
/VARIABLES=F_ANCESTRY RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=SPEARMAN TWOTAIL NOSIG
/MISSING=PAIRWISE.

COMPUTE ScaledWeights1=(R1236201*1806/231315848).
EXECUTE.
WEIGHT by ScaledWeights1.

MEANS TABLES=ZRE_1 FAC1_4 FAC2_4 BY R0536300 BY F_ANCESTRY
/CELLS MEAN COUNT STDDEV.

CORRELATIONS
/VARIABLES=F_ANCESTRY RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=TWOTAIL NOSIG
/MISSING=PAIRWISE.

NONPAR CORR
/VARIABLES=F_ANCESTRY RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=SPEARMAN TWOTAIL NOSIG
/MISSING=PAIRWISE.

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

CORRELATIONS
/VARIABLES=F_ANCESTRY RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=TWOTAIL NOSIG
/MISSING=PAIRWISE.

NONPAR CORR
/VARIABLES=F_ANCESTRY RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=SPEARMAN TWOTAIL NOSIG
/MISSING=PAIRWISE.

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

CORRELATIONS
/VARIABLES=F_ANCESTRY RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=TWOTAIL NOSIG
/MISSING=PAIRWISE.

NONPAR CORR
/VARIABLES=F_ANCESTRY RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=SPEARMAN TWOTAIL NOSIG
/MISSING=PAIRWISE.

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

CORRELATIONS
/VARIABLES=SKINCOLOR RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=TWOTAIL NOSIG
/MISSING=PAIRWISE.

NONPAR CORR
/VARIABLES=SKINCOLOR RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=SPEARMAN TWOTAIL NOSIG
/MISSING=PAIRWISE.

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

CORRELATIONS
/VARIABLES=SKINCOLOR RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=TWOTAIL NOSIG
/MISSING=PAIRWISE.

NONPAR CORR
/VARIABLES=SKINCOLOR RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=SPEARMAN TWOTAIL NOSIG
/MISSING=PAIRWISE.

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.

FREQUENCIES VARIABLES=SKINCOLOR F_ANCESTRY
/FORMAT=NOTABLE
/HISTOGRAM NORMAL
/ORDER=ANALYSIS.

COMPUTE ScaledWeights2=(R1236201*639/82616547).
EXECUTE.
WEIGHT by ScaledWeights2.

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

CORRELATIONS
/VARIABLES=RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=TWOTAIL NOSIG
/STATISTICS DESCRIPTIVES
/MISSING=LISTWISE.

COMPUTE ScaledWeights3=(R1236201*88/12797101).
EXECUTE.
WEIGHT by ScaledWeights3.

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

CORRELATIONS
/VARIABLES=RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=TWOTAIL NOSIG
/STATISTICS DESCRIPTIVES
/MISSING=LISTWISE.

WEIGHT by R1236201.

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

CORRELATIONS
/VARIABLES=RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=TWOTAIL NOSIG
/STATISTICS DESCRIPTIVES
/MISSING=LISTWISE.

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

CORRELATIONS
/VARIABLES=RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=TWOTAIL NOSIG
/STATISTICS DESCRIPTIVES
/MISSING=LISTWISE.

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

CORRELATIONS
/VARIABLES=RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=TWOTAIL NOSIG
/STATISTICS DESCRIPTIVES
/MISSING=LISTWISE.

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

CORRELATIONS
/VARIABLES=RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 RES_11 RES_12
/PRINT=TWOTAIL NOSIG
/STATISTICS DESCRIPTIVES
/MISSING=LISTWISE.

WEIGHT OFF.

MATRIX DATA VARIABLES=GS AR WK PC NO CS AI SI MK MC EI AO
/contents=corr
/N=639.
BEGIN DATA.
1
.630 1
.739 .656 1
.660 .681 .710 1
.449 .603 .516 .592 1
.252 .392 .319 .438 .488 1
.507 .418 .475 .424 .283 .184 1
.492 .410 .468 .361 .258 .163 .386 1
.639 .784 .669 .705 .644 .430 .382 .408 1
.591 .582 .580 .591 .399 .295 .447 .460 .579 1
.670 .589 .646 .640 .454 .288 .461 .419 .598 .592 1
.469 .547 .472 .528 .361 .349 .294 .283 .560 .546 .421 1
END DATA.
EXECUTE.

FACTOR MATRIX=IN(COR=*)
/MISSING LISTWISE
/PRINT UNIVARIATE INITIAL CORRELATION SIG DET KMO EXTRACTION
/PLOT EIGEN
/CRITERIA MINEIGEN(1) ITERATE(25)
/EXTRACTION PC
/ROTATION NOROTATE
/METHOD=CORRELATION.

MATRIX DATA VARIABLES=GS AR WK PC NO CS AI SI MK MC EI AO
/contents=corr
/N=88.
BEGIN DATA.
1
.621 1
.746 .657 1
.667 .649 .743 1
.353 .551 .463 .505 1
.411 .444 .453 .533 .575 1
.507 .370 .444 .400 .240 .327 1
.556 .535 .508 .518 .352 .255 .538 1
.583 .814 .721 .680 .658 .570 .346 .452 1
.613 .682 .640 .631 .415 .370 .522 .634 .626 1
.657 .601 .673 .640 .386 .367 .545 .647 .533 .591 1
.403 .537 .467 .545 .319 .357 .324 .334 .602 .519 .462 1
END DATA.
EXECUTE.

FACTOR MATRIX=IN(COR=*)
/MISSING LISTWISE
/PRINT UNIVARIATE INITIAL CORRELATION SIG DET KMO EXTRACTION
/PLOT EIGEN
/CRITERIA MINEIGEN(1) ITERATE(25)
/EXTRACTION PC
/ROTATION NOROTATE
/METHOD=CORRELATION.

MATRIX DATA VARIABLES=GS AR WK PC NO CS AI SI MK MC EI AO
/contents=corr
/N=309.
BEGIN DATA.
1
.646 1
.743 .690 1
.648 .662 .677 1
.430 .626 .520 .577 1
.192 .362 .246 .392 .411 1
.530 .485 .516 .472 .265 .142 1
.517 .491 .549 .432 .278 .216 .454 1
.632 .797 .667 .678 .627 .369 .424 .473 1
.631 .630 .623 .641 .451 .273 .554 .479 .635 1
.685 .609 .675 .656 .463 .245 .513 .409 .606 .630 1
.421 .510 .391 .475 .321 .270 .321 .292 .531 .503 .411 1
END DATA.
EXECUTE.

FACTOR MATRIX=IN(COR=*)
/MISSING LISTWISE
/PRINT UNIVARIATE INITIAL CORRELATION SIG DET KMO EXTRACTION
/PLOT EIGEN
/CRITERIA MINEIGEN(1) ITERATE(25)
/EXTRACTION PC
/ROTATION NOROTATE
/METHOD=CORRELATION.

MATRIX DATA VARIABLES=GS AR WK PC NO CS AI SI MK MC EI AO
/contents=corr
/N=330.
BEGIN DATA.
1
.615 1
.747 .616 1
.709 .709 .739 1
.491 .576 .498 .580 1
.341 .418 .367 .433 .529 1
.483 .364 .470 .445 .358 .299 1
.479 .361 .454 .412 .341 .233 .268 1
.666 .770 .663 .720 .647 .463 .383 .428 1
.540 .529 .551 .582 .369 .365 .310 .437 .538 1
.652 .567 .623 .654 .459 .357 .407 .458 .602 .539 1
.527 .587 .543 .573 .388 .414 .291 .329 .583 .615 .439 1
END DATA.
EXECUTE.

FACTOR MATRIX=IN(COR=*)
/MISSING LISTWISE
/PRINT UNIVARIATE INITIAL CORRELATION SIG DET KMO EXTRACTION
/PLOT EIGEN
/CRITERIA MINEIGEN(1) ITERATE(25)
/EXTRACTION PC
/ROTATION NOROTATE
/METHOD=CORRELATION.

MATRIX DATA VARIABLES=GS AR WK PC NO CS AI SI MK MC EI AO
/contents=corr
/N=42.
BEGIN DATA.
1
.636 1
.661 .612 1
.633 .700 .726 1
.291 .644 .378 .471 1
.482 .641 .468 .667 .568 1
.536 .368 .538 .495 .203 .451 1
.687 .554 .602 .610 .354 .458 .701 1
.568 .789 .681 .671 .646 .628 .341 .504 1
.567 .584 .588 .715 .331 .546 .548 .711 .568 1
.675 .592 .648 .685 .337 .440 .576 .705 .549 .533 1
.400 .497 .444 .565 .320 .455 .487 .457 .597 .557 .560 1
END DATA.
EXECUTE.

FACTOR MATRIX=IN(COR=*)
/MISSING LISTWISE
/PRINT UNIVARIATE INITIAL CORRELATION SIG DET KMO EXTRACTION
/PLOT EIGEN
/CRITERIA MINEIGEN(1) ITERATE(25)
/EXTRACTION PC
/ROTATION NOROTATE
/METHOD=CORRELATION.

MATRIX DATA VARIABLES=GS AR WK PC NO CS AI SI MK MC EI AO
/contents=corr
/N=46.
BEGIN DATA.
1
.619 1
.837 .691 1
.727 .653 .794 1
.431 .496 .556 .540 1
.377 .366 .518 .323 .603 1
.469 .383 .354 .282 .308 .211 1
.417 .513 .439 .510 .417 .201 .303 1
.610 .853 .757 .700 .673 .545 .377 .467 1
.681 .763 .701 .626 .556 .355 .501 .511 .726 1
.652 .631 .746 .659 .508 .447 .487 .530 .583 .651 1
.418 .606 .500 .514 .308 .209 .138 .280 .605 .552 .411 1
END DATA.
EXECUTE.

FACTOR MATRIX=IN(COR=*)
/MISSING LISTWISE
/PRINT UNIVARIATE INITIAL CORRELATION SIG DET KMO EXTRACTION
/PLOT EIGEN
/CRITERIA MINEIGEN(1) ITERATE(25)
/EXTRACTION PC
/ROTATION NOROTATE
/METHOD=CORRELATION.

FILTER OFF.
USE ALL.
EXECUTE.

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