Dear All,
anybody knows how to implement a Poisson process to detect outliers in Stata?
I tried to use this procedure (that I found in Stata FAQ) in order to
detect outliers:
sysuse auto, clear
sum mpg, detail
local u = r(p75) + (3/2) * (r(p75) - r(p25))
local l = r(p25) - (3/2) * (r(p75) - r(p25))
gen out = mpg<`l' | mpg>`u'
hist mpg /*histogram including outlier*/
hist mpg if !out /*histogram excluding outlier*
Is this the right procedure?
Thank you very much
Katia
*
* 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/