ArticlePDF Available

ANOVA for unbalanced data: Use type II instead of type III sums of squares

Authors:

Abstract

Methods for analyzing unbalanced factorial designs can be traced back to Yates (1934). Today, most major statistical programs perform, by default, unbalanced ANOVA based on Type III sums of squares (Yates's weighted squares of means). As criticized by Nelder and Lane (1995), this analysis is founded on unrealistic models—models with interactions, but without all corresponding main effects. The Type II analysis (Yates's method of fitting constants) is usually not preferred because of the underlying assumption of no interactions. This argument is, however, also founded on unrealistic models. Furthermore, by considering the power of the two methods, it is clear that Type II is preferable.
Statistics and Computing
April 2003, Volume 13, Issue 2, pp 163-167
ANOVA for unbalanced data:
Use Type II instead of Type III
sums of squares
Øyvind Langsrud
According to the policy of Springer this is an accepted manuscript version of the article.
The final publication is available at Springer via
http://dx.doi.org/10.1023/A:1023260610025
... Thus, the mice with locomotor values falling into the first quartile were classified as non-sensitized and those with locomotor activity values falling above the first quartile were considered sensitized animals. Given the distinct number of mice in the sensitized and non-sensitized groups we used sums of square type II in the ANOVA model (Langsrud 2003). This analysis was conducted using the software R version 4.3.2 ...
Article
Full-text available
Rationale Exercise attenuates addictive behavior; however, little is known about the contribution of exercise duration to this positive effect. The Renin Angiotensin System (RAS) has been implicated both in addictive responses and in the beneficial effects of exercise; though, its role in the advantageous effects of exercise on toluene-induced addictive responses has not been explored. Objectives To evaluate the impact of different exercise regimens in mitigating the expression of toluene-induced locomotor sensitization and to analyze changes in RAS elements’ expression at the mesocorticolimbic system after repeated toluene exposure and following voluntary wheel running in toluene-sensitized animals. Methods Toluene-induced addictive-like response was evaluated with a locomotor sensitization model in mice. Toluene-sensitized animals had access to running wheels 1, 2, 4 or 24 h/day for 4 weeks; thereafter, locomotor sensitization expression was evaluated after a toluene challenge. RAS elements (ACE and ACE2 enzymes; AT1, AT2 and Mas receptors) expression was determined by Western blot in the VTA, NAc and PFCx of toluene-sensitized mice with and without exercise. Results Individual differences in toluene-induced locomotor sensitization development were observed. Access to wheel running 1 and 2 h/day reduced but 4 and 24 h/day completely blocked locomotor sensitization expression. Repeated toluene exposure changed RAS elements’ expression in the VTA, NAc and PFCx, while exercise mainly modified ACE and AT1 in air-exposed and toluene-sensitized mice. Conclusions Inhalant-exposed animals show different sensitization phenotypes. Exercise duration determined its efficacy to attenuate the addictive-like response. Toluene exposure and exercise each modified RAS, the latter also modifying toluene-induced changes.
... We then computed type-II ANOVA tables of the fixed effects of LMMs using Kenward-Roger approximation for the degrees of freedom in the R package car 53 . Type II sums of squares was selected to compute ANOVAs, following recommended protocol for assessing main effects individually in the absence of interactions 54,55 . Post hoc analyses were performed using estimated marginal means with Bonferroni adjustment of p-values, using the R package emmeans 56 . ...
Article
Full-text available
Reef-building corals live in highly hydrodynamic environments, where water flow largely controls the complex chemical microenvironments surrounding them—the concentration boundary layer (CBL). The CBL may be key to alleviate ocean acidification (OA) effects on coral colonies by partially isolating them. However, OA effects on coral CBL remain poorly understood, particularly under different flow velocities. Here, we investigated these effects on the reef-building corals Acropora cytherea, Pocillopora verrucosa, and Porites cylindrica. We preconditioned corals to a control (pH 8.0) and OA (pH 7.8) treatment for four months and tested how low flow (2 cm s⁻¹) and moderate flow (6 cm s⁻¹) affected O2 and H⁺ CBL traits (thickness, surface concentrations, and flux) inside a unidirectional-flow chamber. We found that CBL traits differed between species and flow velocities. Under OA, traits remained generally stable across flows, except surface pH. In all species, the H⁺ CBL was thin and led to lower surface pH. Still, low flow thickened H⁺ CBLs and increased light elevation of surface pH. In general, our findings reveal a weak to null OA modulation of the CBL. Moreover, the OA-buffering capacity by the H⁺ CBL may be limited in coral species, though low flow could enhance CBL sheltering.
... Models were otherwise implemented as described above. Models were then analysed with a Type II ANOVA (Langsrud, 2003) and an estimated marginal means (EMM) post hoc comparison implemented with a Tukeys adjustment for multiple comparisons in the emmeans package (Russell, 2019). ...
Article
Full-text available
Exploitation of different locomotor substrates in different ecological niches has driven the evolution of specialized morphological structures, and similar ecological demands, such as the structure of the microhabitat, often lead to convergent or parallel evolution. The evolution of adhesive toepads in geckos remains understudied because of the paucity of phylogenetically‐informed investigations of candidate clades exhibiting purported incipient expression of these (i.e. species having evolved some, but not all, parts of the complex adhesive system of pad‐bearing geckos). Using Cyrtodactylus, a speciose genus with well‐established ecotypes, we tested the hypothesis that microhabitats that require more climbing will lead to the acquisition of incipient adhesive morphology. We measured subdigital scale area, a proxy for adhesive toepad evolution, and quantified subdigital scale shape for 77 of the 354 described species, including at least one representative of each ecotype. Subdigital scale area increased from terrestrial through generalist and saxicoline (rock‐dwelling) to arboreal ecotypes, with subdigital scale shape evolving from ancestral conditions for padless lizards to lateromedially expanded lamella‐like scales only in the arboreal ecotypes. This significant link between phenotype and environment supports the contention that scansorial, and particularly arboreal, Cyrtodactylus ecotypes have evolved incipiently expressed adhesive toepads. This highlights the suitability of this genus as a model system for studying the ecology and evolution of adhesive toepads as well as being a promising candidate for research on adaptive radiations. Read the free Plain Language Summary for this article on the Journal blog.
... leading to X~SizeClassþTraining) and the statistical significance of the two models' main factors were investigated with type II ANOVAs (Wald F tests for Gaussian family models and Wald chi-square tests for the other models). Indeed, type II SS should be preferably used with unbalanced designs when there is no significant interaction, as it is more powerful than type III SS in this context (Landsheer & Wittenboer, 2015;Langsrud, 2003). Therefore, in this study, type II ANOVAs were performed on all models where only main effects were incorporated. ...
... Due to the irregular distribution of replicates between studies, this factor was unbalanced. In order to account for this aspect, type II sum of squares was employed in the analysis of variance performed (Langsrud, 2003). Other independent variables that we gathered were experiment duration and copepod population sampled. ...
... If the default Anova (type 2) provided a significant interaction, then the model was run again as a type 3. The latter is preferred in the presence of a significant interaction (Langsrud 2003). Where significant differences were detected, post-hoc Tukey pairwise comparisons were conducted via the emmeans model function of the 'emmeans' package. ...
Article
Acorn production in oak (Quercus spp.) shows considerable inter-annual variation, known as masting, which provides a natural defence against seed predators but a highly-variable supply of acorns for uses such as in commercial tree planting each year. Anthropogenic emissions of greenhouse gases have been very widely reported to influence plant growth and seed or fruit size and quantity via the ‘fertilisation effect’ that leads to enhanced photosynthesis. To examine if acorn production in mature woodland communities will be affected by further increase in CO2, the contents of litter traps from a Free Air Carbon Enrichment (FACE) experiment in deciduous woodland in central England were analysed for numbers of flowers and acorns of pedunculate oak (Quercus robur L.) at different stages of development and their predation levels under ambient and elevated CO2 concentrations. Inter-annual variation in acorn numbers was considerable and cyclical between 2015 and 2021, with the greatest numbers of mature acorns in 2015, 2017 and 2020 but almost none in 2018. The numbers of flowers, enlarged cups, immature acorns, empty acorn cups, and galls in the litter traps also varied amongst years; comparatively high numbers of enlarged cups were recorded in 2018, suggesting Q. robur at this site is a fruit maturation masting species (i.e., the extent of abortion of pollinated flowers during acorn development affects mature acorn numbers greatly). Raising the atmospheric CO2 concentration by 150 μL L−1, from early 2017, increased the numbers of immature acorns, and all acorn evidence (empty cups + immature acorns + mature acorns) detected in the litter traps compared to ambient controls by 2021, but did not consistently affect the numbers of flowers, enlarged cups, empty cups, or mature acorns. The number of flowers in the elevated CO2 plots’ litter traps was greater in 2018 than 2017, one year after CO2 enrichment began, whereas numbers declined in ambient plots. Enrichment with CO2 also increased the number of oak knopper galls (Andricus quercuscalicis Burgsdorf). We conclude that elevated CO2 increased the occurrence of acorns developing from flowers, but the putative benefit to mature acorn numbers may have been hidden by excessive pre- and/or post-dispersal predation. There was no evidence that elevated CO2 altered masting behaviour.
... For each model, an F-distribution ANOVA table was generated. Hierarchical sums of squares were used in Procrustes coordinates models to account for the slightly unbalanced factors (Langsrud 2003). The pairwise() RRPP function then computed distances between pairs of species mean (1) logged centroid sizes, (2) Procrustes coordinates, and (3) Procrustes coordinates corrected for common and unique allometries (see Results). ...
Article
Traditional Dipodomys (sub)species identification uses geography, phenotype, and external/skull measurements. Such measurements are correlated with size and thus redundant. I assessed the value of scaled cranial shape, based on two‐dimensional landmarks (analyzed using geometric morphometric methods) in distinguishing Dipodomys taxa, and in summarizing their variation. My dataset includes 601 adult specimens from 20 species (49 operational taxonomic units ‐ OTUs) across 190 localities. Cranial shape was highly useful in classifying Dipodomys taxa without considering geography. The auditory bulla was the most variable region—taxa differed in its hypertrophy, accompanied by different degrees of nearby structure crowding. Cranial shape was weakly allometric, with no significant sexual dimorphism. Weak size dimorphism was detected. (Sub)specific taxonomy is not reflective of shape variation, as the number of subspecies per species is not associated with disparity. Shape had significant phylogenetic signal, but subspecies did not always cluster with conspecifics and species did not always cluster according to phylogenetic relationship/taxonomy. Shape variation was correlated with climate, and species differed in morphological disparity and degree of specialization, which may contribute to divergence in shape variation patterns from phylogeny. D. deserti was the most specialized species, diverging greatly from the genus mean; D. heermanni was the least specialized. This study provides new insights into morphological variation of North American keystone species, several of conservation interest, for example, D. heermanni berkeleyensis , D. h. dixoni , D. nitratoides brevinasus , and D. n. nitratoides .
Article
Full-text available
Nudge-based misinformation interventions are presented as cheap and effective ways to reduce the spread of misinformation online. However, despite online information environments typically containing relatively low volumes of misinformation, most studies testing the effectiveness of nudge interventions present equal proportions of true and false information. As the effectiveness of nudges can be highly context-dependent, it is imperative to validate the effectiveness of nudge-based interventions in environments with more realistic proportions of misinformation. The current study (N = 1387) assessed the effectiveness of a combined accuracy and social-norm nudge in simulated social-media environments with varying proportions of misinformation (50%, 20%, and 12.5%) relative to true and non-news-based (i.e., “social”) information. The nudge intervention was effective at improving sharing discernment in conditions with lower proportions of misinformation, providing ecologically valid support for the use of nudge-based interventions to counter misinformation propagation on social media.
Article
Dissatisfaction is expressed with aspects of the current exposition of linear models, including the neglect of marginality, unnecessary differences between models for finite and infinite populations, failure to distinguish different kinds of random terms, imposition of unnecessary and inconsistent constraints on parameters, and lack of an adequate notation for negative components of variance. The reformulation, exemplified for crossed and nested classifications of balanced data, and for simple orthogonal designed experiments, is designed to integrate finite and infinite populations, random and fixed effects, excess and deficit of variance, to avoid unnecessary constraints on parameters, and to lead naturally to interesting hypotheses about the model terms.
Article
A brief background of analysis of variance is given. Tests of significance for a two-factor situation are presented and discussed. The case of nonfixed factors and the role of interaction are examined. Several questions about the use of analysis of variance and tests of significance are posed and discussed. Alternative approaches are mentioned briefly.
Article
The objective of this article is to review existing methods for analyzing experimental design models with unbalanced data and to relate them to existing computer programs. The methods are distinguished by the hypotheses associated with the sums of squares which are generated. The choice of a method should be based on the appropriateness of the hypothesis rather than on computational convenience or the orthogonality of the quadratic forms. The sums of squares are described using the R ( ) notation as applied to the over-parameterized linear model, but the hypotheses are stated in terms of the full-rank cell means model. The zero-cell frequency situation is treated briefly.
Article
When the response variables have continuous distributions and the conditions are discrete, whether inherently or by design, then it is appropriate to analyze the data using analysis of variance (ANOVA). When data conform to a complete, balanced design (equal numbers of observations in each experimental treatment), it is straightforward to conduct an ANOVA. This paper provides an overview of the consequences of lack of balance and gives some guidelines to analyzing unbalanced data for models involving fixed effects. -from Authors
Article
The responses to a recent paper by Dallal in this journal are evaluated by reference to the ideas of Frank Yates. It is concluded that much unnecessary complication has been introduced into the computer analysis of linear models by (1) the imposition of constraints on parameters, (2) neglect of marginality relations in forming hypotheses, and (3) confusion between the form of noncentrality parameters and hypotheses.
Article
Drug development is a highly regulated business. Statistics plays an important part in measuring and reporting the efficacy and tolerability of pharmaceuticals and this is reflected in American, European, Japanese and international guidelines of some considerable detail which cover the way in which clinical trials are to be planned, run and analysed. The dominant framework for analysis is frequentist but Bayesian approaches are becoming more popular. Some controversial issues in drug development are considered in the light of the International Conference on Harmonisation's 1999 international statistical guidelines to see whether any Bayes-requentist consensus is possible.