chisq_test2: Make a faster version of chisq.test()

Description Usage Arguments Value Examples

Description

Make a faster version of chisq.test() when the input is two numeric vectors with no missing values.

Usage

1

Arguments

x

vector x

y

vector y

Value

compute the chi-square test statistic to test the independence of observations in two vectors.

Examples

1
2
3
4
## Not run: 
chisq_test2(seq(1, 4,0.5), seq(2, 5,0.5))

## End(Not run)

zhangmanustc/StatComp18024 documentation built on May 9, 2019, 10:45 a.m.