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.

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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