12-31-2014 08:11 AM
Lets say we have 3 variables (var1, var2, var3)
All are categorical
var3 values could be one of 4: North, South, East, West
I want to do a certain procedure, let us say
Proc Freq data=have;
And I want this to be repeated automatically for all the subgroups in Var3
Is there a simple way of doing it?
Best wishes for the New Year
12-31-2014 12:53 PM
You might also try:
proc freq data=have;
tables Var3*Var1*Var2/<insert keywords here>;
The advantage here is that if you specify CMH as a keyword that you will get, in addition to the tests and tables for each level of Var3, a stratified analysis over all levels of Var3.
Need further help from the community? Please ask a new question.