Chapter 7 – Age-Period-Cohort Analysis: New Models, Methods, and Empirical Applications

Main   Chapter 5   Chapter 6   Chapter 7   Chapter 8   Chapter 9

Table 7.2 HAPC-CCREM of the GSS WORDSUM Data, 1974 – 2006

SAS codes:

********** Creating regressors ---------------------------;
AGE_C = AGE – 45.1; /*45.1 is the mean age of the sample*/
AGE_C2 = AGE_C**2;
EDUC_C = EDUC – EDUC_j; /*EDUC_j is cohort-specific education*/

********** Model ---------------------------;
proc mixed data=GSS_verbal covtest CL;
      class PERIOD COHORT;
      model WORDSUM = AGE_C AGE_C2 EDUC_C SEX RACE/solution CL;
      random PERIOD COHORT / solution;
      title "Table 6.2 HAPC-CCREM of the GSS WORDSUM Data, 1974 - 2006";
run;

Table 7.4 HAPC-CCREM of Obesity Trends, NHANES 1971 – 2008

SAS codes:

********** Creating regressors ---------------------------;
AGE_C = AGE - 46;
AGE_C2 = AGE_C**2;

********** Model ---------------------------;
proc glimmix data=NHANES_Obesity maxopt=25000;
      class PERIOD COHORT;
      model OBESE(event='1') = AGE_C AGE_C2 SEX RACE EDUC1 EDUC2 INCOME (Lowest Quartile) INCOME (Highest Quartile) /solution CL
      dist=binary;
      random PERIOD COHORT / solution;
      covtest GLM / WALD;
      NLOPTIONS TECHNIQUE=NRRIDG;
      title "Table 7.4: HAPC-CCREM of Obesity Trends, NHANES 1971-2008";
run;

Table 7.6 The Random Coefficient CCREM Estimates of Obesity: NHANES 1971 – 2008

SAS codes:

proc glimmix data=NHANES_Obesity maxopt=25000;
      class PERIOD COHORT;
      model OBESE(event='1') = AGE_C AGE_C2 SEX RACE EDUC1 EDUC2 INCOME (Lowest Quartile) INCOME (Highest Quartile) /solution CL
      dist=binary;
      random intercept SEX RACE /sub=PERIOD solution;
      random intercept SEX RACE /sub=COHORT solution;
      covtest GLM / WALD;
      NLOPTIONS TECHNIQUE=NRRIDG;
      title "Table 7.6: The Random Coefficient CCREM Estimates of Obesity: NHANES 1971-2008";
run;