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 at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: interquartile range


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: interquartile range
Date   Tue, 17 Aug 2010 16:54:25 +0200

<> 

You can use -egen, iqr()- if you want a variable to hold the result for you,
or want it -by- a -varlist-, or use -tabstat-:

*************
sysuse auto, clear

bys foreign: egen myiqr=iqr(price)
l foreign price myiqr , noo sepby(foreign) h(30)

tabstat price, statistics( iqr ) by(foreign) columns(variables)
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von martine etienne
Gesendet: Dienstag, 17. August 2010 16:35
An: statalist@hsphsun2.harvard.edu
Betreff: st: interquartile range

Dear Statalisters,
Does anyone know what the command is to get the Interquartile range using 
STATA?  I know there is a command that gives you the IQR, upper and lower 
limits, median, etc..I just can't remember it!
thanks!
Martie


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