BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Shivi82
Quartz | Level 8

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

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

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 */

View solution in original post

3 REPLIES 3
PGStats
Opal | Level 21

You can request exact statistics for the likelihood ratio chi-square test (if that what your reference is about) with EXACT LRCHI;

PG
Rick_SAS
SAS Super FREQ

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 */
Shivi82
Quartz | Level 8

Thanks Rick for the solution. I think this works perfect. Also thanks for sharing the blog link.

SAS Innovate 2025: Register Now

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!

What is ANOVA?

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.

Discussion stats
  • 3 replies
  • 1966 views
  • 3 likes
  • 3 in conversation