On the statistical analysis of rounded or binned data