Learn R Programming

Mychisq (version 0.1.3)

indchisq: Independence test

Description

This function is for independence test

Usage

indchisq(O, conf.level = 0.95)

Arguments

O

an observed matrix has a rows and b columns

conf.level

confidence level

Value

output for independence test

References

Plackett, R. L. (1983). <doi:10.2307/1402731>.

Examples

Run this code
# NOT RUN {
v <- c(80,60,150,50,40,20)
X<- matrix(v,ncol=2,byrow = TRUE)  # 3x2
indchisq(X)

# }

Run the code above in your browser using DataLab