Brian Varney |
Getting values of test statistics and p-values out of SAS and R is quite easy in each of the software packages but also quite different from each other. This paper intends to compare the SAS and R methods for obtaining these values from tests involving Chi-Square and Analysis of Variance such that they can be leveraged in tables, listings, and figures.
This paper will include but not be limited to the following topics:
• SAS ODS trace
• SAS PROC FREQ
• PROC GLM
• R stats::chisq.test() function
• R stats::aov() function
• R broom package functions
The audience for this paper is intended to be programmers familiar with SAS and R but not at an advanced level. |