Cited by 394Statistical Methods and Bayesian InferenceAgriculture, Soil, Plant ScienceSpatial and Panel Data Analysis

Nested by design: model fitting and interpretation in a mixed model era

Open access
Schielzeth, Holger, Nakagawa, Shinichi·2013·Methods in Ecology and Evolution

Abstract

Summary Nested data structures are ubiquitous in the study of ecology and evolution, and such structures need to be modelled appropriately. Mixed‐effects models offer a powerful framework to do so. Nested effects can usually be fitted using the syntax for crossed effects in mixed models, provided that the coding reflects implicit nesting. But the experimental design (either nested or crossed) affects the interpretation of the results. The key difference between nested and crossed effects in mixed models is the estimation and interpretation of the interaction variance. With nested data structures, the interaction variance is pooled with the main effect variance of the nested factor. Crossed designs are required to separate the two components. This difference between nested and crossed data is determined by the experimental design (thus by the nature of data sets) and not by the coding of the statistical model. Data can be nested by design in the sense that it would have been technically feasible and biologically relevant to collect the data in a crossed design. In such cases, the pooling of the variances needs to be clearly acknowledged. In other situations, it might be impractical or even irrelevant to apply a crossed design. We call such situations naturally nested, a case in which the pooling of the interaction variance will be less of an issue. The interpretation of results should reflect the fact that the interaction variance inflates the main effect variance when dealing with nested data structures. Whether or not this distinction is critical depends on the research question and the system under study. We present mixed models as a particularly useful tool for analysing nested designs, and we highlight the value of the estimated random variance as a quantity of biological interest. Important insights can be gained if random‐effect variances are appropriately interpreted. We hope that our paper facilitates the transition from classicalanovas to mixed models in dealing with categorical data.

Integrity signals

Registry

Crossref · 10.1111/j.2041-210x.2012.00251.x

Cites

58 of 58 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Claims the paper makes

0 of 35 cited sources checked · 0 supported · 0 flagged

  • Interpretationreasoning

    Biological sources of interaction variance cannot disappear when a model omits interaction because total variance in the response is unaffected by model modification.

    “However, biological sources of interaction variance cannot disappear because the total variance in the response values is unaffected by our modification to the model.”
    Quote in the paperSubstantial claim
  • Interpretationreasoning

    For a nested design, it is impossible to tell whether variation among sites reflects average site differences, site-specific treatment effects, or both.

    “We cannot decide if the between-site variation that we estimate is caused by average differences among sites (e.g.productivity differences) and/or by differences among sites in the effect of the treatment.”
    Quote in the paperSubstantial claim
  • Interpretationreasoning

    The experimental design, whether nested or crossed, affects how results are interpreted.

    “But the experimental design (either nested or crossed) affects the interpretation of the results.”
    Quote in the paperSubstantial claim
  • Premisereasoning

    A two-way factorial design allows up to four biological variance components to be estimated.

    “In a two-way factorial design (such as a classical two-way ANOVA scenario), there are four biological sources of variance that can potentially be estimated (Fig. 2).”
    Quote in the paperNot a substantial claim
  • Interpretationreasoning

    If the interaction term is removed from a crossed model, the interaction variance is not estimated by the model.

    “If we decide to remove the interaction term from the model, because we consider it of little biological interest, then the interaction variance will not be estimated by the model.”
    Quote in the paperSubstantial claim
  • Classified as probably not a substantial claim. 15
  • May combine two claims. 16
  • Probably not a substantial claim: may not pass S4 (based).

    Premisenone given

    Unbalanced designs are common in ecology and evolution, especially in field studies where balance is difficult.

    “But unbalanced designs are common in ecology and evolution, in particular in field studies where it is often difficult to ensure perfect balance.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Premisecitation

    Nested designs do not allow separate estimation of interaction variance, whereas crossed designs do.

    “Nested designs are more constrained than crossed (factorial) designs in that the former does not allow the separate estimation of interaction variance (Ryan 2007), while a crossed design does allow such estimation.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites Ryan 2007

      Not checked in the free run.

  • May combine two claims.

    Premisecitation

    A classical linear model with nested fixed effects can fit nested designs, but its degrees of freedom must be adjusted to the design to obtain the correct mean sum of squares.

    “Nested designs can be fitted in a classical linear model with nested fixed effects, but this task is not entirely trivial, because the degrees of freedom need to be adapted to the experimental design in order to get the correct mean sum of squares (Underwood 1997;Quinn & Keough 2002;Gelman 2005).”
    Quote in the paperSubstantial claim0 of 3 sources checked
    • cites Underwood 1997

      Not checked in the free run.

    • cites Quinn & Keough 2002

      Not checked in the free run.

    • cites Gelman 2005

      Not checked in the free run.

  • May combine two claims.

    Interpretationreasoning

    In both a crossed design without interaction and a nested design, three variance components are estimated, but interaction variance increases residual in the crossed case and inflates the nested factor main effect in the nested case.

    “In both cases, we will get estimates of three variance components, but in one situation (crossed design without interaction), the interaction variance will increase the residual variance, while in the other (nested design) the interaction variance will inflate the main effect variance of the nested factor (Table 3).”
    Quote in the paperSubstantial claim
  • Classified as probably not a substantial claim.

    Premisecitation

    Nested data structures are common in ecology and evolution.

    “Data sets with nested data structures are very common in evolutionary and ecological studies (Quinn & Keough 2002;Ke´ry 2010).”
    Quote in the paperSubstantial claim0 of 2 sources checked
    • cites Quinn & Keough 2002

      Not checked in the free run.

    • cites Ke´ry 2010

      Not checked in the free run.

  • Classified as probably not a substantial claim.

    Interpretationnone given

    Classical experimental designs can be treated within a broader linear modelling framework instead of as a separate category.

    “The section aims to show that classical experimental designs can be conceptualized in a more general linear modelling framework, rather than being something distinctly different.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationnone given

    In crossed but unbalanced designs, separation of variance is less precise, and more so with greater unbalance.

    “In such cases, the separation of the variance will be less precise, and the more so, the more unbalanced the design.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim.

    Premisenone given

    Classifying a study as nested or crossed is independent of whether its factors are modelled as fixed or random.

    “This basic categorization of the study design does not depend on whether factors are fitted as fixed or random effects, a distinction that we will discuss in more detail in the second half of the paper.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based). May combine two claims.

    Premisereasoning

    Implicit nesting through appropriate coding ensures design matrices are built correctly and uncertainty of fixed effects is estimated appropriately.

    “Implicit nesting through appropriate coding (as discussed in section Nesting and study design) ensures that the design matrices are built correctly and that the uncertainty of the fixed effects is estimated appropriately.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Premisecitation

    Random-factor estimates are pulled toward the population mean (shrinkage), whereas fixed-factor estimates depend only on observations at each level.

    “Unlike fixed factors that are estimated purely based on observations made for a particular factor level, the estimates of random factors are influenced by the population mean; in fact, their estimates are drawn towards the population mean ('shrinkage', see Table 2; McCulloch & Neuhaus 2005;Snijders & Bosker 2011).”
    Quote in the paperSubstantial claim0 of 2 sources checked
    • cites McCulloch & Neuhaus 2005

      Not checked in the free run.

    • cites Snijders & Bosker 2011

      Not checked in the free run.

  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisenone given

    Random effects are often used to control for correlated structure or dependencies between data, known as pseudoreplication.

    “Random effects are often used for controlling for correlated structure in the data, that is, dependencies between data ('pseudoreplication').”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Interpretationnone given

    Fitting random factors as fixed factors avoids distributional assumptions altogether.

    “In some circumstances, it might also help to fit these 'random factors' as fixed factors instead, which avoids distributional assumptions altogether.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S2 (checkable), S3 (load-bearing), S4 (based).

    Interpretationnone given

    Important biological insight can be gained from evaluating the random-effect variances even if they are not the prime interest of the study.

    “Important biological insight can be gained from evaluating the randomeffect variances even if they are not the prime interest of the study.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Premisecitation

    It is possible to fit nested ANOVAs with two fixed effects, but this requires special consideration for estimating standard errors for the higher-level factor based on appropriate degrees of freedom.

    “It is also possible to fit nested ANOVAs with two fixed effects, but this case needs special consideration for the estimation of the standard errors for the higher-level factor that need to be based on the appropriate degrees of freedom (Gelman 2005).”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites Gelman 2005

      Not checked in the free run.

  • May combine two claims.

    Premisecitation

    Random-slope mixed models can handle repeated-measures data whether missing values make the design partially crossed or the design remains fully crossed.

    “Mixed models with random slopes (i.e.random-slope models) can also be applied to repeated-measures designs with missing data (partially crossed) or without missing data (fully crossed);”
    Quote in the paperSubstantial claim0 of 2 sources checked
    • cites Diaz-Uriarte 2002

      Not checked in the free run.

    • cites Schielzeth & Forstmeier 2009

      Not checked in the free run.

  • May combine two claims.

    Interpretationreasoning

    Without replications, block x treatment interaction variance is pooled with residual variance and cannot be estimated.

    “Without replications, the interaction variance is pooled with the residual variance; hence, it cannot be estimated.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S2 (checkable).

    Interpretationreasoning

    Because random-effect variances contain relevant biological information, they should be presented in published papers even if the main aim was to deal with correlated structures when estimating fixed effects.

    “Because random-effect variances (or, equivalently, standard deviation of the between-group variation) contain relevant biological information, they should be presented in published papers even if the main aim was to deal with correlated structures ('pseudoreplication') when estimating fixed effects.”
    Quote in the paperNot a substantial claim
    • Rests on an assumption: In ecological and evolutionary biology papers, random-effect variances are often not reported or interpreted, and interpretation is limited to fixed effects even when mixed models are used.
  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).

    Premisenone given

    A nested factor is usually regarded as conceptually random, even when the model treats it as fixed.

    “In a nested design, the nested factor is typically conceptually random, even though it might be fitted as a fixed effect (Factor 1 is a group-level predictor relative to Factor 2).”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationreasoning

    Nested sampling cannot change the biological sources of variance, but the sampling design affects the way in which sources of variance can be estimated from the data.

    “Nested sampling cannot change the biological sources of variance (they are part of the biological reality), but the sampling design affects the way in which sources of variance can be estimated from the data (see text for details).”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisenone given

    Nested and crossed effects serve as building blocks for more complex models.

    “Nested and (partially or fully) crossed effects can be considered the basic units of more complex models.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Premisecitation

    In practice, random effects are chosen when variance estimation is the main goal, and fixed effects when the mean treatment effect is of interest.

    “In practical applications, variables are modelled as random effects if the primary interest lies in estimating variances, while fixed factors are used for estimating the mean effect of a treatment (Merlo et al. 2005c).”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites Merlo et al. 2005c

      Not checked in the free run.

  • May combine two claims.

    Premisecitation

    The crossed North Carolina II design can separate maternal-effect and dominance variance, whereas these are confounded with dam variance in the nested North Carolina I design.

    “Unlike the nested North Carolina I design, the crossed North Carolina II design allows the separate estimation of maternal effect and dominance variance that are conflated with the dam variance in the North Carolina I design (Falconer & Mackay 1996;Lynch & Walsh 1998).”
    Quote in the paperNot a substantial claim0 of 2 sources checked
    • cites Falconer & Mackay 1996

      Not checked in the free run.

    • cites Lynch & Walsh 1998

      Not checked in the free run.

  • May combine two claims.

    Premisecitation

    Each random effect in a mixed model is modelled as a separate group-level model, with properties of a common distribution estimated by hyperparameters.

    “Each random effect in a mixed model is modelled as a separate group-level model (Gelman & Hill 2007), in the simplest case by assuming such effects at one level can be modelled as stemming from a common distribution and properties of this distribution are estimated by hyperparameters.”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites Gelman & Hill 2007

      Not checked in the free run.

  • Probably not a substantial claim: may not pass S2 (checkable), S3 (load-bearing).

    Premisecitation

    It is important to consider the potential for type I errors when testing a larger number of data-level predictors.

    “It is important to consider the potential for type I errors when testing a larger number of data-level predictors (Forstmeier & Schielzeth 2011).”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites Forstmeier & Schielzeth 2011

      Not checked in the free run.

  • Classified as probably not a substantial claim.

    Interpretationreasoning

    If the random-effect variance is large, collecting group-level predictors is promising because they have great potential to explain group-level variance.

    “If the randomeffect variance is large, however, it might be promising to collect information on group-level predictors because there is great potential that they explain group-level variance.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationcitation

    If the random-effect variance is low, there is little potential for strong group-level fixed effects, although they might still become significant with sufficient data.

    “If the random-effect variance is low, there is little potential for strong group-level fixed effects (although they might still become significant with sufficient data, Merlo et al. 2005c).”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites Merlo et al. 2005c

      Not checked in the free run.

  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).

    Interpretationnone given

    The assumption of a Gaussian random-effects distribution is likely to be fulfilled if the source of variation is polygenic with small average effect sizes.

    “The assumption of a Gaussian random-effects distribution is likely to be fulfilled if the source of variation is polygenic with small average effect sizes.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationreasoning

    Reducing residual variance tends to reduce standard errors and therefore improves estimates for group-level predictors.

    “A reduction of the residual variance is useful even if the main interest is in group-level predictors, as reduced residual variance tends to reduce the standard errors and therefore improves the estimates for group-level predictors.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).

    Premisenone given

    A blocking factor in a randomized block design is usually conceptually random, even if modelled as fixed.

    “In a randomized block design, the blocking factor is typically conceptually random, even though it might be fitted as a fixed effect (Treatment 2 is a data-level predictor).”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationcitation

    If the treatment is applied to a population of clonal lines, the random-effect variance captures genetic effects but also genotype by environment interactions, and is therefore biologically relevant.

    “If the treatment is applied to a population of clonal lines, for example, the random-effect variance would capture genetic effects, but also genotype by environment interactions (G 9 E) (Via & Lande 1985) and is therefore biologically relevant.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites Via & Lande 1985

      Not checked in the free run.

30 of 30
  • The paper relies on this without support.

    In ecological and evolutionary biology papers, random-effect variances are often not reported or interpreted, and interpretation is limited to fixed effects even when mixed models are used.

    “Random-effect variances are often not reported and therefore also not interpreted in ecological and evolutionary biology papers.”
    “Instead, the interpretation of statistical models is limited to the fixed effects, even if mixed models are fitted.”
  • The authors state this as an assumption.

    Nested factors will typically be fitted as random effects.

    “We assume that nested factors will typically be fitted as random effects.”
  • The authors state this as an assumption.

    When individual is fitted as a random or fixed effect, observations within individuals are sufficiently independent of each other.

    “By fitting individual as a random (or fixed) effect, we implicitly assume that observations within individuals are sufficiently independent of each other.”
  • The paper relies on this without support.

    Univariate linear models with Gaussian error distributions are the most widely used in ecology and evolution.

    “We have focused on univariate linear models with Gaussian error distributions, because these are most widely used in the fields of ecology and evolution.”
  • The paper relies on this without support.

    Statistical software converts whatever syntax is used into design matrices, and these are blind to whether data collection was nested or crossed.

    “Statistical software will convert whatever syntax is used into design matrices, and these are blind to nested or crossed data collection.”
  • The paper relies on this without support.

    Random effects are not estimated independently because they are affected by shrinkage, whereas fixed-effect levels of the same predictor are estimated independently.

    “The difference certainly matters for model fitting, as random effects are not estimated independently (they are affected by shrinkage), whereas fixed-effect levels of the same predictor are estimated independently of each other.”
  • The paper relies on this without support.

    Confidence intervals of variance components are not always provided by standard statistical software.

    “Confidence intervals of variance components are not always provided by standard statistical software, even though such uncertainty estimates would be very valuable for meta-analyses.”
7 of 7

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

  • Cross-fostering does not make chicks crossed with broods

    Minor

    The proposed transfer gives a brood chicks from multiple females, but it does not put any individual chick in more than one brood. Under the paper's own definition of nesting, chicks therefore remain nested within broods.

  • A subject-level treatment is called a data-level predictor

    Minor

    The example says treatment is applied to subjects and is an outer factor to each subject. With observations clustered within subjects, this is a subject-level predictor under the paper's stated distinction, not an observation-level predictor.

2 of 2

Cites

Flagged first, then by citations

Research works printed but not linked: 1

  1. Comstock R.E., 1952, Heterosis, 494

Cited by

Sorted by citations

Authors
Schielzeth, H., & Nakagawa, S.
Affiliations
  • Bielefeld University (DE)
  • University of Otago (NZ)
Corresponding author
Schielzeth, Holger
Venue
Methods in Ecology and Evolution
Publisher
Wiley
Published
2012-10-15
Volume
4
Issue
1
Pages
14-24
ISSN
2041-210X (ISSN-L)
OpenAlex
W2132496294
Cited by
394
References
58
Citations by year
2026: 32 · 2025: 34 · 2024: 40 · 2023: 41 · 2022: 43 · 2021: 25 · 2020: 45 · 2019: 31 · 2018: 34 · 2017: 26 · 2016: 14 · 2015: 12 · 2014: 10 · 2013: 6 · 2012: 1
FWCI
8.85
Type
journal article
Language
en
Open access
Locations
  • Methods in Ecology and Evolution (publishedVersion)
  • PUB – Publications at Bielefeld University (Bielefeld University) (submittedVersion)
  • Publikationen an der Universität Bielefeld (Universität Bielefeld) (submittedVersion)
Funders
Deutsche Forschungsgemeinschaft (SCHI 1188/1‐1)
Topics
  • Physical Sciences › Mathematics › Statistics and Probability › Statistical Methods and Bayesian Inference
  • Life Sciences › Agricultural and Biological Sciences › Ecology, Evolution, Behavior and Systematics › Agriculture, Soil, Plant Science
  • Social Sciences › Economics, Econometrics and Finance › Economics and Econometrics › Spatial and Panel Data Analysis
Keywords
nested data structures, mixed models, variance components, experimental design, model interpretation, categorical data analysis

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-09-28.

Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-09-28.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review