I am using a piece of code suggested by the answer to this question:
How to calculate correlation by group
correlate <- d %>%
group_by(Group, Sex, CS.NCS) %>%
summarise(cor.test(Corticosterone, Behaviour.Frequency, use = "pairwise.complete.obs"))
correlate
cor.test(Corticosterone, Behaviour.Frequency, use = "pairwise.complete.obs")
1 1.404187
2 77
3 0.164284
4 0.1580116
5 0
6 two.sided
7 Pearson's product-moment correlation
8 Corticosterone and Behaviour.Frequency
9 -0.06538313, 0.36632341
But how do I get more descriptive results, rather than just 1-9. I don't know what these numbers mean or what they refer to. How do I get this to tell me what I'm looking at?