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

st: RE: Tab4ways


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Tab4ways
Date   Mon, 5 Dec 2005 08:21:13 -0000

Try -groups- from SSC. 

Nick 
[email protected] 

Paolo Grillo, MD

> I have a categorical variable -catt (6 categories)- that 
> identifies a group of different hospitals and  I have the 
> single denomination of each hospital, as well.
> I would like to create a table where row are the Hospital 
> denomination, but sorted  for -catt.
>  i.e.
> Public Hospital
>          Hospital 1
>          Hospital 2
>          etc
> Private Hospital
>           Hospital 3
>           Hospital 4
>          etc.
> 
> The question is really more complicated since I would 
> calculate in each cell the absolute freqency and percentage 
> of a third variable with a supercol (so I can't  use -table) 
> and I would not want to split the table in different tables 
> using - bysort.

*
*   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