The CAUSALTRT Procedure

Example 33.3 Estimating Treatment Effects Using Regression Adjustment

(View the complete code for this example.)

This example demonstrates how the CAUSALTRT procedure can use regression adjustment to estimate both the ATE (average treatment effect) and the ATT (average treatment effect for the treated). The question of interest in this example is the effect that attending a Catholic high school has on a student’s performance in mathematics. The data for this example are a subset of data from the National Educational Longitudinal Study of 1988 in Murnane and Willett (2011). Demographic information was collected from the students and their families along with standardized test scores in 1988 and subsequent follow-up years. The outcome for this example is the student’s score on the mathematics portion of the standardized tests in 1992.

The input data set School is shown in the following DATA step:

data School;
   input
   Income $ FatherEd $ MotherEd $ Math BaseMath  Catholic $;
   datalines;
   Middle HighSchool HighSchool 49.77 50.27 Yes
   Middle Unknown Unknown 59.84 51.52 Yes
   Middle NoHighSchool Postsecondary 50.38 47.56 Yes
   Middle Unknown Unknown 45.03 46.60 Yes
   High HighSchool HighSchool 54.26 60.22 Yes
   Low NoHighSchool HighSchool 55.37 58.63 Yes

   ... more lines ...   

   High SomeSecondary HighSchool 43.28 43.27 Yes
   Middle HighSchool HighSchool 41.69 48.29 Yes
   High College College 56.60 60.15 Yes
   High College SomeSecondary 56.29 59.53 Yes
   High College Postsecondary 58.16 57.06 Yes
   High College SomeSecondary 63.57 63.51 Yes
;

The data set School consists of records for 5,671 high school students whose 1988 total family income was at most $75,000. The variables in the data are as follows:

  • BaseMath: student’s score on the mathematics portion of a standardized test in 1988

  • Catholic: Yes if a student attended a Catholic high school; No otherwise

  • FatherEd: highest level of education completed by the student’s father, with six levels

  • Income: classification based on total family income, with values of Low, Middle, and High

  • Math: student’s score on the mathematics portion of a standardized test in 1992

  • MotherEd: highest level of education completed by the student’s mother, with six levels

The following statements invoke the PROC CAUSALTRT procedure to estimate the ATE of attending a Catholic high school on math scores:

proc causaltrt data=school method=regadj poutcomemod;
   class Income FatherEd MotherEd;
   psmodel Catholic(ref='No');
   model Math = BaseMath Income FatherEd MotherEd;
run;

The METHOD=REGADJ option requests that regression adjustment be used to estimate the ATE. For this estimation method, models are fit for the outcome variable separately for each treatment condition. The treatment variable, Catholic, is listed in PSMODEL statement. The ref='No' option identifies Catholic='No' as the reference or control level. The outcome variable Math is specified in the MODEL statement along with the effects used to fit the outcome model.

The POUTCOMEMOD option in the PROC CAUSALTRT statement requests the display of the parameter estimates for the outcome model fit within each treatment condition. Two tables are produced: one for the control condition (Output 33.3.1) and one for the treatment condition (Output 33.3.2).

Output 33.3.1: Control Group Estimates

The CAUSALTRT Procedure

Outcome Model Estimates for Control Group
Parameter EstimateStandard
Error
Wald 95%
Confidence Limits
Wald
Chi-Square
Pr > ChiSq
Intercept 10.90610.48089.963811.8484514.5891<.0001
BaseMath 0.77740.00780.76220.79279950.9801<.0001
IncomeHigh0.42440.18180.06810.78075.45160.0196
IncomeLow-0.71940.1944-1.1004-0.338513.70170.0002
IncomeMiddle0.....
FatherEdCollege0.38570.3313-0.26371.03511.35480.2444
FatherEdHighScho-0.31120.2903-0.88030.25791.14880.2838
FatherEdNoHighSc-1.14780.3302-1.7950-0.500512.08060.0005
FatherEdPostseco0.54640.3827-0.20371.29652.03810.1534
FatherEdSomeSeco0.19480.3066-0.40610.79570.40360.5252
FatherEdUnknown0.....
MotherEdCollege0.62550.3747-0.10891.36002.78630.0951
MotherEdHighScho-0.007680.3222-0.63920.62380.00060.9810
MotherEdNoHighSc-0.55790.3610-1.26540.14962.38900.1222
MotherEdPostseco0.14720.4370-0.70931.00360.11340.7363
MotherEdSomeSeco0.49110.3346-0.16471.14692.15400.1422
MotherEdUnknown0.....


Output 33.3.2: Treatment Group Estimates

The CAUSALTRT Procedure

Outcome Model Estimates for Treatment Group
Parameter EstimateStandard
Error
Wald 95%
Confidence Limits
Wald
Chi-Square
Pr > ChiSq
Intercept 15.61561.718612.247118.984082.5561<.0001
BaseMath 0.72740.02440.67950.7752887.3010<.0001
IncomeHigh-0.37340.5055-1.36410.61730.54580.4600
IncomeLow-1.97320.6744-3.2950-0.65148.56050.0034
IncomeMiddle0.....
FatherEdCollege2.34261.00350.37584.30955.44970.0196
FatherEdHighScho0.64281.0026-1.32232.60800.41110.5214
FatherEdNoHighSc0.05471.0842-2.07022.17960.00250.9598
FatherEdPostseco1.21911.0603-0.85913.29731.32190.2503
FatherEdSomeSeco1.97390.98480.04363.90414.01710.0450
FatherEdUnknown0.....
MotherEdCollege-0.17071.0663-2.26071.91930.02560.8728
MotherEdHighScho-1.33111.0506-3.39030.72801.60530.2051
MotherEdNoHighSc-0.69781.3538-3.35131.95570.26560.6063
MotherEdPostseco-0.83081.1261-3.03791.37640.54420.4607
MotherEdSomeSeco-0.86071.0016-2.82381.10250.73830.3902
MotherEdUnknown0.....


The potential outcome means and ATE are estimated by averaging predicted values for each student from each of the outcome models. The ATE estimate of 1.6920 in Output 33.3.3 indicates that attending a Catholic high school has a positive effect on math scores. This estimate for the treatment effect is much smaller than the estimate of 3.8949 that you would obtain by comparing the unadjusted average math scores for each treatment condition.

Output 33.3.3: Regression Adjustment Potential Outcome Means and ATE Estimates

The CAUSALTRT Procedure

Analysis of Causal Effect
ParameterTreatment
Level
EstimateRobust
Std Err
Wald 95%
Confidence Limits
ZPr > |Z|
POMYes52.57900.264552.060553.0975198.76<.0001
POMNo50.88710.128050.636351.1378397.70<.0001
ATE 1.69200.25361.19502.18896.67<.0001


Conceptually, the ATE in this example is the average effect on the math scores for everyone in the population who would have attended a Catholic high school versus a non-Catholic high school. Causal effect analysis such as the current example enables you to estimate the ATE with causal interpretation, which is of general scientific interest.

However, for policy-making purposes, sometimes it is more interesting to examine the effectiveness of a program or treatment for those who did participate. The average treatment effect for the treated (ATT) is such a concept; it measures the treatment effect conditional on those who receive the treatment condition. PROC CAUSALTRT provides you two methods to estimate ATT: the inverse probability weighting method with ratio adjustment (METHOD=IPWR) or regression adjustment (METHOD=REGADJ).

The remainder of this section demonstrates the estimation of ATT for the Catholic high school data example. To estimate the average treatment effect for the treated, you specify the ATT option in the PROC CAUSALTRT statement. The following SAS statements estimate the ATT using the regression adjustment estimation method and the same outcome model as specified in the previous analysis for ATE:

proc causaltrt data=school method=regadj att;
   class Income FatherEd MotherEd;
   psmodel Catholic(ref='No');
   model Math = BaseMath Income FatherEd MotherEd;
run;

The "Analysis of Causal Effect" table now displays estimates for the ATT and the potential outcome means conditional on receiving the treatment condition. The estimate for the ATT is 1.5727, which is slightly smaller than the ATE estimate.

Output 33.3.4: Regression Adjustment ATT Estimates

The CAUSALTRT Procedure

Analysis of Causal Effect
ParameterTreatment
Level
EstimateRobust
Std Err
Wald 95%
Confidence Limits
ZPr > |Z|
POMYes54.53950.347553.858355.2207156.93<.0001
POMNo52.96680.303452.372253.5614174.59<.0001
ATT 1.57270.22681.12812.01736.93<.0001


From a policy-making point of view, the average effect that attending a Catholic high school would have on students who are in non-Catholic high school would also be of interest. Such a mirror concept of ATT is also known as ATU, average treatment effect for the untreated. Although the CAUSALTRT procedure does not provide a direct option for estimating ATU, you can still achieve that purpose by using the ATT option with the reverse treatment designation. In the following PROC CAUSALTRT statements, the ref='Yes' option in the PSMODEL statement redefines the treatment condition to be attending a non-Catholic high school.

proc causaltrt data=school method=regadj att;
   class Income FatherEd MotherEd;
   psmodel Catholic(ref='Yes');
   model Math = BaseMath Income FatherEd MotherEd;
run;

The ATT estimate of –1.7059 in Output 33.3.5 is the average causal effect that attending non-Catholic high schools has on the math scores of students in non-Catholic high schools. Reversing the sign of this estimate provides an estimate for the ATU: the average treatment effect that attending a Catholic school would have for those students in non-Catholic high schools. Hence, the ATU in the current example is 1.7059.

In some research studies, researchers would like to compare ATT and ATU to investigate the so-called effect heterogeneity issue. In the current example, the ATU is only slightly larger (by about 0.13 points) than the ATT. Considering the fact that all potential outcome means are about 50, it thus appears to be safe to say that effect heterogeneity, as indicated by the 0.13 point difference, is not an issue in the current example.

Output 33.3.5: AIPW Potential Outcome Means and ATE Estimates

The CAUSALTRT Procedure

Analysis of Causal Effect
ParameterTreatment
Level
EstimateRobust
Std Err
Wald 95%
Confidence Limits
ZPr > |Z|
POMNo50.64470.133850.382550.9068378.60<.0001
POMYes52.35050.271751.817952.8831192.66<.0001
ATT -1.70590.2608-2.2171-1.1947-6.54<.0001