I am confused by the different correlation tests. I have ordinal variables, continuous, binary and categorical.
I am aware of pwcorr (pairwise correlation)
, pearson chi2
- with V option for Cramer's V , and spearman
What I don't understand is when to use which? For example, if I would like to know the association that exists between two variables, which do I use? And does it differ by the type of variable? From some of my reading it says that the pearsons chi2 should only be used with continuous, whereas spearman with ordinal and continuous. Pwcorr can run on any numeric variables but the results don't make sense if run on categorical variables. I've also seen that you can use pearson/spearman with two binary variables, so i am just a bit confused.
For my data I need to test the following corrections:
gender (binary) with political participation (binary) - here I'm assuming I can use pearson chi2 or spearman?
Salary (continuous) with political participation (ordinal) - here I can use pwcorr?
voting rights (categorical) with marital (categorical) - here i can use pearson chi2?
Sorry if this is a bit of a silly question.
I am aware of pwcorr (pairwise correlation)
Code:
pwcorr var1 var2
Code:
ta var1 var2, chi2 V
Code:
spearman var1 var2
For my data I need to test the following corrections:
gender (binary) with political participation (binary) - here I'm assuming I can use pearson chi2 or spearman?
Salary (continuous) with political participation (ordinal) - here I can use pwcorr?
voting rights (categorical) with marital (categorical) - here i can use pearson chi2?
Sorry if this is a bit of a silly question.
Comment