The problem with small numbers
See the Handbook for information on these topics.
Yates’ and William’s corrections in R
The following table lists the continuity corrections available for the Chi-square tests and G-tests discussed in this book.
Test |
Function |
Package |
Correction |
Option |
Default |
Notes |
Chi-square |
chisq.test
|
stats |
Yates |
correct=TRUE
|
TRUE |
2 x 2 table only |
G |
G.test
|
RVAide |
(none) |
|
|
|
G |
GTest
|
DescTools |
Yates Williams |
correct=
correct= |
"none" |
|
See the Handbook for information on these topics.