Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: relative frequency in tables


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: relative frequency in tables
Date   Fri, 18 Nov 2005 17:47:48 -0000

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index