This function calculates the variance to mean ratio (also known as dispersion index).
dispersion(x)
x
is a numeric vector.
Returns the dispersion index.