In base R, the function chisq.test()
"performs chi-squared contingency table tests and goodness-of-fit tests".
However, chisq.test()
only takes a numeric vector
or matrix
, and not a three-way (three-dimensional) contingency table.
Is there a similar function for a three-way contingency table (i.e., array
) in R?