@awardell wrote:
Thanks for your speedy response. I have put this in SAS, and this gives me the gender by ethnicity table. I'm guessing I will need to do something similar to this to get the tables with all three variables:
proc tabulate data=gender_p; class race ethnicity gender; table race, ethnicity*gender run;
Thanks so much!!!
It depends on how you want to look at things.
One thing it may be helpful to know is that Proc Tabulate supports multiple table statements.
Second is the , separates dimensions (page, row and column) and * nests variables and statistics within a dimension:
so you might look at
proc tabulate data=gender_p;
class race ethnicity gender;
table race,
ethnicity*gender
;
table race,
ethnicity,
gender
;
table race * ethnicity,
gender
;
table race * ethnicity * gender
;
table race ethnicity gender,
race ethnicity gender
;
run;
for a variety. The N statistic is assumed for class variables is no other is requested. There are a number of percentages that could be requested as well.
... View more