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 Tests MedianTest  
MedianTest 

The function MedianTest performs a twosample median test. The two samples are contained in the arrays DataGrp1 and DataGrp2. The function returns the test statistic (chisquare value) in the variable parameter Chi2 and the corresponding probability in the variable parameter pChi2. In addition, Yates continuity correction is applied, the corresponding chisquare value and the probability is returned in the parameters Chi2Yates and pChi2Yates. Further, if the total number of objects is less than or equal to 1000 it also calculates the exact probability based on Fisher's exact test and returns it in pExact. If Fisher's exact test is not calculated, a value of 1 is returned in pExact. The function returns the following error codes: 0 ... everything is OK, Chi2 and pChi2 are valid
