[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Percentiles: Identify of smallest observation closet to percentile value
> I would be grateful if a StataList member could tell me how I can
> efficiently indentify the observation that is the smallest
> closest to a percentile value? Similarly, how can I generate a new
> variable that is the smallest observation closest to the percentile?
There is some fuzziness about this problem because of the possibility
of ties. But even when there is a unique answer, do you want
to put a single value into a variable?
It might help if you were to use a commonly accessible data
set -- e.g. the auto data -- to give examples of what you
want to do.
* For searches and help try: