This function mimics the functionality of
the mode function in Stata. It does this by
calculating the modal category of a vector
and replacing tied categories with a "."
to represent a single mode does not exist.
Usage
statamode(x)
Arguments
x
a numeric vector, missing values are allowed
Value
The modal value of a vector if a unique mode exists, else "."