Biostat Macro LibraryQuick Tabulations%Tabulate and %TableFreq reside in the departments SAS Macro Library and are enabled with the following SAS statements: L %Tabulate tabulates continous variables and their changes from baseline and washout, by group and visit. Four groups of statistics are available: Pub(Publication style:Mean(Std)), Brief(N,Mean,Std), Short(N,Mean Std,Min,Max) or Long(N,Mean,Median,Std,Stderr, Min,Max). %Tabulate automatically adjusts the dimensions of the table to fit nicely on a page. %TableFreq tabulates discrete variables and changes from baseline and washout, by group and visit. The table includes the N and % for each variable in the VarList. %TableFreq automatically adjusts the dimensions of the table to fit nicely on a page. Publication style, N(%), is available by putting "Pub" as the outfile. The output is directed to the output window. You may specify a minimum percentage of enrolled subjects to be included to eliminate sparsely populated cells in the table. If there is not enough data at a visit, it may not be useful to tabulate. All the data will be included if DropPct is set to 0 [zero]. Syntax: Example: %Tabulate and %TableFreq are best used in conjuction with %CleanTable: %Let output1=C:\table.out; %Let output2=C:\table.lst; The number of digits displayed in publication mode can be changed by defining a macro variable named “Digits” before calling the procedure: %Let Digits=3; The resulting output is best read and formatted with Microsoft Word. Output:
| |||