I am trying to fill out this table of categorical information (ethnicity, smoking status, ..so on) I am asked to use proc freq to do this. The code I have tried is:
Proc freq data= work.query;
by case ethnic sex smoke ;
run;
The output is below and not in the format I need. I am not sure how to change my code to get the information I am trying to get.
Thank you,