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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 423 views
  • 6 likes
  • 2 in conversation