I'm very new to both SAS and statistical analysis in general. I have a degree in computer science and I'm taking an online course in statistics and am confused on how to achieve what I want in SAS. I have searched online to no avail but am probably not even using the right terminology since I don't really know SAS or stats very well.
Basically, I have a few variables in a dataset and I want to display them conditionally in frequency tables.
For example, let's say I have the variables Gender, Age and Alcohol_use. What I want to do is have a frequency table or tables that basically relate gender and age to alcohol use. So, I want to break it down by gender and age at the same time, if that makes sense. One example would be:
Male, 21-25 -> Moderate Use
Female, 21-25 -> Low Use
Male, 26-30 -> Heavy Use
etc...
So, I guess I want to have frequency tables for the third variable on certain conditions of the first two variables, if that makes sense.
Normally, when displaying frequency tables, I just write PROC FREQ; TABLES Gender Age Alcohol_use;
Would I be changing anything there, since it is the frequency table that is affected? Or do I need to add some conditions in the data section of the program?
Any help would be great. Please let me know if you need any clarification on my question. Thanks!