| Download ( PDF | 2MB) | License: Creative Commons Attribution 4.0 |
Fixed or random? On the reliability of mixed‐effects models for a small number of levels in grouping variables
Oberpriller, Johannes
, de Souza Leite, Melina and Pichler, Maximilian
(2022)
Fixed or random? On the reliability of mixed‐effects models for a small number of levels in grouping variables.
Ecology and Evolution 12 (7), e9062.
Date of publication of this fulltext: 09 Nov 2022 11:34
Article
DOI to cite this document: 10.5283/epub.53176
Abstract
Biological data are often intrinsically hierarchical (e.g., species from different genera, plants within different mountain regions), which made mixed-effects models a common analysis tool in ecology and evolution because they can account for the non-independence. Many questions around their practical applications are solved but one is still debated: Should we treat a grouping variable with a low ...
Biological data are often intrinsically hierarchical (e.g., species from different genera, plants within different mountain regions), which made mixed-effects models a common analysis tool in ecology and evolution because they can account for the non-independence. Many questions around their practical applications are solved but one is still debated: Should we treat a grouping variable with a low number of levels as a random or fixed effect? In such situations, the variance estimate of the random effect can be imprecise, but it is unknown if this affects statistical power and type I error rates of the fixed effects of interest. Here, we analyzed the consequences of treating a grouping variable with 2-8 levels as fixed or random effect in correctly specified and alternative models (under- or overparametrized models). We calculated type I error rates and statistical power for all-model specifications and quantified the influences of study design on these quantities. We found no influence of model choice on type I error rate and power on the population-level effect (slope) for random intercept-only models. However, with varying intercepts and slopes in the data-generating process, using a random slope and intercept model, and switching to a fixed-effects model, in case of a singular fit, avoids overconfidence in the results. Additionally, the number and difference between levels strongly influences power and type I error. We conclude that inferring the correct random-effect structure is of great importance to obtain correct type I error rates. We encourage to start with a mixed-effects model independent of the number of levels in the grouping variable and switch to a fixed-effects model only in case of a singular fit. With these recommendations, we allow for more informative choices about study design and data analysis and make ecological inference with mixed-effects models more robust for small number of levels.
Alternative links to fulltext
Involved Institutions
Details
| Item type | Article | ||||
| Journal or Publication Title | Ecology and Evolution | ||||
| Publisher: | Wiley | ||||
|---|---|---|---|---|---|
| Place of Publication: | HOBOKEN | ||||
| Volume: | 12 | ||||
| Number of Issue or Book Chapter: | 7 | ||||
| Page Range: | e9062 | ||||
| Date | 24 July 2022 | ||||
| Institutions | Biology, Preclinical Medicine > Institut für Pflanzenwissenschaften > Group Theoretical Ecology (Prof. Dr. Florian Hartig) | ||||
| Identification Number |
| ||||
| Keywords | ANOVA; VARIANCE; ECOLOGY; OVERDISPERSION; FLEXIBILITY; ERROR; REML; fixed effects; generalized linear models; hierarchical models; mixed-effects models; multilevel models; random effects | ||||
| Dewey Decimal Classification | 500 Science > 580 Botanical sciences | ||||
| Status | Published | ||||
| Refereed | Yes, this version has been refereed | ||||
| Created at the University of Regensburg | Yes | ||||
| URN of the UB Regensburg | urn:nbn:de:bvb:355-epub-531766 | ||||
| Item ID | 53176 |
Download Statistics
Download Statistics