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-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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
  • 986 views
  • 6 likes
  • 2 in conversation