Cargando…

Validation of “sasLM,” an R package for linear models with type III sum of squares

The general linear model (GLM) describes the dependent variable as a linear combination of independent variables and an error term. The GLM procedure of SAS(®) and the “car” package in R calculate the type I, II, or III ANOVA (analysis of variance) tables. In this study, we validated the newly-devel...

Descripción completa

Detalles Bibliográficos
Autores principales: Sunwoo, Jung, Kim, Hyungsub, Choi, Dohyun, Bae, Kyun-Seop
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Korean Society for Clinical Pharmacology and Therapeutics 2020
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7327187/
https://www.ncbi.nlm.nih.gov/pubmed/32656159
http://dx.doi.org/10.12793/tcp.2020.28.e9
_version_ 1783552490939088896
author Sunwoo, Jung
Kim, Hyungsub
Choi, Dohyun
Bae, Kyun-Seop
author_facet Sunwoo, Jung
Kim, Hyungsub
Choi, Dohyun
Bae, Kyun-Seop
author_sort Sunwoo, Jung
collection PubMed
description The general linear model (GLM) describes the dependent variable as a linear combination of independent variables and an error term. The GLM procedure of SAS(®) and the “car” package in R calculate the type I, II, or III ANOVA (analysis of variance) tables. In this study, we validated the newly-developed R package, “sasLM,” which is compatible with the GLM procedure of SAS(®). The “sasLM” package was validated by comparing the output with SAS(®), which is the current gold standard for statistical programming. Data from ten books and articles were used for validation. The results of the “sasLM” and “car” packages were compared with those in SAS(®) using 194 models. All of the results in “sasLM” were identical to those of SAS(®), whereas more than 20 models in “car” showed different results from those of SAS(®). As the results of the “sasLM” package were similar to those in SAS(®) PROC GLM, the “sasLM” package could be a viable alternative method for calculating the type II and III sum of squares. The newly-developed “sasLM” package is free and open-source, therefore it can be used to develop other useful packages as well. We hope that the “sasLM” package will enable researchers to conveniently analyze linear models.
format Online
Article
Text
id pubmed-7327187
institution National Center for Biotechnology Information
language English
publishDate 2020
publisher Korean Society for Clinical Pharmacology and Therapeutics
record_format MEDLINE/PubMed
spelling pubmed-73271872020-07-10 Validation of “sasLM,” an R package for linear models with type III sum of squares Sunwoo, Jung Kim, Hyungsub Choi, Dohyun Bae, Kyun-Seop Transl Clin Pharmacol Original Article The general linear model (GLM) describes the dependent variable as a linear combination of independent variables and an error term. The GLM procedure of SAS(®) and the “car” package in R calculate the type I, II, or III ANOVA (analysis of variance) tables. In this study, we validated the newly-developed R package, “sasLM,” which is compatible with the GLM procedure of SAS(®). The “sasLM” package was validated by comparing the output with SAS(®), which is the current gold standard for statistical programming. Data from ten books and articles were used for validation. The results of the “sasLM” and “car” packages were compared with those in SAS(®) using 194 models. All of the results in “sasLM” were identical to those of SAS(®), whereas more than 20 models in “car” showed different results from those of SAS(®). As the results of the “sasLM” package were similar to those in SAS(®) PROC GLM, the “sasLM” package could be a viable alternative method for calculating the type II and III sum of squares. The newly-developed “sasLM” package is free and open-source, therefore it can be used to develop other useful packages as well. We hope that the “sasLM” package will enable researchers to conveniently analyze linear models. Korean Society for Clinical Pharmacology and Therapeutics 2020-06 2020-06-24 /pmc/articles/PMC7327187/ /pubmed/32656159 http://dx.doi.org/10.12793/tcp.2020.28.e9 Text en Copyright © 2020 Translational and Clinical Pharmacology https://creativecommons.org/licenses/by-nc/4.0/ It is identical to the Creative Commons Attribution Non-Commercial License (https://creativecommons.org/licenses/by-nc/4.0/).
spellingShingle Original Article
Sunwoo, Jung
Kim, Hyungsub
Choi, Dohyun
Bae, Kyun-Seop
Validation of “sasLM,” an R package for linear models with type III sum of squares
title Validation of “sasLM,” an R package for linear models with type III sum of squares
title_full Validation of “sasLM,” an R package for linear models with type III sum of squares
title_fullStr Validation of “sasLM,” an R package for linear models with type III sum of squares
title_full_unstemmed Validation of “sasLM,” an R package for linear models with type III sum of squares
title_short Validation of “sasLM,” an R package for linear models with type III sum of squares
title_sort validation of “saslm,” an r package for linear models with type iii sum of squares
topic Original Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7327187/
https://www.ncbi.nlm.nih.gov/pubmed/32656159
http://dx.doi.org/10.12793/tcp.2020.28.e9
work_keys_str_mv AT sunwoojung validationofsaslmanrpackageforlinearmodelswithtypeiiisumofsquares
AT kimhyungsub validationofsaslmanrpackageforlinearmodelswithtypeiiisumofsquares
AT choidohyun validationofsaslmanrpackageforlinearmodelswithtypeiiisumofsquares
AT baekyunseop validationofsaslmanrpackageforlinearmodelswithtypeiiisumofsquares