|
A conventional way to do this table
It is a typical demographic table in clinical trial analysis. Although it might be created by PROC TABULATE, I still suggest all of you trying to write a SAS program in a more complicated way as follows (at least as a home work assignment).
1. Use Proc Freq to calculate the frequencies and percentage, save the result into a SAS data set.
2. Use Proc Means to calculate means and stds and save the result into a SAS data set.
3. reformulate each columns and append the two result data sets.
4. create table by Proc Report.
The way to do this is generally referred as customized reporting, which means to create a report based on given template.
In the previous example, if I make just small changes to that table structure, Proc Tabulate will never do it.
Using the default output of a PROC, the flexibility of the output format is very limited. A good SAS programmer should be able to follow the requirements exactly, in case the requiremements are reasonable. It is a key difference between the people working in industry and academic fields.
It is for sure that any kind of report can be created by using PUT statement, but that kind of skill is rarely used with the standardization of clinical trial reporting.
Just my 2 cents. |
|