Correlation Coefficient in R | Pearson Correlation | Spearman Correlation | Kendall Correlation
Animal Sciences Animal Sciences
4.69K subscribers
934 views
0

 Published On Apr 27, 2023

This video is about the calculation of correlation coefficient in R. Correlation is a statistical method that is used to find out the relationship between two variables. There are different methods to calculate correlation like Pearson Correlation, Spearman correlation and Kendall correlation. Pearson correlation is mostly used to compute the correlation coefficient. However, it depends on the structure of data that which method is suitable for data. In R, cor() function is used to calculate correlation coefficient. The cor () function by default calculates Pearson correlation. However, the method within this function can be changed to Spearman or Kendall. In this example, I calculated correlation coefficient between the birth weight and 120 days weight of sheep.

To download Lamb Body Weight Data https://drive.google.com/file/d/1_XSF...

To download RScript / code used in this video https://drive.google.com/file/d/1dTLJ...

To learn the Basics of R Programming
   • Basics of R Programing  

#correlation #correlationcoefficient #rprogramming

show more

Share/Embed