Pearson S R Correlation Test. It s also known as a parametric correlation test because it depends to the distribution of the data. Pearson s correlation coefficient r is a measure of the strength of the association between the two variables.
Whenever any statistical test is conducted between the two variables then it is always a good idea for the person doing analysis to calculate the value of the correlation coefficient for knowing that how strong the relationship between the two variables is. Pearson correlation r which measures a linear dependence between two variables x and y. The stronger the association between the two variables the closer your answer will incline towards 1 or 1.
The code to run the pearson correlation in r is displayed below.
The stronger the association between the two variables the closer your answer will incline towards 1 or 1. These are the two variables that you want to correlate in the pearson correlation. To perform the pearson correlation test use the cor test function. Pearson correlation r which measures a linear dependence between two variables x and y.