BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I'm a new user of the EG4.1, so maybe there is a trivial solution to my problem, but I couldn't find it.

I'm trying to define qunatiles (let's say 20 quantiles) of a variable in a data set. I found that it can be easily done with "RANK" task.

However, my problem is that I'm using a sample where all the observations are weighted with frequency weights. Therefore, to obtain quantiles representative of my population, I have to indicate in some manner that I want to construct my quantiles taking into account these weights.

Appearently, the "Rank" task doesn't allow for this.

Does anybody know if there is a way in EG4 to define quantiles using weights?

Thank you!
1 REPLY 1
BruceBrad
Lapis Lazuli | Level 10

Proc univariate does this.

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 582 views
  • 0 likes
  • 2 in conversation