Cross-Classified Multilevel Models in Education

Statistics
Introduced by
Multilevel modeling community (Raudenbush; Goldstein; Rasbash & Browne)
Year
1993
Type
Multilevel model with units cross-classified by two or more non-nested groupings
Family
Multilevel models

What does it do?

Cross-classified multilevel models extend hierarchical linear modeling to units that belong to two or more groupings that do not nest inside one another.

In education, a student may be classified by both school and neighborhood, because a school draws pupils from several neighborhoods and a neighborhood sends pupils to several schools. The models include a separate random effect for each classification, so they partition outcome variance among the crossed contexts instead of attributing it to a single hierarchy.

The intuition behind the method

Standard multilevel models assume a tidy hierarchy: students inside classrooms inside schools, with each unit belonging to exactly one parent. Educational data often do not fit this pattern. Two students at the same school may live in different neighborhoods, and two students in the same neighborhood may attend different schools, so school and neighborhood are crossed rather than nested. Forcing such data into one hierarchy discards information about one of the groupings and distorts the variance assigned to each level. A cross-classified model lets each student's outcome depend on both their school and their neighborhood, with a separate random effect for each, so the analysis can ask how much of the variation in outcomes lies between schools, between neighborhoods, and between students.

History

Raudenbush (1993) formulated a crossed random-effects model for unbalanced data, combining exchangeability ideas for between-unit and within-unit regression effects, and gave maximum likelihood estimates computed with the EM algorithm. The paper illustrated the model with neighborhood and school effects on educational attainment in Scotland and with classroom effects on mathematics learning in primary years in the United States. Goldstein (2011) covers multilevel models more broadly, and later software implementations are listed under inPractice.

When to use it

Use cross-classified models when units are genuinely grouped by two or more classifications that do not nest, such as students classified by both school and neighborhood, as in the neighborhood-and-school example in Raudenbush (1993), or students who change teachers and classrooms across years, which Raudenbush (1993) also treats as a crossed structure. They also suit examinees crossed with raters or markers. Do not use them when the groupings form a clean hierarchy, since a standard nested model is then sufficient. If one unit belongs to several units of the same classification, such as a pupil who attended several schools, the relevant feature is multiple membership, which can be added to a cross-classified model (MMCC). Assumptions to check before fitting: (1) the random effects of each classification are normally distributed with constant variance; (2) the random effects of each classification are independent of one another and of the covariates in the model; (3) the crossing structure is correctly identified, so that every student is correctly assigned to a unit in each classification; (4) for multiple-membership models, the membership weights are specified by the analyst on a defensible basis (for example, time spent in each school) and are non-negative and sum to one for each student. Each classification needs a reasonable number of distinct units, and the cross-tabulation of the classifications should not be extremely sparse. If a classification has very few units, its variance component will be poorly estimated. Check the sample design before fitting. These models need more computation than nested models, and they describe variance and association rather than the causal effect of any single context.

Limitations and considerations

  • Computationally heavier than nested models; large cross-classifications can be slow or hard to converge.
  • Reliable variance estimation needs adequate numbers of units in each classification.
  • Specifying and interpreting several crossed random effects is more complex and error-prone.
  • Remains observational: variance attributed to a context is not a causal effect of that context.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Correctly models non-nested grouping structures that purely hierarchical models cannot represent.
  • Partitions variance among crossed contexts (e.g., school vs. neighborhood), answering which matters more.
  • Avoids the bias from forcing crossed data into a single hierarchy or omitting a classification.
  • Extends naturally to multiple-membership structures for mobile students and multiple teachers.

Applications

  • Separating school effects from neighborhood effects on student educational attainment, as in Raudenbush's Scottish example.
  • Estimating classroom effects on mathematics learning across years, where students change teachers and classmates each year.
  • Modeling students who attended multiple schools over their school career, using the multiple-membership extension.
  • Crossing examinees with raters or markers in assessment data.
  • Studying area and institutional contexts simultaneously in longitudinal educational data.

How it works

How it works

1

The outcome for a student is modeled as a function of covariates, a separate additive random effect for each crossed classification (for example, a school effect and a neighborhood effect), and an individual residual. Because the classifications cross, a given school effect combines with many different neighborhood effects across students, and the reverse also holds.

Formula
y_{i(j_1,j_2)} = \beta_0 + \beta X_{i} + u^{(1)}_{j_1} + u^{(2)}_{j_2} + e_i
2

Each classification contributes its own normally distributed random effect with its own variance, alongside the individual residual variance. Estimating these variance components is the core task. It is more computationally demanding than estimation in nested models because the random effects do not follow a single hierarchy.

Formula
u^{(1)}_{j_1}\sim N(0,\sigma^2_1),\ u^{(2)}_{j_2}\sim N(0,\sigma^2_2),\ e_i\sim N(0,\sigma^2_e)
3

The estimated variances allow total outcome variation to be divided into the share attributable to each classification, such as between schools, between neighborhoods, and between students within them. This decomposition is the main substantive output, since it shows the relative size of each crossed context.

Formula
\text{share}_k = \dfrac{\sigma^2_k}{\sigma^2_1+\sigma^2_2+\sigma^2_e}\ \text{for each classification}
4

When one unit belongs to several units of the same classification, such as a pupil who attended several schools, the single random effect is replaced by a weighted sum of the effects of the units that pupil belongs to. The model specifies the weights for each membership. Combining this with the crossed structure gives a multiple-membership cross-classified (MMCC) model.

Formula
u_{(i)} = \sum_{j\in\text{units}(i)} w_{ij}\,u_j,\quad w_{ij}\ge 0,\ \sum_{j} w_{ij}=1\ \text{(weights set by the analyst)}

Common pitfalls

  • Modeling crossed data as if nested, which misattributes one classification's variance to another.
  • Omitting a relevant crossed classification (e.g., neighborhood), which can bias the school variance and standard errors in a direction that depends on how the classifications correlate.
  • Ignoring student mobility across schools when a multiple-membership structure is needed.
  • Attempting to estimate many crossed effects with too few units per classification, yielding unstable variances.

Frequently asked questions

What is the difference between nested and cross-classified structures?

In a nested structure each lower-level unit belongs to exactly one higher-level unit — every student is in one classroom, every classroom in one school — forming a strict hierarchy. In a cross-classified structure, units are simultaneously grouped by two or more classifications that cut across each other, so a school contains students from many neighborhoods and a neighborhood sends students to many schools. Nested models assign one random effect per hierarchy level; cross-classified models assign a separate random effect for each crossed classification.

When do I need a multiple-membership rather than a cross-classified model?

Multiple membership applies when a single unit belongs to more than one group within the same classification — a student who attended several schools, or who is taught by several teachers, over the period studied. Instead of one school effect, the model uses a weighted combination of the relevant school effects. Cross-classification concerns membership in different classifications (school and neighborhood). Real data often needs both at once, giving a combined multiple-membership cross-classified (MMCC) model.

Why not just pick the most important grouping and use a nested model?

Because doing so can misallocate variance and bias estimates. If you model only schools and ignore crossed neighborhoods, neighborhood variation is absorbed into the school effects or the residual. This can bias the school variance and the standard errors, and the direction of the bias depends on how the classifications correlate with each other and with the outcome. When two contexts genuinely cross, only a model with both random effects can separate their contributions; choosing one and dropping the other is a specification error, not a simplification.

Related methods

Sources

  1. Goldstein, H. (2011). Multilevel Statistical Models (4th ed.). Wiley.

    ISBN: 9780470748657
  2. Raudenbush, S. W. (1993). A crossed random effects model for unbalanced data with applications in cross-sectional and longitudinal research. Journal of Educational Statistics, 18(4), 321–349.

    Open DOI reference