Re: [R] how to compute the inverse percentile of a given observation w.r.t. a reference distribution

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Wed, 25 May 2011 17:09:21 -0400

On May 25, 2011, at 3:42 PM, rudi wrote:

> Hi,
>
> can anyone help me to figure out how to compute the percentile of an
> individual observation with respect to a reference distribution.
>
> What I mean is. Let's assume I have a vector consisting of 10 numbers
> {3,5,8,1,9,5,4,3,5.5,7} and I want figure out what percentile the
> number 4.9 corresponds to. I failed to find any reference to such a
> function, although I would assume this must frequently be necessary.

?quantile

Talking about percentiles when you only have 10 numbers seems rather misleading, don't you think?

-- 
David Winsemius, MD
West Hartford, CT

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 25 May 2011 - 21:11:17 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 25 May 2011 - 21:40:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive