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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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