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 <[email protected]>:
> 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/