Hello,
I am new to STATA and cant seem to create a frequency table in the format that I need. I want to create a single two-way table that shows the frequency of multiple variables by age category if in a certain year.
example:
I have tried to use tabmult to do this, but it does not display age categories that have a count of zero, and it also displays the variables (which are all dummy variables) separated into 0 and 1. I want the table to show just the counts (variable = 1) in each age category. I have also tried tabm but when I put it by age category, I get an error saying "option by not allowed"
Any ideas?
I am new to STATA and cant seem to create a frequency table in the format that I need. I want to create a single two-way table that shows the frequency of multiple variables by age category if in a certain year.
example:
0-4 | 4-8 | 8-12 | .... | |
var1 | ||||
var2 | ||||
var3 | ||||
var4 | ||||
.... |
I have tried to use tabmult to do this, but it does not display age categories that have a count of zero, and it also displays the variables (which are all dummy variables) separated into 0 and 1. I want the table to show just the counts (variable = 1) in each age category. I have also tried tabm but when I put it by age category, I get an error saying "option by not allowed"
Any ideas?
Comment