By default, the function performs a t-test for the null hypothesis that the data in arrays or typed arrays x and y is not correlated. A test against a different population correlation can be carried out by supplying the rho option. In this case, a test using the Fisher's z transform is conducted.
The returned object comes with a .print() method which when invoked will print a formatted output of the results of the hypothesis test.
Computes a Pearson product-moment correlation test between paired samples.
Notes
x
andy
is not correlated. A test against a different population correlation can be carried out by supplying therho
option. In this case, a test using the Fisher's z transform is conducted..print()
method which when invoked will print a formatted output of the results of the hypothesis test.x and y must be arrays of the same length
x and y must contain at least four elements
must provide valid options