Abbreviated T-Test

%EDITTABLE{changerows = "off", format ="|label, 1|text, 65|"}%
Macro Name BriefTTest.sas
Description This macro creates abbreviated TTest output and a dataset with theTTest results.
Macro Parameters

datain = Input dataset

dataout = Output dataset

class variable = 2 level class variable

varlist = Outcome variables

digits = Significant digits to keep after the decimal.

Programmer Name Arthur Watts
Revision History March 29,2010
Disclaimer This SAS macro is developed by Arthur Watts in the Department of Biostatistics and Computational Biology at the University of Rochester under the auspice of the CTSI BREAD with the intent to facilitate data analyses and reporting in clinical and related research. It is copyrighted by Mr. Watts, March 2010 and distributed for free public access.

%EDITTABLE{changerows = "off", format ="|label,0| textarea, 25X25|"}%
Example of macro call

%BriefTTest(datain,dataout,class,varlist,digits);

%BriefTTest(mydata,dataout,gender,Cholesterol SystolicBP DiastolicBP Weight,3);


%EDITTABLE{changerows = "off", format ="|label,0| textarea, 25X25|"}%
Special Features If the Equality of Variance is >= 0.05, then the Pooled P-value is printed. If the Equality of Variance is < 0.05, then the Satterthwaite P-value is printed. Both P-values are kept in the output dataset.

%EDITTABLE{changerows = "off", format ="|label,0| textarea, 25X25|"}%
Called Macros CheckData CheckVariabs CheckNumVars CheckNumber

Section with calls to needed macros

Filename incl URL "http://ctspedia.org/wiki/pub/CTSpedia/BriefTTest/BriefTTest.sas";
%Include incl;

Macro call with fully specified parameters

%BriefTTest(mydata,dataout,gender,Cholesterol SystolicBP DiastolicBP Weight,3);