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

st: Tab4ways


From   [email protected]
To   [email protected]
Subject   st: Tab4ways
Date   Sun, 04 Dec 2005 23:26:50 +0100

Dear Statalist 
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.
Any suggestions?
 
Paolo Grillo, MD
Nephrologist 
Statisticians
EPOCA Research Center for Occupational, Clinical & Environmental Epidemiology
Department of Occupational and Environmental Health "Clinica L. Devoto"
University of Milan
Via San Barnaba 8
20122 Milano - ITALY
Tel: +39 02 503-20148
Fax: +39 02 503-20126
E-Mail [email protected]
*
*   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