Chapter 10: Bivariate Analysis

Links to a carefully curated collection of Youtube videos provide a host of additional sourcs for you to develop your ability to use R software in an engaging and accessible manner.

Video 10.1: ‘Chi-square test, Fisher’s exact test, and cross tabulations in R’

Question 1: When is it appropriate to use a Chi-square test?

Answer: When we want to test the independence (or relationship) between two categorical variables.

Question 2: If we just want to perform a Chi-square test, how do we do it in R?

Answer: We use the chi.square() function in R.


Video 10.2: ‘Correlation and covariance in R’

Question 1: What is the difference between a Pearson’s correlation and a Spearman’s correlation?

Answer: Pearson’s correlation assesses a linear association between 2 numeric variables, while Spearman’s correlation assesses a monotonic association between 2 numeric variables.

Question 2: What is the default type of correlation in the cor() function in R?

Answer: The default is Pearson’s correlation.