Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: tabout - how to flip a table
From
Josef Montag <[email protected]>
To
[email protected]
Subject
st: tabout - how to flip a table
Date
Sat, 1 May 2010 20:19:44 -0400
Hi all,
i have a tabout line producing a table i need, except i would like to have it flipped so that vertical variable typesex becomes horizontal, so i can append other variables to the table
here is what i do:
tabout typesex using $outdir/race.tex, style(tab) c(mean lnwage se lnwage ) replace svy f(3 3) clab(Mean SE) lay(col) sum
to get this:
typesex Mean SE
H. men 3.036 (0.006)
H. women 2.700 (0.006)
Gays 2.984 (0.008)
Lesbians 2.880 (0.008)
Total 2.883 (0.004)
but i want typesex labels to be the column headers and means in one line below each header. basically i want four columns by typesex and other variables (meens and ses) listed below.
any idea how to do this?
thanks a lot, Josef
--
Josef Montag
Ph.D. Candidate
IEL - International Programme in
Institutions, Economics and Law,
Carlo Alberto, Torino.
Visiting Scholar, Cornell Law School.
Web: sites.google.com/site/josefmontag
Phone: +1(607)216-7950
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/