What do correlations show?
Quantify relationships
Strength of relationship
How much of the variance in one variable is explained by another
What is the correlation coefficient?
Size of the effect No relationship: r= 0 Perfect relationship : r=+1, positive relationship r= -1, negative relationship. 0= no relationship.
How to calculate how much variance is explained by the model?
Squaring the correlation coefficient
Convert to percentage
What command calculates Pearson’s correlation in R?
cor.test()
Need to know x , y, method.
We can access variable x and y by using the $ symbol
Variable x = df$x
Variable y =df$y
cor.test(x = df$xvariable, y= df$RPE, method = “Pearson”)
What does squaring the correlation coefficient show?
How much variance in one variable is explained by another variable