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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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