my_chi: Computing the chi-square test statistic for two vectors

Description Usage Arguments Value Examples

Description

A faster version of chisq.test() that only computes the chi-square test statistic when the input is two numeric vectors with no missing values

Usage

1
my_chi(x, y)

Arguments

x, y

: two vectors with the same length

Value

STATISTIC : chi-square test statistic

Examples

1
2
3
x<-runif(10)
y<-runif(10)
my_chi(x,y)

ShiHaiyu/StatComp18099 documentation built on May 5, 2019, 11:06 p.m.