How to: |
The CORRELATION function calculates the correlation coefficient between two numeric fields. The function returns a numeric value between zero (-1.0) and 1.0.
CORRELATION(field1, field2)
where:
Numeric
Is the first set of data for the correlation.
Numeric
Is the second set of data for the correlation.
Note: Arguments for CORRELATION cannot be prefixed fields. If you need to work with fields that have a prefix operator applied, apply the prefix operators to the fields in COMPUTE commands and save the results in a HOLD file. Then, run the correlation against the HOLD file.
CORRELATION calculates the correlation between DOLLARS and BUDDOLLARS.
CORRELATION(DOLLARS, BUDDOLLARS)
For DOLLARS=46,156,290.00 and BUDDOLLARS=46,220,778.00, the result is 0.895691073.
WebFOCUS | |
Feedback |