When comparing the independent variables between two groups of one variable, I am would like to calculate the effect size. But I wonder if Cohen's effect size should only be applied to continuous variables? (At least I found that the effsize package only support a continuous variable)
How about categorical variables? I can obtain a p-value from the chi square test, but what method should I use to estimate the effect size?