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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of 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
  • 645 views
  • 6 likes
  • 2 in conversation