Learn R Programming

MMDai (version 1.2.0)

ChiSquareTest: Chi-Square test

Description

Test the independence of two variables

Usage

ChiSquareTest(theta, psi, v1 = 1, v2 = 2)

Arguments

theta

- vector of probability for each component

psi

- specific probability for each variable in each component

v1

- first variable

v2

- second variable

Value

chi_square - chi_square test statistic

p_value - p value in the test