Structural relationship between g, parental SES, and achievement : Investigation of the g nexus (NLSY97 syntax)

I recommend to run multiple imputation by hand. I have just displayed what the syntax looks like, at the very end of this page. Before running this syntax, make sure that education and grade variables are configured as “scale” and not “nominal” variables.

SPSS configure variables measure from nominal to scale

Otherwise, the imputation won’t work.

If you want to quickly check whether your data is missing monotonously, you can just copy paste the syntax below (but make sure to modify the variable labels according to what you have). SPSS will shoot you a warning message if the missing data is monotone. If we don’t like predictive mean matching method, we could change PMM by LINEAR.

*Impute Missing Data Values.
DATASET DECLARE monotone_method.
MULTIPLE IMPUTATION x1 x2 x3 x4 x5 x6 x7 x8 x9
/IMPUTE METHOD=MONOTONE NIMPUTATIONS=5 SCALEMODEL=PMM INTERACTIONS=NONE SINGULAR=1E-012
MAXPCTMISSING=NONE
/MISSINGSUMMARIES NONE
/IMPUTATIONSUMMARIES MODELS
/OUTFILE IMPUTATIONS=monotone_method.

This said, the syntax for preparing the analysis is below :

SET MXCELLS=9000.

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

IF R0538700=2 BH=1.
IF R1482600=2 BH=2.

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

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

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_XRND.
RECODE T5206700 (1 thru 20=COPY) (ELSE=SYSMIS) INTO RGRADE_corrected2010.
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 PARENTAL_INCOME = SUM(R0609800, R0610500, R0611100, R0612700).
COMPUTE SQRT_P_INCOME=SQRT(PARENTAL_INCOME+1).
COMPUTE SQRT_R_INCOME_ANOMALY=SQRT(T3606500+1).
RECODE SQRT_R_INCOME_ANOMALY (1 thru 500=Copy) INTO SQRT_R_INCOME.

RECODE R9871900 (1 thru highest=Copy) INTO TRANS_CRD_GPA_OVERALL.
RECODE R9872000 (1 thru highest=Copy) INTO TRANS_CRD_GPA_ENG.
RECODE R9872100 (1 thru highest=Copy) INTO TRANS_CRD_GPA_FGN_LANG.
RECODE R9872200 (1 thru highest=Copy) INTO TRANS_CRD_GPA_MATH.
RECODE R9872300 (1 thru highest=Copy) INTO TRANS_CRD_GPA_SOC_SCI.
RECODE R9872400 (1 thru highest=Copy) INTO TRANS_CRD_GPA_LP_SCI.

DESCRIPTIVES VARIABLES=TRANS_CRD_GPA_OVERALL TRANS_CRD_GPA_ENG TRANS_CRD_GPA_FGN_LANG TRANS_CRD_GPA_MATH TRANS_CRD_GPA_SOC_SCI TRANS_CRD_GPA_LP_SCI
/SAVE
/STATISTICS=MEAN STDDEV MIN MAX.

RECODE ZTRANS_CRD_GPA_OVERALL (-3 thru 3=Copy) INTO zGPA_OVERALL.
RECODE ZTRANS_CRD_GPA_ENG (-3 thru 3=Copy) INTO zGPA_ENG.
RECODE ZTRANS_CRD_GPA_FGN_LANG (-3 thru 3=Copy) INTO zGPA_FGN_LANG.
RECODE ZTRANS_CRD_GPA_MATH (-3 thru 3=Copy) INTO zGPA_MATH.
RECODE ZTRANS_CRD_GPA_SOC_SCI (-3 thru 3=Copy) INTO zGPA_SOC_SCI.
RECODE ZTRANS_CRD_GPA_LP_SCI (-3 thru 3=Copy) INTO zGPA_LP_SCI.

RECODE R9793200 (1 thru highest=Copy) INTO PSAT_Math1999.
RECODE R9793300 (1 thru highest=Copy) INTO PSAT_Verbal1999.
RECODE R9793400 (1 thru 40=Copy) INTO ACT_Comp1999.
RECODE R9793500 (5 thru 40=Copy) INTO ACT_Eng1999.
RECODE R9793600 (5 thru 40=Copy) INTO ACT_Math1999.
RECODE R9793700 (5 thru 40=Copy) INTO ACT_Read1999.
RECODE R9793800 (200 thru highest=Copy) INTO SAT_Verbal1999.
RECODE R9793900 (200 thru highest=Copy) INTO SAT_Math1999.

COMPUTE PIAT1997revised=SQRT(R1318200).

DESCRIPTIVES VARIABLES=PSAT_Math1999 PSAT_Verbal1999 ACT_Comp1999 ACT_Eng1999 ACT_Math1999 ACT_Read1999 SAT_Verbal1999 SAT_Math1999 PIAT1997revised
/SAVE
/STATISTICS=MEAN STDDEV MIN MAX.

FREQUENCIES VARIABLES=ZPSAT_Math1999 ZPSAT_Verbal1999 ZACT_Comp1999 ZACT_Eng1999 ZACT_Math1999
ZACT_Read1999 ZSAT_Verbal1999 ZSAT_Math1999 ZPIAT1997revised
/FORMAT=NOTABLE
/HISTOGRAM NORMAL
/ORDER=ANALYSIS.

RECODE R9705200 (0 thru highest=Copy) INTO GSPOSrecode.
RECODE R9705300 (0 thru highest=Copy) INTO ARPOSrecode.
RECODE R9705400 (0 thru highest=Copy) INTO WKPOSrecode.
RECODE R9705500 (0 thru highest=Copy) INTO PCPOSrecode.
RECODE R9705600 (0 thru highest=Copy) INTO NOPOSrecode.
RECODE R9705700 (0 thru highest=Copy) INTO CSPOSrecode.
RECODE R9705800 (0 thru highest=Copy) INTO AIPOSrecode.
RECODE R9705900 (0 thru highest=Copy) INTO SIPOSrecode.
RECODE R9706000 (0 thru highest=Copy) INTO MKPOSrecode.
RECODE R9706100 (0 thru highest=Copy) INTO MCPOSrecode.
RECODE R9706200 (0 thru highest=Copy) INTO EIPOSrecode.
RECODE R9706300 (0 thru highest=Copy) INTO AOPOSrecode.

RECODE R9706400 (0 thru highest=Copy) INTO GSNEGrecode.
RECODE R9706500 (0 thru highest=Copy) INTO ARNEGrecode.
RECODE R9706600 (0 thru highest=Copy) INTO WKNEGrecode.
RECODE R9706700 (0 thru highest=Copy) INTO PCNEGrecode.
RECODE R9706800 (0 thru highest=Copy) INTO NONEGrecode.
RECODE R9706900 (0 thru highest=Copy) INTO CSNEGrecode.
RECODE R9707000 (0 thru highest=Copy) INTO AINEGrecode.
RECODE R9707100 (0 thru highest=Copy) INTO SINEGrecode.
RECODE R9707200 (0 thru highest=Copy) INTO MKNEGrecode.
RECODE R9707300 (0 thru highest=Copy) INTO MCNEGrecode.
RECODE R9707400 (0 thru highest=Copy) INTO EINEGrecode.
RECODE R9707500 (0 thru highest=Copy) INTO AONEGrecode.

COMPUTE RECODEGSNEG=GSNEGrecode*-1.
COMPUTE RECODEARNEG=ARNEGrecode*-1.
COMPUTE RECODEWKNEG=WKNEGrecode*-1.
COMPUTE RECODEPCNEG=PCNEGrecode*-1.
COMPUTE RECODENONEG=NONEGrecode*-1.
COMPUTE RECODECSNEG=CSNEGrecode*-1.
COMPUTE RECODEAINEG=AINEGrecode*-1.
COMPUTE RECODESINEG=SINEGrecode*-1.
COMPUTE RECODEMKNEG=MKNEGrecode*-1.
COMPUTE RECODEMCNEG=MCNEGrecode*-1.
COMPUTE RECODEEINEG=EINEGrecode*-1.
COMPUTE RECODEAONEG=AONEGrecode*-1.

COMPUTE CombinedGS = SUM(GSPOSrecode, RECODEGSNEG).
COMPUTE CombinedAR = SUM(ARPOSrecode, RECODEARNEG).
COMPUTE CombinedWK = SUM(WKPOSrecode, RECODEWKNEG).
COMPUTE CombinedPC = SUM(PCPOSrecode, RECODEPCNEG).
COMPUTE CombinedNO = SUM(NOPOSrecode, RECODENONEG).
COMPUTE CombinedCS = SUM(CSPOSrecode, RECODECSNEG).
COMPUTE CombinedAI = SUM(AIPOSrecode, RECODEAINEG).
COMPUTE CombinedSI = SUM(SIPOSrecode, RECODESINEG).
COMPUTE CombinedMK = SUM(MKPOSrecode, RECODEMKNEG).
COMPUTE CombinedMC = SUM(MCPOSrecode, RECODEMCNEG).
COMPUTE CombinedEI = SUM(EIPOSrecode, RECODEEINEG).
COMPUTE CombinedAO = SUM(AOPOSrecode, RECODEAONEG).

DO IF NOT (MISSING(R0536401)) AND NOT (MISSING(R0536402)).
COMPUTE MONTHDATE=R0536401/100*8.333.
COMPUTE BIRTHDATE=MONTHDATE+R0536402.
END IF.
EXECUTE.

IF R0536300=1 and BHW=1 BlacksM1F2=1.
IF R0536300=2 and BHW=1 BlacksM1F2=2.
IF R0536300=1 and BHW=2 HispanicsM1F2=1.
IF R0536300=2 and BHW=2 HispanicsM1F2=2.
IF R0536300=1 and BHW=3 WhitesM1F2=1.
IF R0536300=2 and BHW=3 WhitesM1F2=2.

DESCRIPTIVES VARIABLES=CombinedGS CombinedAR CombinedWK CombinedPC CombinedNO CombinedCS CombinedAI CombinedSI CombinedMK CombinedMC CombinedEI CombinedAO
/SAVE
/STATISTICS=MEAN STDDEV MIN MAX.

FREQUENCIES VARIABLES=ZCombinedGS ZCombinedAR ZCombinedWK ZCombinedPC ZCombinedNO ZCombinedCS
ZCombinedAI ZCombinedSI ZCombinedMK ZCombinedMC ZCombinedEI ZCombinedAO
/FORMAT=NOTABLE
/HISTOGRAM NORMAL
/ORDER=ANALYSIS.

RECODE ZCombinedGS (-3 thru 3=COPY) INTO zGS.
RECODE ZCombinedAR (-3 thru 3=COPY) INTO zAR.
RECODE ZCombinedWK (-3 thru 3=COPY) INTO zWK.
RECODE ZCombinedPC (-3 thru 3=COPY) INTO zPC.
RECODE ZCombinedNO (-3 thru 3=COPY) INTO zNO.
RECODE ZCombinedCS (-3 thru 3=COPY) INTO zCS.
RECODE ZCombinedAI (-3 thru 3=COPY) INTO zAI.
RECODE ZCombinedSI (-3 thru 3=COPY) INTO zSI.
RECODE ZCombinedMK (-3 thru 3=COPY) INTO zMK.
RECODE ZCombinedMC (-3 thru 3=COPY) INTO zMC.
RECODE ZCombinedEI (-3 thru 3=COPY) INTO zEI.
RECODE ZCombinedAO (-3 thru 3=COPY) INTO zAO.

SELECT IF(NOT MISSING(BHW)) AND (NOT MISSING(R0536300)) AND (NOT MISSING(R0536402)) AND (NOT MISSING(zGS)) AND (NOT MISSING(zAR))
AND (NOT MISSING(zWK)) AND (NOT MISSING(zPC)) AND (NOT MISSING(zNO)) AND (NOT MISSING(zCS)) AND (NOT MISSING(zAI))
AND (NOT MISSING(zSI)) AND (NOT MISSING(zMK)) AND (NOT MISSING(zMC)) AND (NOT MISSING(zEI)) AND (NOT MISSING(zAO)).
EXECUTE.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

RECODE ZRE_1 (lowest thru highest=COPY) INTO GS.
RECODE ZRE_2 (lowest thru highest=COPY) INTO AR.
RECODE ZRE_3 (lowest thru highest=COPY) INTO WK.
RECODE ZRE_4 (lowest thru highest=COPY) INTO PC.
RECODE ZRE_5 (lowest thru highest=COPY) INTO NO.
RECODE ZRE_6 (lowest thru highest=COPY) INTO CS.
RECODE ZRE_7 (lowest thru highest=COPY) INTO AI.
RECODE ZRE_8 (lowest thru highest=COPY) INTO SI.
RECODE ZRE_9 (lowest thru highest=COPY) INTO MK.
RECODE ZRE_10 (lowest thru highest=COPY) INTO MC.
RECODE ZRE_11 (lowest thru highest=COPY) INTO EI.
RECODE ZRE_12 (lowest thru highest=COPY) INTO AO.

RECODE ZRE_13 (lowest thru highest=COPY) INTO GS_age.
RECODE ZRE_14 (lowest thru highest=COPY) INTO AR_age.
RECODE ZRE_15 (lowest thru highest=COPY) INTO WK_age.
RECODE ZRE_16 (lowest thru highest=COPY) INTO PC_age.
RECODE ZRE_17 (lowest thru highest=COPY) INTO NO_age.
RECODE ZRE_18 (lowest thru highest=COPY) INTO CS_age.
RECODE ZRE_19 (lowest thru highest=COPY) INTO AI_age.
RECODE ZRE_20 (lowest thru highest=COPY) INTO SI_age.
RECODE ZRE_21 (lowest thru highest=COPY) INTO MK_age.
RECODE ZRE_22 (lowest thru highest=COPY) INTO MC_age.
RECODE ZRE_23 (lowest thru highest=COPY) INTO EI_age.
RECODE ZRE_24 (lowest thru highest=COPY) INTO AO_age.

RECODE ZRE_25 (lowest thru highest=COPY) INTO GPA_OVERALL.
RECODE ZRE_26 (lowest thru highest=COPY) INTO GPA_ENG.
RECODE ZRE_27 (lowest thru highest=COPY) INTO GPA_FGN_LANG.
RECODE ZRE_28 (lowest thru highest=COPY) INTO GPA_MATH.
RECODE ZRE_29 (lowest thru highest=COPY) INTO GPA_SOC_SCI.
RECODE ZRE_30 (lowest thru highest=COPY) INTO GPA_LP_SCI.

RECODE ZRE_31 (lowest thru highest=COPY) INTO ASVAB1999.
RECODE ZRE_32 (lowest thru highest=COPY) INTO PIAT1997.
RECODE ZRE_33 (lowest thru highest=COPY) INTO RGRADE2010.
RECODE ZRE_34 (lowest thru highest=COPY) INTO R_INCOME2009.

RECODE ZRE_35 (lowest thru highest=COPY) INTO PSAT_Math.
RECODE ZRE_36 (lowest thru highest=COPY) INTO PSAT_Verbal.
RECODE ZRE_37 (lowest thru highest=COPY) INTO ACT_Comp.
RECODE ZRE_38 (lowest thru highest=COPY) INTO ACT_Eng.
RECODE ZRE_39 (lowest thru highest=COPY) INTO ACT_Math.
RECODE ZRE_40 (lowest thru highest=COPY) INTO ACT_Read.
RECODE ZRE_41 (lowest thru highest=COPY) INTO SAT_Verbal.
RECODE ZRE_42 (lowest thru highest=COPY) INTO SAT_Math.

SORT CASES BY BHW.
SPLIT FILE SEPARATE BY BHW.

EXAMINE VARIABLES=MOM_EDUC DAD_EDUC SQRT_P_INCOME
/PLOT BOXPLOT STEMLEAF HISTOGRAM NPPLOT
/COMPARE GROUPS
/STATISTICS DESCRIPTIVES EXTREME
/CINTERVAL 95
/MISSING PAIRWISE
/NOTOTAL.

EXAMINE VARIABLES=GS AR WK PC NO CS AI SI MK MC EI AO
/PLOT BOXPLOT STEMLEAF HISTOGRAM NPPLOT
/COMPARE GROUPS
/STATISTICS DESCRIPTIVES EXTREME
/CINTERVAL 95
/MISSING PAIRWISE
/NOTOTAL.

EXAMINE VARIABLES=GPA_OVERALL GPA_ENG GPA_FGN_LANG GPA_MATH GPA_SOC_SCI GPA_LP_SCI
/PLOT BOXPLOT STEMLEAF HISTOGRAM NPPLOT
/COMPARE GROUPS
/STATISTICS DESCRIPTIVES EXTREME
/CINTERVAL 95
/MISSING PAIRWISE
/NOTOTAL.

SORT CASES BY BHW.
SPLIT FILE SEPARATE BY BHW.

FACTOR
/VARIABLES GS AR WK PC NO CS AI SI MK MC EI AO
/MISSING LISTWISE
/ANALYSIS GS AR WK PC NO CS AI SI MK MC EI AO
/PRINT INITIAL EXTRACTION ROTATION
/FORMAT BLANK(.1)
/PLOT EIGEN
/CRITERIA FACTORS(2) ITERATE(25)
/EXTRACTION PAF
/CRITERIA ITERATE(25)
/ROTATION PROMAX(4)
/METHOD=CORRELATION.

FACTOR
/VARIABLES GS AR WK PC NO CS AI SI MK MC EI AO
/MISSING LISTWISE
/ANALYSIS GS AR WK PC NO CS AI SI MK MC EI AO
/PRINT INITIAL EXTRACTION ROTATION
/FORMAT BLANK(.1)
/PLOT EIGEN
/CRITERIA FACTORS(3) ITERATE(25)
/EXTRACTION PAF
/CRITERIA ITERATE(25)
/ROTATION PROMAX(4)
/METHOD=CORRELATION.

FACTOR
/VARIABLES GS AR WK PC NO CS AI SI MK MC EI AO
/MISSING LISTWISE
/ANALYSIS GS AR WK PC NO CS AI SI MK MC EI AO
/PRINT INITIAL EXTRACTION ROTATION
/FORMAT BLANK(.1)
/PLOT EIGEN
/CRITERIA FACTORS(4) ITERATE(25)
/EXTRACTION PAF
/CRITERIA ITERATE(25)
/ROTATION PROMAX(4)
/METHOD=CORRELATION.

MULTIPLE IMPUTATION MOM_EDUC DAD_EDUC SQRT_P_INCOME GPA_OVERALL RGRADE2010 ACT_Eng ACT_Math
ACT_Read
/IMPUTE METHOD=NONE
/MISSINGSUMMARIES OVERALL VARIABLES (MAXVARS=25 MINPCTMISSING=0.1) PATTERNS.

MULTIPLE IMPUTATION MOM_EDUC DAD_EDUC SQRT_P_INCOME GPA_OVERALL RGRADE2010 SAT_Verbal SAT_Math
/IMPUTE METHOD=NONE
/MISSINGSUMMARIES OVERALL VARIABLES (MAXVARS=25 MINPCTMISSING=0.1) PATTERNS.

CORRELATIONS
/VARIABLES=GS AR WK PC NO CS AI SI MK MC EI AO MOM_EDUC DAD_EDUC SQRT_P_INCOME GPA_OVERALL
RGRADE2010 ACT_Eng ACT_Math ACT_Read SAT_Verbal SAT_Math
/PRINT=TWOTAIL NOSIG
/MISSING=PAIRWISE.

NONPAR CORR
/VARIABLES=GS AR WK PC NO CS AI SI MK MC EI AO MOM_EDUC DAD_EDUC SQRT_P_INCOME GPA_OVERALL
RGRADE2010 ACT_Eng ACT_Math ACT_Read SAT_Verbal SAT_Math
/PRINT=SPEARMAN TWOTAIL NOSIG
/MISSING=PAIRWISE.

DESCRIPTIVES VARIABLES=MOM_EDUC DAD_EDUC SQRT_P_INCOME GS AR WK PC NO CS AI SI MK MC EI AO
GPA_OVERALL RGRADE2010 ACT_Eng ACT_Math ACT_Read SAT_Verbal SAT_Math
/STATISTICS=MEAN STDDEV MIN MAX.

SPLIT FILE OFF.

FILTER OFF.
USE ALL.
EXECUTE.

DATASET ACTIVATE DataSet1.

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.

MULTIPLE IMPUTATION MOM_EDUC DAD_EDUC SQRT_P_INCOME ASVAB1999 RGRADE2010
GPA_OVERALL GS AR WK PC NO CS AI SI MK MC EI AO
/IMPUTE METHOD=NONE
/MISSINGSUMMARIES OVERALL VARIABLES (MAXVARS=25 MINPCTMISSING=0.01) PATTERNS.

*Impute Missing Data Values.
DATASET DECLARE NLSY97_ASVAB_SES_GPA_B.
DATASET DECLARE nlsy97iteration_B.
MULTIPLE IMPUTATION MOM_EDUC DAD_EDUC SQRT_P_INCOME ASVAB1999 RGRADE2010
GPA_OVERALL GS AR WK PC NO CS AI SI MK MC EI AO
/IMPUTE METHOD=FCS MAXITER= 100 NIMPUTATIONS=5 SCALEMODEL=PMM INTERACTIONS=NONE SINGULAR=1E-012
MAXPCTMISSING=NONE
/MISSINGSUMMARIES NONE
/IMPUTATIONSUMMARIES MODELS DESCRIPTIVES
/OUTFILE IMPUTATIONS=NLSY97_ASVAB_SES_GPA_B FCSITERATIONS=nlsy97iteration_B.

DATASET ACTIVATE DataSet1.

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.

MULTIPLE IMPUTATION MOM_EDUC DAD_EDUC SQRT_P_INCOME ASVAB1999 RGRADE2010
GPA_OVERALL GS AR WK PC NO CS AI SI MK MC EI AO
/IMPUTE METHOD=NONE
/MISSINGSUMMARIES OVERALL VARIABLES (MAXVARS=25 MINPCTMISSING=0.01) PATTERNS.

*Impute Missing Data Values.
DATASET DECLARE NLSY97_ASVAB_SES_GPA_H.
DATASET DECLARE nlsy97iteration_H.
MULTIPLE IMPUTATION MOM_EDUC DAD_EDUC SQRT_P_INCOME ASVAB1999 RGRADE2010
GPA_OVERALL GS AR WK PC NO CS AI SI MK MC EI AO
/IMPUTE METHOD=FCS MAXITER= 100 NIMPUTATIONS=5 SCALEMODEL=PMM INTERACTIONS=NONE SINGULAR=1E-012
MAXPCTMISSING=NONE
/MISSINGSUMMARIES NONE
/IMPUTATIONSUMMARIES MODELS DESCRIPTIVES
/OUTFILE IMPUTATIONS=NLSY97_ASVAB_SES_GPA_H FCSITERATIONS=nlsy97iteration_H.

DATASET ACTIVATE DataSet1.

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.

MULTIPLE IMPUTATION MOM_EDUC DAD_EDUC SQRT_P_INCOME ASVAB1999 RGRADE2010
GPA_OVERALL GS AR WK PC NO CS AI SI MK MC EI AO
/IMPUTE METHOD=NONE
/MISSINGSUMMARIES OVERALL VARIABLES (MAXVARS=25 MINPCTMISSING=0.01) PATTERNS.

*Impute Missing Data Values.
DATASET DECLARE NLSY97_ASVAB_SES_GPA_W.
DATASET DECLARE nlsy97iteration_W.
MULTIPLE IMPUTATION MOM_EDUC DAD_EDUC SQRT_P_INCOME ASVAB1999 RGRADE2010
GPA_OVERALL GS AR WK PC NO CS AI SI MK MC EI AO
/IMPUTE METHOD=FCS MAXITER= 100 NIMPUTATIONS=5 SCALEMODEL=PMM INTERACTIONS=NONE SINGULAR=1E-012
MAXPCTMISSING=NONE
/MISSINGSUMMARIES NONE
/IMPUTATIONSUMMARIES MODELS DESCRIPTIVES
/OUTFILE IMPUTATIONS=NLSY97_ASVAB_SES_GPA_W FCSITERATIONS=nlsy97iteration_W.

FILTER OFF.
USE ALL.
EXECUTE.

CORRELATIONS
/VARIABLES=MOM_EDUC DAD_EDUC SQRT_P_INCOME ASVAB1999 RGRADE2010
GPA_OVERALL GS AR WK PC NO CS AI SI MK MC EI AO
/PRINT=TWOTAIL NOSIG
/MISSING=PAIRWISE.

NONPAR CORR
/VARIABLES=MOM_EDUC DAD_EDUC SQRT_P_INCOME ASVAB1999 RGRADE2010
GPA_OVERALL GS AR WK PC NO CS AI SI MK MC EI AO
/PRINT=SPEARMAN TWOTAIL NOSIG
/MISSING=PAIRWISE.

DATASET ACTIVATE NLSY97_ASVAB_SES_GPA_B.

SET MXCELLS=9000.

SORT CASES BY Imputation_.
SPLIT FILE LAYERED BY Imputation_.

CORRELATIONS
/VARIABLES=MOM_EDUC DAD_EDUC SQRT_P_INCOME GPA_OVERALL
RGRADE2010 ACT_Eng ACT_Math ACT_Read SAT_Verbal SAT_Math GS AR WK PC NO CS AI SI MK MC EI AO
/PRINT=TWOTAIL NOSIG
/MISSING=PAIRWISE.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT RGRADE2010
/METHOD=ENTER GS AR WK PC NO CS AI SI MK MC EI AO MOM_EDUC DAD_EDUC SQRT_P_INCOME.

T-TEST
/TESTVAL=0
/MISSING=ANALYSIS
/VARIABLES=MOM_EDUC DAD_EDUC SQRT_P_INCOME GPA_OVERALL RGRADE2010
/CRITERIA=CI(.95).

DATASET ACTIVATE NLSY97_ASVAB_SES_GPA_H.

SET MXCELLS=9000.

SORT CASES BY Imputation_.
SPLIT FILE LAYERED BY Imputation_.

CORRELATIONS
/VARIABLES=MOM_EDUC DAD_EDUC SQRT_P_INCOME GPA_OVERALL
RGRADE2010 ACT_Eng ACT_Math ACT_Read SAT_Verbal SAT_Math GS AR WK PC NO CS AI SI MK MC EI AO
/PRINT=TWOTAIL NOSIG
/MISSING=PAIRWISE.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT RGRADE2010
/METHOD=ENTER GS AR WK PC NO CS AI SI MK MC EI AO MOM_EDUC DAD_EDUC SQRT_P_INCOME.

T-TEST
/TESTVAL=0
/MISSING=ANALYSIS
/VARIABLES=MOM_EDUC DAD_EDUC SQRT_P_INCOME GPA_OVERALL RGRADE2010
/CRITERIA=CI(.95).

DATASET ACTIVATE NLSY97_ASVAB_SES_GPA_W.

SET MXCELLS=9000.

SORT CASES BY Imputation_.
SPLIT FILE LAYERED BY Imputation_.

CORRELATIONS
/VARIABLES=MOM_EDUC DAD_EDUC SQRT_P_INCOME GPA_OVERALL
RGRADE2010 ACT_Eng ACT_Math ACT_Read SAT_Verbal SAT_Math GS AR WK PC NO CS AI SI MK MC EI AO
/PRINT=TWOTAIL NOSIG
/MISSING=PAIRWISE.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT RGRADE2010
/METHOD=ENTER GS AR WK PC NO CS AI SI MK MC EI AO MOM_EDUC DAD_EDUC SQRT_P_INCOME.

T-TEST
/TESTVAL=0
/MISSING=ANALYSIS
/VARIABLES=MOM_EDUC DAD_EDUC SQRT_P_INCOME GPA_OVERALL RGRADE2010
/CRITERIA=CI(.95).

DATASET ACTIVATE nlsy97iteration_B.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ MOM_EDUC Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: MOM_EDUC=col(source(s), name("MOM_EDUC"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("MOM_EDUC"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*MOM_EDUC*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ DAD_EDUC Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: DAD_EDUC=col(source(s), name("DAD_EDUC"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("DAD_EDUC"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*DAD_EDUC*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ SQRT_P_INCOME Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: SQRT_P_INCOME=col(source(s), name("SQRT_P_INCOME"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("SQRT_P_INCOME"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*SQRT_P_INCOME*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ RGRADE2010 Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: RGRADE2010=col(source(s), name("RGRADE2010"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("RGRADE2010"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*RGRADE2010*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ GPA_OVERALL Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: GPA_OVERALL=col(source(s), name("GPA_OVERALL"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("GPA_OVERALL"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*GPA_OVERALL*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

DATASET ACTIVATE nlsy97iteration_H.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ MOM_EDUC Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: MOM_EDUC=col(source(s), name("MOM_EDUC"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("MOM_EDUC"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*MOM_EDUC*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ DAD_EDUC Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: DAD_EDUC=col(source(s), name("DAD_EDUC"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("DAD_EDUC"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*DAD_EDUC*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ SQRT_P_INCOME Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: SQRT_P_INCOME=col(source(s), name("SQRT_P_INCOME"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("SQRT_P_INCOME"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*SQRT_P_INCOME*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ RGRADE2010 Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: RGRADE2010=col(source(s), name("RGRADE2010"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("RGRADE2010"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*RGRADE2010*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ GPA_OVERALL Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: GPA_OVERALL=col(source(s), name("GPA_OVERALL"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("GPA_OVERALL"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*GPA_OVERALL*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

DATASET ACTIVATE nlsy97iteration_W.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ MOM_EDUC Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: MOM_EDUC=col(source(s), name("MOM_EDUC"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("MOM_EDUC"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*MOM_EDUC*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ DAD_EDUC Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: DAD_EDUC=col(source(s), name("DAD_EDUC"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("DAD_EDUC"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*DAD_EDUC*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ SQRT_P_INCOME Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: SQRT_P_INCOME=col(source(s), name("SQRT_P_INCOME"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("SQRT_P_INCOME"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*SQRT_P_INCOME*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ RGRADE2010 Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: RGRADE2010=col(source(s), name("RGRADE2010"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("RGRADE2010"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*RGRADE2010*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=Iteration_ GPA_OVERALL Imputations_ SummaryStatistic_ 
 MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: Iteration_=col(source(s), name("Iteration_"), unit.category())
 DATA: GPA_OVERALL=col(source(s), name("GPA_OVERALL"))
 DATA: Imputations_=col(source(s), name("Imputations_"), unit.category())
 DATA: SummaryStatistic_=col(source(s), name("SummaryStatistic_"), unit.category())
 GUIDE: axis(dim(1), label("Iteration Number"))
 GUIDE: axis(dim(2), label("GPA_OVERALL"))
 GUIDE: axis(dim(4), label("Summary Statistic"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Imputation Number"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(dim(4), include("0", "1"))
 ELEMENT: line(position(Iteration_*GPA_OVERALL*1*SummaryStatistic_), color.interior(Imputations_), 
 missing.wings())
END GPL.
This entry was posted in Stats, Softwares, Syntax and tagged . Bookmark the permalink.