Re: [R] data vector to corresonding percentile ranks

2011-12-23 Thread R. Michael Weylandt
t; data vector x. >> >> My understanding, which may be incorrect, is that quantile() function >> returns the value of x for a specified percentile rank in a vector. >> >> Steve >> >> -Original Message- >> From: Sarah Goslee [mailto:sarah.gos.

Re: [R] data vector to corresonding percentile ranks

2011-12-23 Thread Sarah Goslee
Sarah Goslee [mailto:sarah.gos...@gmail.com] > Sent: Friday, December 23, 2011 12:11 PM > To: Steven Jones > Cc: r-help@r-project.org > Subject: Re: [R] data vector to corresonding percentile ranks > > I'm not sure I understand the question, but does quantile() do what you wa

Re: [R] data vector to corresonding percentile ranks

2011-12-23 Thread David Winsemius
On Dec 23, 2011, at 10:28 AM, Steve Jones 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,

Re: [R] data vector to corresonding percentile ranks

2011-12-23 Thread Sarah Goslee
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 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 tha

[R] data vector to corresonding percentile ranks

2011-12-23 Thread Steve Jones
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.