Displaying 1 result from an estimated 1 matches for "hp_tot".
Did you mean:
p_tot
2010 Sep 08
2
Correlation question
...39;m observing what I believe is weird behaviour when attempting to do
something very simple. I want a correlation matrix, but my matrix seems to
contain correlation values that are not found when executed on pairs:
> test2$P2
[1] 2 2 4 4 1 3 2 4 3 3 2 3 4 1 2 2 4 3 4 1 2 3 2 1 3
> test2$HP_tot
[1] 10 10 10 10 10 10 10 10 136 136 136 136 136 136 136 136 136
136 15
[20] 15 15 15 15 15 15
c=cor(test2$P3,test2$HP_tot,method='spearman')
> c
[1] -0.2182876
> c=cor(test2,method='spearman')
Warning message:
In cor(test2, method = "spearman") : t...