Dear Team,
i am working on a survey data and need to run a chi square test to see if there is any relation between gender and rating.
As one of the assumption of Chi Square is : Sample Size: each particular scenario (cell) must have at least five cases. However as i have very less data points hence this assumption is violated.
We can run a fisher exact test in this scenario though while researching i came across a literature from "Wai Wan Tsang and Kai Ho Cheng" from the Univeristy of The University of Hong Kong" that we can still run a chi square test.
I am a bit confused and while searching this on researchgate. net this option was suggested hence checking on the forum if this is still a valid test to conduct.
Regards, Shivi
Yes, it sounds like exact tests would be appropriate. For an overview of exact tests in PROC FREQ, see "Exact tests in PROC FREQ: What, when, and how."
If you have many dozens of cells, a full exact test might be prohibitively expensive. In that case, you can use Monte Carlo approximations to the exact test by adding the MC option to the EXACT statement:
exact pchi / MC; /* Monte Carlo approximation to exact chi-square test */
You can request exact statistics for the likelihood ratio chi-square test (if that what your reference is about) with EXACT LRCHI;
Yes, it sounds like exact tests would be appropriate. For an overview of exact tests in PROC FREQ, see "Exact tests in PROC FREQ: What, when, and how."
If you have many dozens of cells, a full exact test might be prohibitively expensive. In that case, you can use Monte Carlo approximations to the exact test by adding the MC option to the EXACT statement:
exact pchi / MC; /* Monte Carlo approximation to exact chi-square test */
Thanks Rick for the solution. I think this works perfect. Also thanks for sharing the blog link.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.