Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: median average deviation


From   "Eva Poen" <eva.poen@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: median average deviation
Date   Thu, 6 Dec 2007 16:48:04 +0000

Do you mean

sysuse auto, clear
qui sum price, detail
scalar median = r(p50)
gen deviation = abs(price - median)
qui sum deviation, detail
di "Median absolute deviation of the variable price is " r(p50)

drop deviation

?

Regards,
Eva

2007/12/6, Syed Gillani <gillani@shabakah.net.sa>:
> Hi,
>
> Is there a stata program doing median average deviation please?
>
> Gillani
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index