I'd like to find the median within each tertile of my dataset (0-33.33%, 33.34-66.67%, 66.68-100%). I know what the values of the tertiles are (33.33=5, 66.67=18) and the min and max in my dataset (0.2, 96). Is there a way to write code to get the three medians? I might be overthinking this. Any help is much appreciated. Thanks!
Tertile medians would be the same as if you split the data into 6 groups, the boundary between groups 1 and 2 being the median of the lower tertile, and so on.
Tertile medians would be the same as if you split the data into 6 groups, the boundary between groups 1 and 2 being the median of the lower tertile, and so on.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.