Message-ID: <CAM_vjukd-hM-RRNwdufQ4W4Ey6jo_mJng-h0erxrnzc5iSbCoQ@mail.gmail.com>
Date: 2011-12-23T17:10:32Z
From: Sarah Goslee
Subject: data vector to corresonding percentile ranks
In-Reply-To: <1324654082141-4228971.post@n4.nabble.com>
I'm not sure I understand the question, but does quantile() do what you want?
On Fri, Dec 23, 2011 at 10:28 AM, Steve Jones <sjones64 at jhmi.edu> wrote:
> I have a problem where I need to calculate the corresponding cohort
> percentile ranks for each of several variables.
>
> Essentially, what I need is a function that will calculate the
> distribution-free percentiles from each variable's data vector, returning a
> corresponding vector of percentiles:
>
> e.g.:
>
> percentile.my.data<-/function/(my.data)
>
>
> I tried to make ecdf() perform this task but was unsuccessful.
>
> I'd be grateful for any help or advice...
>
>
--
Sarah Goslee
http://www.functionaldiversity.org