Package edu.cmu.tetrad.search
Class GSquareTest
java.lang.Object
edu.cmu.tetrad.search.ChiSquareTest
edu.cmu.tetrad.search.GSquareTest
Performs conditional independence tests of discrete data using the G Square method. Degrees of freedom are calculated
as in Fienberg, The Analysis of Cross-Classified Categorical Data, 2nd Edition, 142.
- Author:
- Frank Wimberly original version, Joseph Ramsey revision 10/01
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Simple class to store the parameters of the result returned by the G Square test. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalcGSquare
(int[] testIndices) Calculates g square for a conditional crosstabulation table for independence question 0 _||_ 1 | 2, 3, ...max by summing up g square and degrees of freedom for each conditional table in turn, where rows or columns that consist entirely of zeros have been removed.Methods inherited from class edu.cmu.tetrad.search.ChiSquareTest
calcChiSquare, getAlpha, getCellTable, getDataSet, getDims, isDetermined, selectFromArray, setAlpha
-
Constructor Details
-
GSquareTest
-
-
Method Details
-
calcGSquare
Calculates g square for a conditional crosstabulation table for independence question 0 _||_ 1 | 2, 3, ...max by summing up g square and degrees of freedom for each conditional table in turn, where rows or columns that consist entirely of zeros have been removed.
-