View source: R/chisq_colpairs.R
chisq_colpairs | R Documentation |
Perform a chi-square test for independence for all pairs of columns of a matrix.
chisq_colpairs(x)
x |
A matrix of positive integers. |
A matrix of size p x p, where p is the number of columns in
the input matrix x
, containing the chi-square test
statistics for independence, applied to pairs of columns of
x
. The diagonal of the result will be all NA
s.
z <- matrix(sample(1:2, 500, replace=TRUE), ncol=5)
chisq_colpairs(z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.