Hi all,
My problem is the following: I have a sheet with product categories, and each category has its respective prices for each month.
I want to clean the database by removing outliers, and the criteria that I thought was to drop the highest 1% and lowest 1% of the prices for each categories. This is equivalent to finding the 1% and 99% percentiles for each price distribution and dropping what is above and below them.
I tried cumul, pctile and centile functions but with no success, so I would really appreciate if someone can help. Thanks in advance!
Related Posts with Help with getting percentiles
cond() functionHi all! I have the following dilemma. I would like to create variables such that: if a local takes…
Need for a permutation test ?Hi, STATA people, I have 12000 observation. I want to randomly assign a fake treatment value of 1 t…
A loop to predict a log-modelFor the model, Y= Yt-1+X1t+X2t+X3t+e I want to create a loop to predict future values such that the …
Change of variable in one columnHi Stata users, I am trying to generate a variable to tell me when a change in values has occurred …
Simple by() and 'if' questionI'm working with some historical data on NFL players. I want to create a dummy variable indicating w…
Subscribe to:
Post Comments (Atom)
0 Response to Help with getting percentiles
Post a Comment