pearsonCorTest - multiple declarations

Function pearsonCorTest

Tests the hypothesis that the Pearson correlation between two ranges is different from some 0. Alternatives are Alt.less (pearsonCor(range1, range2) < 0), Alt.greater (pearsonCor(range1, range2) 0) and Alt.twoSided (pearsonCor(range1, range2) != 0).

ConfInt pearsonCorTest(T, U) (
  T range1,
  U range2,
  Alt alt = Alt.twoSided,
  double confLevel = 0.95
)
if (doubleInput!T && doubleInput!U);

Returns

A ConfInt of the estimated Pearson correlation of the two ranges, the P-value against the given alternative, and the confidence interval of the correlation at the level specified by confLevel.

References

http://en.wikipedia.org/wiki/Pearson_correlation

Function pearsonCorTest

Same as overload, but uses pre-computed correlation coefficient and sample size instead of computing them.

ConfInt pearsonCorTest (
  double cor,
  double N,
  Alt alt = Alt.twoSided,
  double confLevel = 0.95
);

Note

This is a template only because of DMD Bug 2972.