Good morning
I tried to find an answer to my (apparently) easy question on the forum, but probably it is so easy that nobody else asked for that in the past...
Forgive me.
Anyway, I have a dataset with a lot of potential outliers; I managed that issue winsorizing, but a referee asked me to show the results convenienttly "trimming" the dataset instead of winsorizing.
I did it manually, but I'd like to use a routine for several reasons.
What I really need is something that gives me (for a long list of variables) new variables where only the values between the 5th and the 95th percentile have the original values, while the other observations are transformed into missing values.
I am using STATA11
Thanks a lot for any suggestions
Simone
Related Posts with Percentiles and data trimming
Calculating Rolling Statistics for Panel Data With a Varying Window of ObservationHello Statalist, I would like to create some code which can calculate various statistics (moving a…
How to test Interaction in Logistic Regression with categorical independent variables (1 is dummy, other one has 4 categories)?I am trying to test for interaction effect in my logistic model where outcome is dummy and the two i…
PVAR vs. Arellano-Bond estimationHello all, I understand that both PVAR and Arellano-Bond estimation are dynamic panel methods, and …
PARAMED code for a continuous treatment and a continuous mediator, how to set a0() a1() and m()Hi, I am using the PARAMED package for my mediation analysis for a count DV. The code is working, bu…
ivreg2 panel data analysis with dummy control variablesDear STATA Community, i am estimating following model using panel data with dummy control variables …
Subscribe to:
Post Comments (Atom)
0 Response to Percentiles and data trimming
Post a Comment