Comparing categorical variables in clinical and experimental studies