Friday, 15 August 2014

Stata calculating percentages using table command -



Stata calculating percentages using table command -

hi create 3 way table using table command. want percentages rather frequencies.

table var mcdstr year /// if inlist(year,1900,1930) & inlist(mcdstr,"bronx","brooklyn","manhattan","queens","richmond")

to understanding table command not have built in frequency function. therefore, used tabout command has built in percentage command. used command

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 command not create three-way table. wondering whther possible calculate percentages using table command or create three-way table using tabout.

stata

No comments:

Post a Comment