I think Tony is referring to a thread on fractional medians started by Taggert J Brooks. I see the questions in that thread as being quite different.
Nick
[email protected]
Lachenbruch, Peter [Tony]
Didn't we have a similar discussion last week - there was a modification of the percentile command - I think Nick Cox contributed to the discussion.
Martin Weiss
To break the ties you are complaining about, Jeph`s solution sounds good to
me. Also note http://www.stata.com/statalist/archive/2007-05/msg00767.html
Jeph Herrin
What you want is a bit strange, but here is how I would do it:
sort myvar
keep if _n<0.75*_N
zeynep elitaş wrote:
> Thanks for help, but this does not solve my problem. As a simple
> example, lets assume we have a data set containing five 6's and five
> 7's. so the sample size is 10. Now if I wanted to keep the data values
> below the 75 th percentile, I would roughly have 7 observations
> remaining. However, following your suggestion I end up keeping all the
> observations.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/