chisq.test1: chi-square test statistic

Description Usage Arguments Value Examples

Description

give two sample vectors,generate list of chi-square test statistic,degree of freedom and p-value.the null hypothesis that the two samples are connected.

Usage

1

Arguments

x

Sample to be tested

y

Sample to be tested

Value

chi-square test statistic,p-value and degree of freedom.

Examples

1
2
3
4
5
6
7
## Not run: 
a=31:35;
b=c(31,33,35,37,39);
m<-cbind(a,b)
chisq.test1(a,b)

## End(Not run)

qyc1996/StatComp18003 documentation built on May 5, 2019, 11:08 p.m.