Abstract:
|
SAS Macros are useful and can save time with routine, repetitive tasks such as creating customized tables in situations when the exact same table structure is needed repeatedly, but the data changes. However, often flexibility is desired so that the same macro can be used to create similar but not identical tables for different research studies, within the same study or to allow one to quickly accommodate requested changes. This paper presents an easy to use, flexible, dynamic summary table macro that can include p-values, if the user desires. This type of table is often seen as the first table in published research articles. The macro incorporates flexible features that the user specifies through macro parameters such as the number and type of row variables, the tests one would like p-values from, the spacing of the table, the style and whether or not to show missing values. The macro also has dynamic features so it automatically provides the column totals, grabs the formats itself, and will automatically pull the correct p-value for t-tests depending on whether or not the variances are equal.
|