Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: AW: questions about panel data analysis and outliers.
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
st: AW: questions about panel data analysis and outliers.
Date
Mon, 17 May 2010 13:35:54 +0200
<>
" My second question is: how can I estimate correlation without outliers?"
You can qualify on the candidate variables not being outliers based on their
univariate distribution, if that is what you mean:
*************
sysuse auto, clear
qui su mpg,d
gen byte within=inrange(mpg, r(p5), r(p95))
qui su weight,d
gen byte within2=inrange(weight, r(p5), r(p95))
corr mpg weight if within & within2
corr mpg weight
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von amatoallah
ouchen
Gesendet: Montag, 17. Mai 2010 13:15
An: [email protected]
Betreff: st: questions about panel data analysis and outliers.
Good days Stata-listers,
I have a panel data (T=3 and N=45) and I want to perform a robust
regression, so I would like to know if it is ok if I cope with this
just as a simple cross sectional analysis (because the number of my
time serie is so thin).
what do you think about that?
My second question is: how can I estimate correlation without outliers?
Any help would be highly appreciated,
Thanks a lot in advance.
Ama.
*
* 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/