I have been trying to calculate the correlation between two categorical variables (level of education, political party voted) in R. I found that I could use Pearson chi-sq t