As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


SAS macro for group data

From sasCommunity
Jump to: navigation, search

I'm thinking to modify an existing SAS macro. What I intend to do is to make the modified macro have the feature of a by statement in many SAS procedures. Right now the macro can only handle one data set at a time. This is time consuming. If it can work on the each group of the data with one by statement, it can save me lots of time.

Example:

In a simulation study, I generate 1000 random samples. If I use the SAS macro to analyze the samples one by one. It is very time consuming.

I'm thinking to put all 1000 random samples in one data set indexed by a variable r. I hope I can use the modified macro to analyze the pooled data set altogether. The macro will run through the data set following the by variable r.