The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... 
Home MathPack Statis Functions Chi2OfContTabYates  
See also: Chi2DistriQuantile, Chi2OfContTab  
Chi2OfContTabYates 

The function Chi2OfContTabYates calculates the chisquare value for a given 2x2 contingency table. The chisquare value is calculated using Yates's continuity correction (which should always be applied for 2x2 contingency tables). The parameter ContTab contains the contingency table (including the margin sums, see figure below), the variable parameters chisq and p return the chisquare value and the corresponding p value, respectively. The function returns the following error codes: 0 ... everything is OK
