I'm testing correlation between two variables v1 and v2, but they are clustered by a third variable group. Can I directly use the correlation test (i.e., Spearman test) without accounting the cluster? What is the possible issue? If not, what test should I conduct? Is intraclass correlation the correct test I should use? My data are not normally distributed.
I have 2 sets of data, they have 40, 80 group. My group is subject, and v1 and v2 are two continuous variables that are two different behavioural data drawn from each individual.
example data
group v1 v2
1 2 1
1 2 0
1 8 9
2 7 1
2 9 2
2 3 1
3 2 2
3 1 1
3 1 2
Thanks!
v1andv2(if any), and what type of data are they ? – Robert Long May 30 '18 at 06:50