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, is already up and running.

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

st: AW: interquartile range

From   "Martin Weiss" <>
To   <>
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)


-----Ursprüngliche Nachricht-----
[] Im Auftrag von martine etienne
Gesendet: Dienstag, 17. August 2010 16:35
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!

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index