chisq_colpairs: Chi-square test on all pairs of columns

Description Usage Arguments Value Examples

Description

Perform a chi-square test for independence for all pairs of columns of a matrix.

Usage

1

Arguments

x

A matrix of positive integers. NAs and values <= 0 are treated as missing.

Value

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 NAs.

Examples

1
2
z <- matrix(sample(1:2, 500, replace=TRUE), ncol=5)
chisq_colpairs(z)

rqtl/qtl2geno documentation built on May 28, 2019, 2:36 a.m.