Correl
Contents
Description
This function returns the correlation coefficient between two datasets. Let X and Y be two datasets, then the correlation coefficient between the two is defined as:
/math-3eeaab7aec2eb5b9d11107a2a592a12f.png)
Syntax
double correl(dataset vx, dataset vy)
Parameter
vx
- A dataset, or a range pointing to a single dataset.
vy
- A dataset, or a range pointing to a single dataset.
Return
Returns the correlation coefficient between two datasets vx and vy.
Example
newbook; range aa = 1!1; range bb = 1!2; aa = uniform(32); bb = uniform(32); correlation = correl(aa,bb); correlation = ;