Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 1:50; e = rnorm(50, 0, 4); y = x+e
- cor(x,y); cor(x,y, meth="spear")
- ## 0.9706131 # Pearson
- ## 0.9732053 # Spearman
- cor(x,y^3); cor(x,y^3,meth="spear")
- ## 0.8389872 # Pearson
- ## 0.9732053 # Spearman
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement