hockeyfan
02-07-2009, 09:43 PM
I am not looking for the actual solution to this problem, but just a little intuition on how one would solve the problem.
I want to write a macro that reads my data, and goes through each variable and does either a proc means statement or a proc freq statement depending on the variable type (means if continuous, freq if categorical).
I usually have datasets that have about 20 demographic/baseline variables that I need to get summary information, and I feel like I am not using my time most efficiently if I go through the SAS dataset and pick out the categorical or continuous variables.
Any guidance would be greatly appreciated, especially regarding how difficult this would be to implement.
Thanks (GO SABRES)!!
I want to write a macro that reads my data, and goes through each variable and does either a proc means statement or a proc freq statement depending on the variable type (means if continuous, freq if categorical).
I usually have datasets that have about 20 demographic/baseline variables that I need to get summary information, and I feel like I am not using my time most efficiently if I go through the SAS dataset and pick out the categorical or continuous variables.
Any guidance would be greatly appreciated, especially regarding how difficult this would be to implement.
Thanks (GO SABRES)!!