BookmarkSubscribeRSS Feed
nzrdufiu
Obsidian | Level 7

I want to create decile. 

For example I have data like this:

Residual

12

11

12

12

11

11

13

14

15

12

11

9

7

8

9

7

8

I want the following table in return:

D1 D2 D3 D4 D5 D6 D7 D8 D9 D10

15 13

Thank you.

1 REPLY 1
Reeza
Super User
There are two options, one is PROC RANK, which will group observations into groups, or PROC UNIVARIATE which will calculate the boundaries.

Here's a link to an example with PROC UNIVARIATE.
http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_univaria...

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 2881 views
  • 1 like
  • 2 in conversation