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: interquartile range


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
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: [email protected]
[mailto:[email protected]] Im Auftrag von martine etienne
Gesendet: Dienstag, 17. August 2010 16:35
An: [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index