User posted a question
Write an R function perm.chi.test (x, y, N) that allows you to do a permutation chi square test. Compare the performance of a permutation chi square test to a regular chi square table test (see ?chisq.test). What happens in situations, where assumptions of a chi square test are violated? Discuss.