CommencerCommencer gratuitement

Bivariate correlations

After describing the variables in your dataset, the next step is to begin exploring the relationships between these variables. Bivariate association using Pearson's correlation is one way to assess these relationships.

In this exercise, you will use the corr.test() function from the psych package to compute Pearson's correlations between the abalone age and their four weight measurements and between abalone age and the three dimensional measurements.

The abaloneKeep dataset, dplyr and psych packages have been loaded for you.

Cet exercice fait partie du cours

R For SAS Users

Afficher le cours

Instructions

  • Get correlations between age, whole weight, shucked weight, shell weight, and viscera weight with the psych::corr.test() function for the abaloneKeep dataset.
  • Get correlations between age, length, diameter, and height with the psych::corr.test() function.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Get correlations age and weights with corr.test()
___ %>% 
  ___ %>%
  ___

# Get correlations age and dimensions with corr.test()
___ %>% 
  ___ %>%
  ___
Modifier et exécuter le code