Analysis of binary data for the balanced one-way classification