The CAUSALTRT Procedure
Getting Started: CAUSALTRT Procedure
(View the complete code for this example.)
This section illustrates some of the basic features of the CAUSALTRT procedure. This example uses data from a hypothetical nonrandomized trial.
Suppose that 486 patients in a trial are at risk for developing type 2 diabetes and are allowed to choose which of two preventive drugs they want to receive. For this study, the outcome of interest is whether a patient develops type 2 diabetes within five years. The nonrandom assignment of patients to treatment conditions does not control for confounding variables that might explain any observed difference between the treatment conditions. The hypothetical data set Drugs contains the following variables:
Age: age at the start of the trialBmi: body mass index at the start of the trialDiabetes2: indicator for whether a patient developed type 2 diabetes, with values Yes and NoDrug: indicator of treatment assignment, with values Drug_A and Drug_XGender: gender
The first 10 observations in the Drugs data set are listed in Figure 33.1.
Figure 33.1: Drug Trial Data
The following statements invoke the CAUSALTRT procedure and request the estimation of the average treatment effect (ATE) by using the inverse probability weighting method with ratio adjustment (METHOD=IPWR):
proc causaltrt data=drugs method=ipwr ppsmodel; class Gender; psmodel Drug(ref='Drug_A') = Age Gender Bmi; model Diabetes2(ref='No') / dist = bin; run;
The results of this analysis are shown in the following figures. In Figure 33.2, PROC CAUSALTRT displays information about the estimation method used, the outcome variable, and the treatment variable.
Figure 33.2: Model Information
The METHOD= option in the PROC CAUSALTRT statement specifies the estimation method to be used. The outcome variable, Diabetes2, is specified in the MODEL statement, and the treatment variable, Drug, is specified in the PSMODEL statement.
The DIST=BIN option in the MODEL statement identifies the outcome as a binary variable, and the ref='No' option identifies No as the reference level. In the PSMODEL statement, the ref='Drug_A' option identifies Drug_A as the reference (control) condition when the treatment assignment is modeled and the ATE is estimated. The frequencies for the outcome and treatment variable categories are listed in the "Response Profile" (Figure 33.3) and "Treatment Profile" (Figure 33.4) tables, respectively.
The IPWR estimation method uses inverse probability weighting to estimate the potential outcome means and ATE. The inverse probability weights are estimated by inverting the predicted probability of receiving treatment (that is, the Drug_X condition), which is estimated from a logistic regression model that is specified in the PSMODEL statement. The probability of receiving treatment is called the propensity score, and hence the regression model fit by the PSMODEL statement is also called the propensity score model. In this example, the predictors of the propensity score model are Age, Gender, and Bmi. The PPSMODEL option in the PROC CAUSALTRT statement displays the parameter estimates for the propensity score model, as shown in Figure 33.5.
Figure 33.5: Propensity Score Model Estimates
| Propensity Score Model Estimates | |||||||
|---|---|---|---|---|---|---|---|
| Parameter | Estimate | Standard Error | Wald 95% Confidence Limits | Wald Chi-Square | Pr > ChiSq | ||
| Intercept | -0.6226 | 1.2738 | -3.1193 | 1.8740 | 0.2389 | 0.6250 | |
| Age | -0.0888 | 0.0170 | -0.1220 | -0.0556 | 27.4228 | <.0001 | |
| Gender | Female | -0.2103 | 0.2055 | -0.6130 | 0.1924 | 1.0474 | 0.3061 |
| Gender | Male | 0 | . | . | . | . | . |
| Bmi | 0.1434 | 0.0517 | 0.0422 | 0.2447 | 7.7115 | 0.0055 | |
The estimates for the potential outcome means (POM) and ATE are displayed in the "Analysis of Causal Effect" table (Figure 33.6). The ATE estimate of –0.1787 indicates that Drug_X is more effective on average than Drug_A in preventing the development of type 2 diabetes. The ATE is significantly different from 0 at the 0.05 -level, as indicated by the 95% confidence interval (–0.2771, –0.0803) or the p-value (0.0004).
Figure 33.6: IPWR Potential Outcome Means and ATE Estimates
The ATE of Drug_X compared to Drug_A can also be estimated by using augmented inverse probability weights (AIPW). In addition to a propensity score model, the AIPW estimation method incorporates a model for the outcome variable, Diabetes2, into the estimation of the potential outcome means and ATE. The AIPW estimation method is doubly robust and provides unbiased estimates for the ATE even if one of the outcome or treatment models is misspecified.
The following statements invoke the CAUSALTRT procedure and use the AIPW estimation method to estimate the ATE:
proc causaltrt data=drugs method=aipw; class Gender; psmodel Drug(ref='Drug_A') = Age Gender Bmi; model Diabetes2(ref='No') = Age Gender Bmi / dist = bin; run;
For this example, the same set of effects is specified in both the MODEL and PSMODEL statements, but in general this need not be the case. The use of the AIPW estimation method for this PROC CAUSALTRT step is reflected in the "Model Information" table (Figure 33.7).
Figure 33.7: Model Information
As shown in Figure 33.8, the AIPW estimate for the ATE is –0.1709, which is similar to the IPWR estimate of –0.1787. Moreover, the AIPW standard error estimate for ATE is slightly smaller than that of the IPWR. The AIPW 95% confidence interval for ATE is also slightly narrower than that of the IPWR.
Figure 33.8: AIPW Potential Outcome Means and ATE Estimates
Copyright © SAS Institute Inc. All rights reserved.