The function CorrTest tests whether the correlation of the two datasets Data1 and Data2 differs significantly from the specified reference correlation RefCorr. The correlation of the two datasets is returned in the variable parameter rxy, the probability that rxy comes from the same population as RefCorr is returned in the variable parameter pValue.
The function returns the following error codes:
0 ... everything is OK
-1 ... too few data values
-2 ... data arrays do not match in size
-3 ... the reference value is out of range (valid range: -1.0 ... +1.0)