Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
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
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.