Skip to content
Prev 58954 / 398502 Next

Mode in case of discrete or categorial data

Dear Thomas,

I believe that which.max() will report only the first maximum in case of
ties [which is why I suggested the more awkward t == max(t)].

Regards,
 John

--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
--------------------------------