Hi,
So I have a dataset containing two variables that take integer values, and want to create a table that for each variable splits the frequencies in to <30, 31-35, 36-40 and >40, but rather than just a count I want these frequencies as a percentage of the total number of observations for each variable.
so the table should look like this:
I also want to be able to export this table, ideally in to excel.
Any help would be very much appreciated! I have created a new variable that takes the value 1 to 4 for each var1 and var2 for each category, but can only seem to get a table like this without %s (and no way of exporting) or with%s but in separate tables.
Thank you!
So I have a dataset containing two variables that take integer values, and want to create a table that for each variable splits the frequencies in to <30, 31-35, 36-40 and >40, but rather than just a count I want these frequencies as a percentage of the total number of observations for each variable.
so the table should look like this:
var1 | var2 | |
% <30 | ||
% 31-35 | ||
% 36-40 | ||
%>40 |
Any help would be very much appreciated! I have created a new variable that takes the value 1 to 4 for each var1 and var2 for each category, but can only seem to get a table like this without %s (and no way of exporting) or with%s but in separate tables.
Thank you!
Comment