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...

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 3315 views
  • 1 like
  • 2 in conversation