Help using Base SAS procedures

How to categorize data in SAS?

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 75
Accepted Solution

How to categorize data in SAS?

Hi everyone,

I have a data set, which I want to divide in quin-tiles. I mean, I want to separate 5 equal populated groups based on the value of

one of variables.

Is there a direct proc for that kind of purpose?

Thank you


Accepted Solutions
Solution
‎01-05-2013 03:48 PM
PROC Star
Posts: 7,468

Re: How to categorize data in SAS?

Posted in reply to Shayan2012

All Replies
Solution
‎01-05-2013 03:48 PM
PROC Star
Posts: 7,468

Re: How to categorize data in SAS?

Posted in reply to Shayan2012

Have you looked at proc rank?  Base SAS(R) 9.2 Procedures Guide

Super User
Posts: 3,250

Re: How to categorize data in SAS?

The UNIVARIATE procedure is also worth checking out as you can code for any number of equally-sized percentile groups.

Frequent Contributor
Posts: 75

Re: How to categorize data in SAS?

Posted in reply to Shayan2012

Thanks a lot Arthur,

Proc Rank exactly did what I wanted to do.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 1202 views
  • 5 likes
  • 3 in conversation