[banner]

An R Companion for the Handbook of Biological Statistics

Salvatore S. Mangiafico

Small Numbers in Chi-square and G–tests

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
Memoire

(none)

 

 

 

G

GTest

 

DescTools

Yates

 

 

Williams

correct=
"yates"

 

correct=
"williams"

"none"

 

 

 

Pooling

Recommendation

See the Handbook for information on these topics.