Dear Statalist,
I have many categorical variables called qual1, qual2, qual3, etc., that use all the same category (e.g. the values of 1 for "good", 2 for "average", 3 for "bad"). I want to get the frequency tabulation for each of them separately (i.e. not crosstabs), but I want them displayed in one table for many variables, say, eight at a time.
For example if I do
tab1 qual1 - qual8
I will get the frequency figures I want, but they show up as 8 tables instead of as 1 table. By the way, I don't want the "Percent" and "Cum" columns to show up, all I want is the "Freq" column. So, I want one table with 8 columns of data, if you see what I mean.
As an alternative I tried -tabcount- The nice thing about this is that it just gives me the frequency, and not the percent and cumulative numbers that I don't want. However, if you place more than one variable after -tabcount-, it will give you crosstabs and not the individual frequencies. So this won't work either.
This seems like a simple question so I am surprised I couldn't figure out how to do this in stata.
I really welcome your help on this!
Thanks,
Hewan
I have many categorical variables called qual1, qual2, qual3, etc., that use all the same category (e.g. the values of 1 for "good", 2 for "average", 3 for "bad"). I want to get the frequency tabulation for each of them separately (i.e. not crosstabs), but I want them displayed in one table for many variables, say, eight at a time.
For example if I do
tab1 qual1 - qual8
I will get the frequency figures I want, but they show up as 8 tables instead of as 1 table. By the way, I don't want the "Percent" and "Cum" columns to show up, all I want is the "Freq" column. So, I want one table with 8 columns of data, if you see what I mean.
As an alternative I tried -tabcount- The nice thing about this is that it just gives me the frequency, and not the percent and cumulative numbers that I don't want. However, if you place more than one variable after -tabcount-, it will give you crosstabs and not the individual frequencies. So this won't work either.
This seems like a simple question so I am surprised I couldn't figure out how to do this in stata.
I really welcome your help on this!
Thanks,
Hewan
Comment