Created switch to identify cases that would result in NaNs, e.g. cases with a negative Hill coefficient, and cases with a min value (d) less than 0.5