Type of Tool | SAS Macro |
Title | Effect Size Longitudinal |
Programmer/Email | RuiChen |
Contributing Site | Rochester |
Description | This macro computes effect sizes for longitudinal study data; it compares the group means between two treatment conditions with adjustment for baseline value of the outcome and covariates and prints out effect size estimates at each assessment time as well as averaged effect size over all assessment points. Effect size is defined as Cohen's D for comparing two treatment groups --- difference between two group means divided by the pooled standard deviation --- with the group means and variance estimated from an analysis of covariance (ANCOVA) model. The confidence interval of effect size at each time is based on the asymptotic variance of the effect size estimate, while the confidence interval of averaged effect size is the averaged confidence intervals across all assessment times. |
Classification Graph Type | |
References | |
Datasets | |
Data | |
Software Program | SAS |
Software | SAS |
Macro Parameters | MacroDir: Directory where the results are saved. DSName: Name of SAS data set. ID: Name of the variable for object ID. Outcome: Name of outcome variable. TimeSeq: Name of the time sequences variable. If the data is not longitudinal, leave it blank. Treatment: Name of the variable to specify two cohorts. CovariateNum: Name of the continuous covariates. CovariateClass: Name of the categorical covariates. AdjustTimeBase: - Y/N (default = N): If adjust for the value of Outcome at TimeSeq = 0. - Y: adjust for the value of outcome variable at TimeSeq = 0; when AdjustTimeBase = Y, the value of TimeSeq starts from 0. - N: do not adjust for the value of outcome variable at time 0. ResultsFormat: rtf/html (default = rtf): Format of the results file. |
R-Code - Attachment | |
R-Code | |
SAS-Code - Attachment | Rochester_Effect Size_Main Macro |
SAS-Code | |
Stata-Code - Attachment | |
Stata-Code | |
Other Code - Attachment | |
Other Code | |
Called Data Manipulation | |
Called Tool/Utility | |
Called Checking Macro | |
Called Other | Rochester_Longitudinal Effect Size_Main Macro |
Creation-Date | December 4, 2008 |
Revision-Date | |
Example Code | SAS Example Code |
Example Output | SAS Example Output |
SAS Examples | |
SAS_Example_Code | Rochester_ES Macro_SAS Example Code |
SAS_Example_Output | [Rochester_ES Macro_SAS Example Output |
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 | Section with Calls to needed macros filename ESMacro URL "https://www.ctspedia.org/CTSpedia/EffectSizeLongitudinal.attachments/ESMacro.sas"; %include ESMacro; |
Notes2-Legend | Macro call with fully specified parameters |
Notes2 | Macro call with fully specified parameters %ESMacro (MacroDir= , DSName = , ID=, Outcome=, TimeSeq= , Treatment = , CovariateNum , CovariateClass, AdjustTimeBase= N, ResultsFormat= rtf); |
Notes3-Legend | Section with definitions of global macro parameters |
Notes3 | N/A |
Notes4-Legend | Section with definitions of local macro variables |
Notes4 | N/A |
See Also | Rochester_Effect Size Mixed_Main Macro |
Checklists | |
Stat Tools Disclaimer | This SAS macro is developed by Rui Chen and other members in the Department of Biostatistics and Computational Biology at the University of Rochester under the auspice of the CTSA BERD with the intent to facilitate data analyses and reporting in clinical and related research. It is copyrighted by Dr. Chen, October, 2008 and distributed for free public access. |
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 |