Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[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" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von sara khan
Gesendet: Freitag, 23. April 2010 13:18
An: statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index