I am trying to find the total frequency of a response across several variables. In my example, I have the following 11 categorical variables:
A1Q1, A2Q1, RFQ1, SE1Q1, SE2Q1, SE3Q1, SE4Q1, I1Q1, I2Q1, I3Q1, I4Q1
The possible responses for each of the variables is . (Missing), 0, 1, 2, 3, 4, and 5. I want to find the mode response, or the response that respondents pick across all eleven variables. I realize that I cannot use proc univariate, as these variables are not continuous; they are categorical.
Proc freq is not useful, as it presents all of the variables individually, and the frequency of a response (., 0, 1, 2, 3, 4, 5) for that particular variable, not the frequency of the response across all eleven variables (a total frequency).
I tried to use proc tabulate using this code:
proc tabulate data=six;
class A1Q1 A2Q1 RFQ1 SE1Q1 SE2Q1 SE3Q1 SE4Q1 I1Q1 I2Q1 I3Q1 I4Q1;
table A1Q1 A2Q1 RFQ1 SE1Q1 SE2Q1 SE3Q1 SE4Q1 I1Q1 I2Q1 I3Q1 I4Q1;
run;
However, this code just provides all of the proc freq tables squished into one. I have attached a photo of the truncated table to show what I mean. Is there any way for me to find the total number of missing responses, responses for 1, responses for 2, responses for 3, responses for 4, and responses for 5 across all eleven variables so that I do not manually have to sum up the frequency for a particular response of each of the variables? Thanks!
