How to perform the Method of Correlated Vectors : NLSY79 SPSS Syntax

The three last rows of the syntax (after WEIGHT OFF.) depend on how you have coded the variables of race gaps with g and non g factor scores partialed out, the correlations being displayed in the series of partial correlation at the end of the syntax below. But those three last rows will not work until the variables and these numbers have been created and entered in SPSS data editor. Still, these rows will run automatically with my SPSS file, available at request.

R00001.00 CASEID IDENTIFICATION CODE 1979
R00001.49 HHID HOUSEHOLD IDENTIFICATION NUMBER 1979
R00001.50 IDC1 IDENTIFICATION CODE OF 1ST OTHER INTERVIEWED YOUTH IN R’S HOUSEHOLD 1979
R00001.51 RELC1 RELATIONSHIP TO YOUTH OF 1ST OTHER INTERVIEWED YOUTH IN R’S HOUSEHOLD 1979
R00001.52 IDC2 IDENTIFICATION CODE OF 2ND OTHER INTERVIEWED YOUTH IN R’S HOUSEHOLD 1979
R00001.53 RELC2 RELATIONSHIP TO YOUTH OF 2ND OTHER INTERVIEWED YOUTH IN R’S HOUSEHOLD 1979
R00005.00 Q1-3_A~Y DATE OF BIRTH – YEAR 1979
R00006.00 FAM-1B AGE OF R 1979
R02161.00 SAMPWEIGHT SAMPLING WEIGHT 1979
R02161.01 C_SAMPWEIGHT CROSS SECTIONAL SAMPLING WEIGHT 1979
R02147.00 SAMPLE_RACE R’S RACIAL/ETHNIC COHORT FROM SCREENER 1979
R02148.00 SAMPLE_SEX SEX OF R 1979
R06150.00 ASVAB-3 PROFILES, ASVAB VOCATIONAL TEST – SECTION 1-GENERAL SCIENCE 1981
R06151.00 ASVAB-4 PROFILES, ASVAB VOCATIONAL TEST – SECTION 2-ARITHMETIC REASONING 1981
R06152.00 ASVAB-5 PROFILES, ASVAB VOCATIONAL TEST – SECTION 3-WORD KNOWLEDGE 1981
R06153.00 ASVAB-6 PROFILES, ASVAB VOCATIONAL TEST – SECTION 4-PARAGRAPH COMP 1981
R06154.00 ASVAB-7 PROFILES, ASVAB VOCATIONAL TEST – SECTION 5-NUMERICAL OPERATIONS 1981
R06155.00 ASVAB-8 PROFILES, ASVAB VOCATIONAL TEST – SECTION 6-CODING SPEED 1981
R06156.00 ASVAB-9 PROFILES, ASVAB VOCATIONAL TEST – SECTION 7-AUTO AND SHOP INFO 1981
R06157.00 ASVAB-10 PROFILES, ASVAB VOCATIONAL TEST – SECTION 8-MATHEMATICS KNOWLEDGE 1981
R06158.00 ASVAB-11 PROFILES, ASVAB VOCATIONAL TEST – SECTION 9-MECHANICAL COMP 1981
R06159.00 ASVAB-12 PROFILES, ASVAB VOCATIONAL TEST – SECTION 10-ELECTRONICS INFO 1981
R06183.01 AFQT-3 PROFILES, ARMED FORCES QUALIFICATION TEST (AFQT) PERCENTILE SCORE – REVISED 2006 1981

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.

WEIGHT BY R0216100.

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

RECODE RES_1 (lowest thru highest=COPY) INTO GENERAL_SCIENCE.
EXECUTE.

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

RECODE RES_2 (lowest thru highest=COPY) INTO ARITHMETIC_REASONING.
EXECUTE.

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

RECODE RES_3 (lowest thru highest=COPY) INTO WORD_KNOWLEDGE.
EXECUTE.

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

RECODE RES_4 (lowest thru highest=COPY) INTO PARAGRAPH_COMPREHENSION.
EXECUTE.

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

RECODE RES_5 (lowest thru highest=COPY) INTO NUMERICAL_OPERATIONS.
EXECUTE.

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

RECODE RES_6 (lowest thru highest=COPY) INTO CODING_SPEED.
EXECUTE.

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

RECODE RES_7 (lowest thru highest=COPY) INTO AUTO_AND_SHOP_INFO.
EXECUTE.

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

RECODE RES_8 (lowest thru highest=COPY) INTO MATHEMATICS_KNOWLEDGE.
EXECUTE.

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

RECODE RES_9 (lowest thru highest=COPY) INTO MECHANICAL_COMPREHENSION.
EXECUTE.

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

RECODE RES_10 (lowest thru highest=COPY) INTO ELECTRONICS_INFORMATION.
EXECUTE.

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 GENERAL_SCIENCE ARITHMETIC_REASONING WORD_KNOWLEDGE PARAGRAPH_COMPREHENSION NUMERICAL_OPERATIONS CODING_SPEED AUTO_AND_SHOP_INFO MATHEMATICS_KNOWLEDGE MECHANICAL_COMPREHENSION ELECTRONICS_INFORMATION
/MISSING LISTWISE
/ANALYSIS GENERAL_SCIENCE ARITHMETIC_REASONING WORD_KNOWLEDGE PARAGRAPH_COMPREHENSION NUMERICAL_OPERATIONS CODING_SPEED AUTO_AND_SHOP_INFO MATHEMATICS_KNOWLEDGE MECHANICAL_COMPREHENSION ELECTRONICS_INFORMATION
/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 GENERAL_SCIENCE ARITHMETIC_REASONING WORD_KNOWLEDGE PARAGRAPH_COMPREHENSION NUMERICAL_OPERATIONS CODING_SPEED AUTO_AND_SHOP_INFO MATHEMATICS_KNOWLEDGE MECHANICAL_COMPREHENSION ELECTRONICS_INFORMATION
/MISSING LISTWISE
/ANALYSIS GENERAL_SCIENCE ARITHMETIC_REASONING WORD_KNOWLEDGE PARAGRAPH_COMPREHENSION NUMERICAL_OPERATIONS CODING_SPEED AUTO_AND_SHOP_INFO MATHEMATICS_KNOWLEDGE MECHANICAL_COMPREHENSION ELECTRONICS_INFORMATION
/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 GENERAL_SCIENCE ARITHMETIC_REASONING WORD_KNOWLEDGE PARAGRAPH_COMPREHENSION NUMERICAL_OPERATIONS CODING_SPEED AUTO_AND_SHOP_INFO MATHEMATICS_KNOWLEDGE MECHANICAL_COMPREHENSION ELECTRONICS_INFORMATION
/MISSING LISTWISE
/ANALYSIS GENERAL_SCIENCE ARITHMETIC_REASONING WORD_KNOWLEDGE PARAGRAPH_COMPREHENSION NUMERICAL_OPERATIONS CODING_SPEED AUTO_AND_SHOP_INFO MATHEMATICS_KNOWLEDGE MECHANICAL_COMPREHENSION ELECTRONICS_INFORMATION
/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 GENERAL_SCIENCE ARITHMETIC_REASONING WORD_KNOWLEDGE PARAGRAPH_COMPREHENSION NUMERICAL_OPERATIONS CODING_SPEED AUTO_AND_SHOP_INFO MATHEMATICS_KNOWLEDGE MECHANICAL_COMPREHENSION ELECTRONICS_INFORMATION
/MISSING LISTWISE
/ANALYSIS GENERAL_SCIENCE ARITHMETIC_REASONING WORD_KNOWLEDGE PARAGRAPH_COMPREHENSION NUMERICAL_OPERATIONS CODING_SPEED AUTO_AND_SHOP_INFO MATHEMATICS_KNOWLEDGE MECHANICAL_COMPREHENSION ELECTRONICS_INFORMATION
/PRINT UNIVARIATE INITIAL CORRELATION SIG DET KMO EXTRACTION
/PLOT EIGEN
/CRITERIA MINEIGEN(1) ITERATE(25)
/EXTRACTION PAF
/ROTATION NOROTATE
/SAVE REG(ALL)
/METHOD=CORRELATION.

MEANS TABLES=GENERAL_SCIENCE ARITHMETIC_REASONING WORD_KNOWLEDGE PARAGRAPH_COMPREHENSION NUMERICAL_OPERATIONS CODING_SPEED AUTO_AND_SHOP_INFO MATHEMATICS_KNOWLEDGE MECHANICAL_COMPREHENSION ELECTRONICS_INFORMATION BY BHW
/CELLS MEAN COUNT STDDEV.

MEANS TABLES=RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 BY BHW
/CELLS MEAN COUNT STDDEV.

COMPUTE ScaledWeights1 = (R0216100*10071/2147483648).
EXECUTE.

WEIGHT BY ScaledWeights1.

PARTIAL CORR
/VARIABLES=BW RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 BY FAC1_4
/SIGNIFICANCE=TWOTAIL
/STATISTICS=DESCRIPTIVES CORR
/MISSING=LISTWISE.

PARTIAL CORR
/VARIABLES=BW RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 BY FAC2_4
/SIGNIFICANCE=TWOTAIL
/STATISTICS=DESCRIPTIVES CORR
/MISSING=LISTWISE.

COMPUTE ScaledWeights2 = (R0216100*8886/2147483648).
EXECUTE.

WEIGHT BY ScaledWeights2.

PARTIAL CORR
/VARIABLES=HW RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 BY FAC1_4
/SIGNIFICANCE=TWOTAIL
/STATISTICS=DESCRIPTIVES CORR
/MISSING=LISTWISE.

PARTIAL CORR
/VARIABLES=HW RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 BY FAC2_4
/SIGNIFICANCE=TWOTAIL
/STATISTICS=DESCRIPTIVES CORR
/MISSING=LISTWISE.

COMPUTE ScaledWeights3 = (R0216100*4871/637414553).
EXECUTE.

WEIGHT BY ScaledWeights3.

PARTIAL CORR
/VARIABLES=BH RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 BY FAC1_4
/SIGNIFICANCE=TWOTAIL
/STATISTICS=DESCRIPTIVES CORR
/MISSING=LISTWISE.

PARTIAL CORR
/VARIABLES=BH RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 RES_7 RES_8 RES_9 RES_10 BY FAC2_4
/SIGNIFICANCE=TWOTAIL
/STATISTICS=DESCRIPTIVES CORR
/MISSING=LISTWISE.

WEIGHT OFF.

GRAPH
/BAR(GROUPED)=MEAN(BW_gaps) MEAN(BW_g_partialed_out) MEAN(BW_non_g_partialed_out) BY ASVAB_subtest
/MISSING=LISTWISE.

GRAPH
/BAR(GROUPED)=MEAN(HW_gaps) MEAN(HW_g_partialed_out) MEAN(HW_non_g_partialed_out) BY ASVAB_subtest
/MISSING=LISTWISE.

GRAPH
/BAR(GROUPED)=MEAN(BH_gaps) MEAN(BH_g_partialed_out) MEAN(BH_non_g_partialed_out) BY ASVAB_subtest
/MISSING=LISTWISE.

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