Notes on correctness of p-values when analyzing experiments using SAS and R
- PMID: 38032974
- PMCID: PMC10688674
- DOI: 10.1371/journal.pone.0295066
Notes on correctness of p-values when analyzing experiments using SAS and R
Erratum in
-
Correction: Notes on correctness of p-values when analyzing experiments using SAS and R.PLoS One. 2023 Dec 18;18(12):e0296235. doi: 10.1371/journal.pone.0296235. eCollection 2023. PLoS One. 2023. PMID: 38109432 Free PMC article.
Abstract
It is commonly believed that if a two-way analysis of variance (ANOVA) is carried out in R, then reported p-values are correct. This article shows that this is not always the case. Results can vary from non-significant to highly significant, depending on the choice of options. The user must know exactly which options result in correct p-values, and which options do not. Furthermore, it is commonly supposed that analyses in SAS and R of simple balanced experiments using mixed-effects models result in correct p-values. However, the simulation study of the current article indicates that frequency of Type I error deviates from the nominal value. The objective of this article is to compare SAS and R with respect to correctness of results when analyzing small experiments. It is concluded that modern functions and procedures for analysis of mixed-effects models are sometimes not as reliable as traditional ANOVA based on simple computations of sums of squares.
Copyright: © 2023 Al-Sarraj, Forkman. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Conflict of interest statement
The authors have declared that no competing interests exist.
Figures
References
-
- R Core Team. R: A language and environment for statistical computing. R foundation for statistical computing, Vienna, Austria. 2017. Available from https://www.r-project.org.
-
- SAS Institute SAS/STAT 14.1 User’s Guide. Cary, NC: SAS Institute; 2015.
-
- Searle SR. Linear Models. New York: Wiley; 1971.
-
- Searle SR. Linear models for unbalanced data. New York: Wiley; 1987.
-
- Herr DG. On the history of ANOVA in unbalanced, factorial designs: The first 30 years. Am Stat. 1986;40:265–270. doi: 10.1080/00031305.1986.10475409 - DOI
MeSH terms
LinkOut - more resources
Full Text Sources
