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: Tabstat - how to get min & max stats in one row to show range
From
sara khan <[email protected]>
To
[email protected]
Subject
st: Tabstat - how to get min & max stats in one row to show range
Date
Fri, 23 Apr 2010 12:17:40 +0100
Dear all
I am using tabstat and tabstatsmat.
I would like to display min and max in one row in brackets and the
same for p25 and p75.
Also, how can I change the stats labels so that p50 can be labelled median?
Here is what I have done so far:
tabstat mageuse if intab2==1, stat(n median min max p25 p75)
by(singlet) col(stat) f(%9.5g) save
qui tabstatmat B
matrix B = B'
matrix list B, f(%9.5g)
multiple: singleton: Total:
mageuse mageuse mageuse
N 337 2459 2796
p50 30 29 29
min 14 13 13
max 55 47 55
p25 25 24 24
p75 34 34 34
Many thanks
*
* 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/