Jung Sunwoo, Hyungsub Kim, Dohyun Choi, Kyun-Seop Bae
{"title":"验证“sasLM”,一个R包线性模型与类型III平方和。","authors":"Jung Sunwoo, Hyungsub Kim, Dohyun Choi, Kyun-Seop Bae","doi":"10.12793/tcp.2020.28.e9","DOIUrl":null,"url":null,"abstract":"<p><p>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<sup>®</sup> 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<sup>®</sup>. The \"sasLM\" package was validated by comparing the output with SAS<sup>®</sup>, 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<sup>®</sup> using 194 models. All of the results in \"sasLM\" were identical to those of SAS<sup>®</sup>, whereas more than 20 models in \"car\" showed different results from those of SAS<sup>®</sup>. As the results of the \"sasLM\" package were similar to those in SAS<sup>®</sup> 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.</p>","PeriodicalId":23288,"journal":{"name":"Translational and Clinical Pharmacology","volume":"28 2","pages":"83-91"},"PeriodicalIF":1.1000,"publicationDate":"2020-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://ftp.ncbi.nlm.nih.gov/pub/pmc/oa_pdf/52/99/tcp-28-83.PMC7327187.pdf","citationCount":"1","resultStr":"{\"title\":\"Validation of \\\"sasLM,\\\" an R package for linear models with type III sum of squares.\",\"authors\":\"Jung Sunwoo, Hyungsub Kim, Dohyun Choi, Kyun-Seop Bae\",\"doi\":\"10.12793/tcp.2020.28.e9\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p><p>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<sup>®</sup> 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<sup>®</sup>. The \\\"sasLM\\\" package was validated by comparing the output with SAS<sup>®</sup>, 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<sup>®</sup> using 194 models. All of the results in \\\"sasLM\\\" were identical to those of SAS<sup>®</sup>, whereas more than 20 models in \\\"car\\\" showed different results from those of SAS<sup>®</sup>. As the results of the \\\"sasLM\\\" package were similar to those in SAS<sup>®</sup> 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.</p>\",\"PeriodicalId\":23288,\"journal\":{\"name\":\"Translational and Clinical Pharmacology\",\"volume\":\"28 2\",\"pages\":\"83-91\"},\"PeriodicalIF\":1.1000,\"publicationDate\":\"2020-06-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://ftp.ncbi.nlm.nih.gov/pub/pmc/oa_pdf/52/99/tcp-28-83.PMC7327187.pdf\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Translational and Clinical Pharmacology\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.12793/tcp.2020.28.e9\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"2020/6/24 0:00:00\",\"PubModel\":\"Epub\",\"JCR\":\"Q4\",\"JCRName\":\"PHARMACOLOGY & PHARMACY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Translational and Clinical Pharmacology","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.12793/tcp.2020.28.e9","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2020/6/24 0:00:00","PubModel":"Epub","JCR":"Q4","JCRName":"PHARMACOLOGY & PHARMACY","Score":null,"Total":0}
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-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.
期刊介绍:
Translational and Clinical Pharmacology (Transl Clin Pharmacol, TCP) is the official journal of the Korean Society for Clinical Pharmacology and Therapeutics (KSCPT). TCP is an interdisciplinary journal devoted to the dissemination of knowledge relating to all aspects of translational and clinical pharmacology. The categories for publication include pharmacokinetics (PK) and drug disposition, drug metabolism, pharmacodynamics (PD), clinical trials and design issues, pharmacogenomics and pharmacogenetics, pharmacometrics, pharmacoepidemiology, pharmacovigilence, and human pharmacology. Studies involving animal models, pharmacological characterization, and clinical trials are appropriate for consideration.