Intraclass contingency tables