Hi All,
I have a table which looks like this:
num sym1 sym2 sym3. sym4
1 1.5 -0.1. 9.4. 3.1
2 2.5 - 0.9 3.1 0.5
3 5.4 2.9. -0.3. 1.0
4 0.5 0.1. -0.4. 1.4
5 0.3 0.0 3.6. 0.4
How can I calculate the correlation between sym1 and sym2, sym1 and sym3, sym1 and sym4 for every 3 rows?
(i.e, the correlation between sym1 row 1-3 and sym2/sym3/sym4 row 1-3,
the correlation between sym1 row 2-4 and sym2/3/4 row 2-4,
the correlation between sym1 row 3-5 and sym2/3/4 row 3-5)
Any help will be very much appreciated!!