Re: [R] replicating SAS's proc rank procedure

2011-10-21 Thread riskcalc
Hi try this function ive written it should be self explantory but let me know if you have any problems. I've only been using R for a few eeeks so apologies if its not the most efficient! rankit2-function(rankvar,cuts,data,factor) { ranker-rankvar ranker-0 range-c(1:cuts) range2-range/cuts

Re: [R] replicating SAS's proc rank procedure

2011-10-21 Thread David L Carlson
77843-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of riskcalc Sent: Friday, October 21, 2011 4:06 AM To: r-help@r-project.org Subject: Re: [R] replicating SAS's proc rank procedure Hi try this function ive written it should