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
Value
chi_square - chi_square test statistic
p_value - p value in the test