We examine various measures of association between two variables. We create a cross-tabulation and apply the Chi-square test to investigate the relationship between categorical variables. We also learn to compute and interpret Spearman’s rho and Kendall’s tau for ordinal variables and the Pearson correlation for numerical variables. In addition, we learn how to create bivariate plots with ggplot2 to visualise relationships.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Correlations of Two Variables

  • Benjamin E. Schlegel

摘要

We examine various measures of association between two variables. We create a cross-tabulation and apply the Chi-square test to investigate the relationship between categorical variables. We also learn to compute and interpret Spearman’s rho and Kendall’s tau for ordinal variables and the Pearson correlation for numerical variables. In addition, we learn how to create bivariate plots with ggplot2 to visualise relationships.