University of Rochester Medical Center
SearchDirectoryNewsEventsStrong HealthURMC Home

SAS Helpful Hints

Biostat Macro Library

T-test summary

%Ttest resides in the departments SAS Macro Library and is enabled with the following SAS statements:

Libname biostat '\\BIO2\example\SASMacrosWindows';
Options Mstored SasMstore=biostat;

%Ttest produces a simple T-test report on a list of outcome varaibles by visit.

Syntax:
%Ttest(dataset,group,visit,varlist);
    dataset:     Dataset to use.
    group:       Class variable(Numeric) .
    visit:          Visit(Numeric).
    varlist:       List of variables to test(All Numeric).

Example:
%Ttest(work.A,Treatment,week,A B C D E);

Several styles of HTML output can be requested by defining a macro variable named "HtmlStyle" before calling the procedure:

%Let HtmlStyle=URbw1;

Available styles include: URbw1, URpp1, BarrettsBlue, Beige, Brick, Brown, D3D, Default, Minimal, NoFontDefault, Printer, RTF, Statdoc, Theme, FancyPrinter, SansPrinter, SasdocPrinter and SerifPrinter.

The HTML output may be directed to a file by defining a macro variable named "HtmlFile" before calling the procedure:

%Let HtmlFile=c:/test.html;

The size of the text in the HTML output may be changed by defining a macro variable named "HtmlSize" before calling the procedure:

%Let HtmlSize=-1; *or;
%Let HtmlSize=+1;

Please send your comments and suggestions about this web page to A. Watts (watts@bst.rochester.edu)