[R] replicating SAS's "proc rank" procedure
rdporto1
rdporto1 at terra.com.br
Wed Mar 14 20:26:33 CET 2007
Jiho.han,
> I wonder if there's a way to replicate SAS rank procedure where it ranks a
> variable by a certain number of groups. For example, it's very easy to
> calculate quintile rank in SAS, but I couldn't find the similar function in
> R.
>
> Does anyone know how to do this?
There are some functions you can try: rank(), order() or sort().
Actually, I didn't understand well your problem.
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
It can be a simple SAS code just to let us help you more.
Rogerio
More information about the R-help
mailing list