sysuse auto
gen himpg = mpg > 20 
bysort himpg : tab for rep78, row col 
Nick 
[email protected] 
Paolo Grillo
 
> I need to build a table with three variables (one row, a col and a 
> supercol) and I would like to put in each cell the frequency, the 
> relative frequency within its row and within its column of 
> each cell, as > it is possible in a -tabulate- twoway. 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/