Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: AW: Area under a percentile point


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: AW: Area under a percentile point
Date   Tue, 3 Feb 2009 19:13:17 -0000

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 
n.j.cox@durham.ac.uk 

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index