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
Propensity Score Matching with multiple and continous treatmentsHello, I want to make a propensity score matching using four different treatments, which are all me…
Initial period variablesHi all, What is the best model to use when one has initial period variables such as log of initial …
Drop before calculating a meanHey guys ! If I have a dummy with 1 and zero wether a trade is a buy or sell and want to find out wh…
Mata matrix to variables using st_storeI've created a matrix of Halton Draws in Mata, and I'd like to use each column of the matrix as a va…
Help with SEM in StataHello! I am trying to run SEM on the model I have attached. I can't seem to figure out why it runs p…
Subscribe to:
Post Comments (Atom)
0 Response to Percentiles and data trimming
Post a Comment