Accounting for structure in education assessment data using hierarchical models