How can I create a three-way table in Stata but with percentages rather than frequencies?
For example:
table var mcdstr year if inlist(year,1900,1930) & ///
inlist(mcdstr,"BRONX","BROOKLYN","MANHATTAN","QUEENS","RICHMOND")
To my understanding the table
command does not have a built in frequency function.
As an alternative, I used the community-contributed command tabout
:
tabout lit mcdstr year if inlist(year,1910,1930) & ///
inlist(mcdstr,"BRONX","BROOKLYN","MANHATTAN","QUEENS","RICHMOND") ///
using table1.text, cells(freq col cum) format(0 1) ///
clab(No. Col_% Cum_%)
However the aforementioned syntax does not create a three-way table.