Hello,
I have some general questions:
I've read some documents and forum regarding trimming and winsorizing outliers, but i have a bit trouble understanding the concept.
I understood that they are used for either ignoring or removing the outliers when analyzing the summary statistics.
However, are they also applicable when we want to run regressions?
For instance, when we want to run regression without these outliers (let's say p1 and p99 of each group units), after generating trimming/winsorizing variables by the following code (for e.g.)
for winsorizing, OR something like
for trimming, can we run regression with these new variables? (like reg depvar varofinterest controlvar ...)
or does it make sense to run with these variables?
Maybe I misunderstood the whole concept of trimming and winsorizing..
Thank you in advance
P.S. I am encountering issues using winsor2 command and Im not sure if it's only me who is experiencing the issue.
I tried to do
so i tried other command:
which is working well.
Someone has any insights on this issue as well?
I have some general questions:
I've read some documents and forum regarding trimming and winsorizing outliers, but i have a bit trouble understanding the concept.
I understood that they are used for either ignoring or removing the outliers when analyzing the summary statistics.
However, are they also applicable when we want to run regressions?
For instance, when we want to run regression without these outliers (let's say p1 and p99 of each group units), after generating trimming/winsorizing variables by the following code (for e.g.)
Code:
winsor2 varofinterest, suffix(_w) p(1) by(group)
Code:
gen newvar=var if var>=r(p1) & var<=r(p99)
or does it make sense to run with these variables?
Maybe I misunderstood the whole concept of trimming and winsorizing..
Thank you in advance
P.S. I am encountering issues using winsor2 command and Im not sure if it's only me who is experiencing the issue.
I tried to do
Code:
. ssc install winsor2 connection timed out http://fmwww.bc.edu/repec/bocode/w/ either 1) is not a valid URL, or 2) could not be contacted, or 3) is not a Stata download site (has no stata.toc file). r(2); . winsor2 var, suffix(_w) cuts(1 99) by( group) command winsor2 is unrecognized r(199);
Code:
. winsor var, gen(var_w) p(0.01)
Someone has any insights on this issue as well?
Comment