Class ChiSquareTest

java.lang.Object
edu.cmu.tetrad.search.test.ChiSquareTest

public class ChiSquareTest extends Object
Calculates chi-square or g-square for a conditional cross-tabulation table for independence question 0 _||_ 1 | 2, 3, ...max by summing up chi-square and degrees of freedom for each conditional table in turn, where rows or columns that sum to less than a given threshold have been removed. The adjusted conditional tables are required to have more than 0 total counts and at least 2 rows and 2 columns; otherwise, the test is judged to be invalid. Otherwise, a p-value is returned based on the Chi-Square distribution with the total degrees of freedom and total chi-square.
Version:
$Id: $Id
Author:
frankwimberly, josephramsey
See Also: