[R] percentile of a given value: is there a reverse quantile function?

2012-03-03 Thread drflxms
Dear all, I am familiar with obtaining the value corresponding to a chosen probability via the quantile function. Now I am facing the opposite problem I have a value an want to know it's corresponding percentile in the distribution. So is there a function for this as well? Thank you for your

Re: [R] percentile of a given value: is there a reverse quantile function?

2012-03-03 Thread Stephan Kolassa
?ecdf Best, Stephan On 03.03.2012 13:37, drflxms wrote: Dear all, I am familiar with obtaining the value corresponding to a chosen probability via the quantile function. Now I am facing the opposite problem I have a value an want to know it's corresponding percentile in the distribution. So

Re: [R] percentile of a given value: is there a reverse quantile function?

2012-03-03 Thread peter dalgaard
On Mar 3, 2012, at 13:37 , drflxms wrote: Dear all, I am familiar with obtaining the value corresponding to a chosen probability via the quantile function. Now I am facing the opposite problem I have a value an want to know it's corresponding percentile in the distribution. So is there a

Re: [R] percentile of a given value: is there a reverse quantile function?

2012-03-03 Thread drflxms
Thank you a lot Peter, Stefan and Pascal, for your quick an inspiring answers. ecdf(distribution)(value)-percentile was exactly, what I was looking for, as it is in my eyes somehow the equivalent to quantile(distribution, percentile)-value, isn't it. Greetings from sunny Munich, Felix Am