turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- Base SAS Programming
- /
- Summary Macro from the Mayo Clinic

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

12-08-2010 02:37 PM

Hi! I think this macro is extremely useful! It produces summary statistics (mean/median/min/max/counts) and p-values between two groups of a class variable.

My question for anyone who has used it is the following:

What if there is a subgroup analysis someone wants to do? I see this is awesome for getting descriptive statistics including p-values for a class variable with varying levels. How about if I want one main class variable (like Case and Control) and subgroups (like Old/Young)? Does this macro support this type of analysis?

Thank you so very much!

Monica

The macro can be found:

http://mayoresearch.mayo.edu/mayo/research/biostat/upload/summary.sas

My question for anyone who has used it is the following:

What if there is a subgroup analysis someone wants to do? I see this is awesome for getting descriptive statistics including p-values for a class variable with varying levels. How about if I want one main class variable (like Case and Control) and subgroups (like Old/Young)? Does this macro support this type of analysis?

Thank you so very much!

Monica

The macro can be found:

http://mayoresearch.mayo.edu/mayo/research/biostat/upload/summary.sas

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

12-09-2010 10:35 AM

Not directly. The documentation specifies that you can only have a single class variable.

You can do it by creating a new class variable that concatenates the group and subgroup.

You may also be able to do it with two calls to the macro, using something like

DATA=mydata(WHERE=(main='Case'),

You can do it by creating a new class variable that concatenates the group and subgroup.

You may also be able to do it with two calls to the macro, using something like

DATA=mydata(WHERE=(main='Case'),