Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
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/