Hello, I am using
Code:
summarize co2eqavg3, detail
keep if inrange(co2eqavg3, r(p1), r(p98)) | missing(co2eqavg3)
to limit the values in the co2eqavg3 variable to be between 1st and 98th percentile and keep the missing values. However, when I run this, Stata says: (0 observations deleted). How is this possible? when I limit it to 1st and 99th percentile it removes some values, but when I set the upper limit to 98th percentile, it does not drop anything.