I want to test if there is a dependency between 2 qualitatives variables. Before using any test, I plot geom_bar().
For me, this is quite evident that when the factor variable is equal to 1, the dependent variable is more often equal to 3 than when the factor variable is equal to 0. And when the factor variable is equal to 0, the dependent variable is more often equal to 2 than when the factor variable is equal to 1.
But if I perform chisq.test or fisher.test, I get a p-value equal superior to 0.3, which means that the two qualitatives variables are independent. But I don't really understand why the test are not significant. To perform the tests, I've used following code :
chisq.test(table(variable1,variable2))
where variable1 and variable2 are categorical variables
Thanks in advance for your help,
C