I have the low expected values problem in my data set and cannot solve with regular methods (e.g. combining levels, etc). I cannot use Fisher's test either because of the fixed marginals assumption of the Fisher's test.
I want to try the permutation test in the chisq.test function in R (that is simulate.p.value option in chisq.test). However, I would like to know whether this simulation assumes fixed marginals in the data or not? (My data is not suitable for fixed marginals assumption, marginals may change depending on the sample taken.)