For data has 2 treatment and 3 category.
trt1 : 1 0 0
trt2 : 0 0 0
is it possible for do fisher exact test in proc freq?
Hi any one please can reply above question
Yeah. I think so. and change your data structure firstly. But your cell freq better all have value . what is your whole sample data.
proc freq;
table treatment*category /fisher;
weight wth;
run;
Xia Keshan
Hi,
You can look into proc transpose to change the structure to fit the FREQ procedure input requirement.
Jason Xin
There is no problem in performing fisher's exact test using proc freq but your data does not meet the requirement for the test.
Your sample size is too small to draw any statistically significant conclusion. Performing a test would be misleading.
Hi Steve,
I think Fisher's Exact test does not depend on large-sample distribution assumptions, and appropriate even for small sample sizes as well. Please correct me if I am wrong, is it expected cell frequency or obervations per row that should be at least 5?
Regards,
Naeem
Sorry, what I wrote was easily misinterpretable, and wrong in the details anyway. For a balanced design, you need at least three observations per row, completely separated by columns to obtain significance using Fisher's Exact Test Nothing to do with asymptotic assumptions or expected cell frequencies.
data one;
input a b wt;
cards;
0 0 0
0 1 3
1 0 3
1 1 0
;
proc freq data=one;
tables a*b/exact;
weight wt;
run;
Note that if you redistribute the 6 obs or have fewer total observations, no significance can be found.
Steve Denham
Thanks Steve - This is interesting to know.
Naeem
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.