1
$\begingroup$

In my dataset, there are 3 data that I would like to check for relations, which are

$ famsup   : Factor w/ 2 levels "no","yes": 1 2 1 2 2 2 1 2 2 2 ... 
$ schoolsup: Factor w/ 2 levels "0","1": 2 1 2 1 1 1 1 2 1 1 ... 
$ Walc     : Factor w/ 5 levels "1","2","3","4",..: 1 1 3 1 2 2 1 1 1 1 ...

Here, famsup is the families' economic support on students, schoolsup is the schools' economic support on students and walc is the alcohol consumption ratio leveled from very low to very high.

What hypothesis test do I use to check for relations between alcohol consumption and each type of support (or both types at once)? Also, can I visualize this on a graph, if so, which one?

$\endgroup$

1 Answer 1

1
$\begingroup$

What makes the most sense here is to treat Walc as an ordinal variable.

The classic association test for an ordinal variable and a dichotomous variable is the Cochran-Armitage test. There is an extended version of this test if there are more than two groups in the nominal variable.

In reality, a Wilcoxon-Mann-Whitney test or Kruskal-Wallis test that accounts for ties in ranks will work as well.

There are several measures of the degree of association for an ordinal variable and a nominal variable: Freeman's theta, epsilon-squared (the kind appropriate as an effect size for a Kruskal-Wallis test). If the there are only two groups in the nominal variable, there are several others that can be used: Varga and Delaney's A, Cliff's delta, Kendall's tau-b, and there is an r that used an effect size statistic for a Wilcoxon-Mann-Whitney test.

One way to visual the association between an ordinal variable and a nominal variable is a spine plot. Here, Breakfast is the ordinal variable and Travel is the nominal variable: http://rcompanion.org/handbook/images/image217.png .

$\endgroup$
1
  • $\begingroup$ As an addendum, I would like to advise against using the r statistic that is calculated as z/sqrt(N) (as with Wilcoxon-Mann-Whitney). One issue with it is that it doesn't each -1 or 1. There are similar issues using Spearman rho or Kendall tau in these contexts. Instead I would recommend the Glass ranks biserial correlation, which I believe comes out equivalent to Cliff's delta. $\endgroup$ Commented Jan 3, 2020 at 18:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.