Hello stata-users,
I have come across code for trimming data globally but not what I am specifically looking for. I have two variables - age and a score. I want to remove the 1st and 99th percentile of the score within each age group. For instance, I'd like to remove the 1st and 99th percentile of the score for everyone that is 18 years old. Then I'd do the same for 19 years old in the dataset, and so on until 110 yo.
I have thought of creating age categories individually and then trimming but that is a lot of manual work (n=thousands). Are there any shortcuts in stata that I am unaware of?
Thank you.
Related Posts with Trimming percentiles within each age category
Please advice how to combine the rates of few years together and compare with another interval?Hello, I am trying to combine the yearly rates reported for 2007, 2008 and 2009 together to compare…
Help Needed: Simple Linear Regression and Significance QuestionsHi Everyone! I'm relatively new to STATA and statistics, so I thought I would come to this forum fo…
Show the formula that the -predict- command uses?Hello everyone! I'm new here and also very new to STATA, although I really enjoy statistics. I have…
Scatter plot with markers weighted by repeated coordinatesHello, I'm trying to create a scatter plot with weighted markers by overlapping values. I want the s…
New version of kmest on SSCThanks as always to Kit Baum, a new version of the kmest package is now available for download from …
Subscribe to:
Post Comments (Atom)
0 Response to Trimming percentiles within each age category
Post a Comment