This function calculates the pearson correlation of two vectors of numbers.
Usage
pearson_(x,y)
Arguments
x
Should be a vector
y
Should be a vector
Value
Numeric, the pearson correlation of two vectors of numbers.
Details
To calculate the pearson correlation, the user should give two vectors of numbers. The result is the covariance of the two vectors of numbers divided by the product of their standard deviations. The pearson correlation formule is the following: