Cargando…
Notes on correctness of p-values when analyzing experiments using SAS and R
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 exa...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Public Library of Science
2023
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10688674/ https://www.ncbi.nlm.nih.gov/pubmed/38032974 http://dx.doi.org/10.1371/journal.pone.0295066 |
_version_ | 1785152212430749696 |
---|---|
author | Al-Sarraj, Razaw Forkman, Johannes |
author_facet | Al-Sarraj, Razaw Forkman, Johannes |
author_sort | Al-Sarraj, Razaw |
collection | PubMed |
description | 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. |
format | Online Article Text |
id | pubmed-10688674 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2023 |
publisher | Public Library of Science |
record_format | MEDLINE/PubMed |
spelling | pubmed-106886742023-12-01 Notes on correctness of p-values when analyzing experiments using SAS and R Al-Sarraj, Razaw Forkman, Johannes PLoS One Research Article 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. Public Library of Science 2023-11-30 /pmc/articles/PMC10688674/ /pubmed/38032974 http://dx.doi.org/10.1371/journal.pone.0295066 Text en © 2023 Al-Sarraj, Forkman https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. |
spellingShingle | Research Article Al-Sarraj, Razaw Forkman, Johannes Notes on correctness of p-values when analyzing experiments using SAS and R |
title | Notes on correctness of p-values when analyzing experiments using SAS and R |
title_full | Notes on correctness of p-values when analyzing experiments using SAS and R |
title_fullStr | Notes on correctness of p-values when analyzing experiments using SAS and R |
title_full_unstemmed | Notes on correctness of p-values when analyzing experiments using SAS and R |
title_short | Notes on correctness of p-values when analyzing experiments using SAS and R |
title_sort | notes on correctness of p-values when analyzing experiments using sas and r |
topic | Research Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10688674/ https://www.ncbi.nlm.nih.gov/pubmed/38032974 http://dx.doi.org/10.1371/journal.pone.0295066 |
work_keys_str_mv | AT alsarrajrazaw notesoncorrectnessofpvalueswhenanalyzingexperimentsusingsasandr AT forkmanjohannes notesoncorrectnessofpvalueswhenanalyzingexperimentsusingsasandr |