Type of Tool | SAS Macro |
Title | Adjusted Treatment Effect Macro |
Programmer/Email | Pan Wu |
Contributing Site | Rochester |
Description | The Adjusted Treatment Effect Macro is used to account for levels of support by study participants\x92 partners in the intervention group (such support is absent for subjects in the condition) when estimating treatment effect in randomized controlled multi-layer intervention studies, such as levels of parent support for children in psychosocial intervention studies on children. The level of support by the subject\x92s partner in the intervention condition is measured as a categorical variable (4 categories as default). This macro imputes such levels of support the subjects in the control condition using multiple imputation and integrates the levels of support into inferences about treatment effects by weighting the subject according to the level of support. The approach is based on the notion of Principal Stratification in causal inference, but addresses a special scenario not widely discussed in the statistical literature, but common in psychosocial treatment studies, especially in community-based, multi-layered intervention studies. The Output Table of this Macro contains results of inference based on mixed-effects for both the popular intent-to-treat (ITT), which ignores the level of support, and this PS-based approach, that accounts for the support by the subject\x92s partner. |
Example | Example code |
Classification Graph Type | |
References | |
Datasets | |
Data | |
Software Program | SAS |
Software | SAS V9.3 |
Macro Parameters | The macro parameters are as follows: DSpred =name of SAS data set for noncompliance prediction in control group WVar =name of noncompliance categorical variable (4 categories by default) Time =name of time variable Wei1-4 =name of indicator of weight assignment (1 is the smallest weight, 4 is the largest) Pred =name of variables in prediction model Dvar =name of response variable in mixed-effects model DSmixed =name of SAS data set for mixed-effects model CovCat =name of categorical covariates in mixed-effects model CovCon =name of continuous covariates in mixed-effects model id =name of the variable for subject id Group =name of random-effects variables (None means intercepte random effect only) type =type of working correlation matrix |
R-Code - Attachment | |
R-Code | |
SAS-Code - Attachment | Rochester_AdTE_SAS.sas |
SAS-Code | |
Stata-Code - Attachment | |
Stata-Code | |
Other Code - Attachment | |
Other Code | |
Called Data Manipulation | |
Called Tool/Utility | |
Called Checking Macro | |
Called Other | |
Creation-Date | 6/26/2012 |
Revision-Date | |
Example Code | SAS Example Code |
Example Output | SAS Example Output |
SAS Examples | |
SAS_Example_Code | Rochester_AdTE_Example_SAS.sas |
SAS_Example_Output | Rochester_AdTE_Output_SAS.pdf |
R Examples | |
R_Example_Code | |
R_Example_Output | |
Stats Examples | |
Special Features | |
Special Features Attached | |
Special Features Text | |
Notes1-Legend | Section with calls to needed macros |
Notes1 | |
Notes2-Legend | Macro call with fully specified parameters |
Notes2 | |
Notes3-Legend | Section with definitions of global macro parameters |
Notes3 | |
Notes4-Legend | Section with definitions of local macro variables |
Notes4 | |
See Also | |
Checklists | |
Stat Tools Disclaimer | This SAS macro is developed by Pan Wu, along with other members in the Department of Biostatistics and Computational Biology at the University of Rochester under the auspice of the CTSI BERD with the intent to facilitate data analyses and reporting in clinical and related research. It is copyrighted by Pan Wu and distributed for free public access The development of this macro was supported in part by an NIH grant R21/R33 DA027521. |
Discliamer | The views expressed within CTSpedia are those of the author and must not be taken to represent policy or guidance on the behalf of any organization or institution with which the author is affiliated. |
Permission | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT OLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Reference Image |