Bookmark and Share

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: AW: Tabstat - how to get min & max stats in one row to show range


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: Tabstat - how to get min & max stats in one row to show range
Date   Fri, 23 Apr 2010 13:30:24 +0200

<> 


You want to try the example in
http://repec.org/bocode/e/estout/estpost.html#estpost104 first.


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von sara khan
Gesendet: Freitag, 23. April 2010 13:18
An: [email protected]
Betreff: st: Tabstat - how to get min & max stats in one row to show range

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/


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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index