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 1988Catholic: Yes if a student attended a Catholic high school; No otherwiseFatherEd: highest level of education completed by the student’s father, with six levelsIncome: classification based on total family income, with values of Low, Middle, and HighMath: student’s score on the mathematics portion of a standardized test in 1992MotherEd: 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
| Outcome Model Estimates for Control Group | |||||||
|---|---|---|---|---|---|---|---|
| Parameter | Estimate | Standard Error | Wald 95% Confidence Limits | Wald Chi-Square | Pr > ChiSq | ||
| Intercept | 10.9061 | 0.4808 | 9.9638 | 11.8484 | 514.5891 | <.0001 | |
| BaseMath | 0.7774 | 0.0078 | 0.7622 | 0.7927 | 9950.9801 | <.0001 | |
| Income | High | 0.4244 | 0.1818 | 0.0681 | 0.7807 | 5.4516 | 0.0196 |
| Income | Low | -0.7194 | 0.1944 | -1.1004 | -0.3385 | 13.7017 | 0.0002 |
| Income | Middle | 0 | . | . | . | . | . |
| FatherEd | College | 0.3857 | 0.3313 | -0.2637 | 1.0351 | 1.3548 | 0.2444 |
| FatherEd | HighScho | -0.3112 | 0.2903 | -0.8803 | 0.2579 | 1.1488 | 0.2838 |
| FatherEd | NoHighSc | -1.1478 | 0.3302 | -1.7950 | -0.5005 | 12.0806 | 0.0005 |
| FatherEd | Postseco | 0.5464 | 0.3827 | -0.2037 | 1.2965 | 2.0381 | 0.1534 |
| FatherEd | SomeSeco | 0.1948 | 0.3066 | -0.4061 | 0.7957 | 0.4036 | 0.5252 |
| FatherEd | Unknown | 0 | . | . | . | . | . |
| MotherEd | College | 0.6255 | 0.3747 | -0.1089 | 1.3600 | 2.7863 | 0.0951 |
| MotherEd | HighScho | -0.00768 | 0.3222 | -0.6392 | 0.6238 | 0.0006 | 0.9810 |
| MotherEd | NoHighSc | -0.5579 | 0.3610 | -1.2654 | 0.1496 | 2.3890 | 0.1222 |
| MotherEd | Postseco | 0.1472 | 0.4370 | -0.7093 | 1.0036 | 0.1134 | 0.7363 |
| MotherEd | SomeSeco | 0.4911 | 0.3346 | -0.1647 | 1.1469 | 2.1540 | 0.1422 |
| MotherEd | Unknown | 0 | . | . | . | . | . |
Output 33.3.2: Treatment Group Estimates
| Outcome Model Estimates for Treatment Group | |||||||
|---|---|---|---|---|---|---|---|
| Parameter | Estimate | Standard Error | Wald 95% Confidence Limits | Wald Chi-Square | Pr > ChiSq | ||
| Intercept | 15.6156 | 1.7186 | 12.2471 | 18.9840 | 82.5561 | <.0001 | |
| BaseMath | 0.7274 | 0.0244 | 0.6795 | 0.7752 | 887.3010 | <.0001 | |
| Income | High | -0.3734 | 0.5055 | -1.3641 | 0.6173 | 0.5458 | 0.4600 |
| Income | Low | -1.9732 | 0.6744 | -3.2950 | -0.6514 | 8.5605 | 0.0034 |
| Income | Middle | 0 | . | . | . | . | . |
| FatherEd | College | 2.3426 | 1.0035 | 0.3758 | 4.3095 | 5.4497 | 0.0196 |
| FatherEd | HighScho | 0.6428 | 1.0026 | -1.3223 | 2.6080 | 0.4111 | 0.5214 |
| FatherEd | NoHighSc | 0.0547 | 1.0842 | -2.0702 | 2.1796 | 0.0025 | 0.9598 |
| FatherEd | Postseco | 1.2191 | 1.0603 | -0.8591 | 3.2973 | 1.3219 | 0.2503 |
| FatherEd | SomeSeco | 1.9739 | 0.9848 | 0.0436 | 3.9041 | 4.0171 | 0.0450 |
| FatherEd | Unknown | 0 | . | . | . | . | . |
| MotherEd | College | -0.1707 | 1.0663 | -2.2607 | 1.9193 | 0.0256 | 0.8728 |
| MotherEd | HighScho | -1.3311 | 1.0506 | -3.3903 | 0.7280 | 1.6053 | 0.2051 |
| MotherEd | NoHighSc | -0.6978 | 1.3538 | -3.3513 | 1.9557 | 0.2656 | 0.6063 |
| MotherEd | Postseco | -0.8308 | 1.1261 | -3.0379 | 1.3764 | 0.5442 | 0.4607 |
| MotherEd | SomeSeco | -0.8607 | 1.0016 | -2.8238 | 1.1025 | 0.7383 | 0.3902 |
| MotherEd | Unknown | 0 | . | . | . | . | . |
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
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
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
Copyright © SAS Institute Inc. All rights reserved.