BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
davehalltwp
Quartz | Level 8

All the documentation mentions that by default,UNIVARIATE returns the lowest mode in case of a tie (ie, same number of occurrences).  I could find no mention of overriding the default and getting the higher in case of a tie.  Is that not possible?

 

Thanks...

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
There is a MODES option to specify all possibilities and then you could select the highest? Not ideal but fairly easy workaround.

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_univariate_syntax01.htm#pro...

View solution in original post

3 REPLIES 3
Reeza
Super User
There is a MODES option to specify all possibilities and then you could select the highest? Not ideal but fairly easy workaround.

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_univariate_syntax01.htm#pro...
davehalltwp
Quartz | Level 8
ah, did not think of that. I will try, and return to mark as solution. thank you, Reeza (you have helped me a lot in the past as well)...
davehalltwp
Quartz | Level 8
thank you, Reeza, that was a great solution to help me hit deadline...

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 3 replies
  • 1299 views
  • 6 likes
  • 2 in conversation