how to calculate P-value by using proc freq ( by fisher exact method) in SAS, as i am getting a warning note while using chisq method in proc freq. WARNING: 25% of the cells have expected counts less than 5. Chi-Square may not be a valid test please provide me syntax and explanation why i am geting this warning? thanks
Current Code:
ods OUTPUT Freq.Table1.ChiSq=P1_&TR1&V1(WHERE=(Statistic="Chi-Square") RENAME=(Prob=COL&TR1));
PROC FREQ DATA=P&V1;
TABLE TREATMENT*SSA/CHISQ ;
WHERE TREATMENT IN (1 &TR1);
RUN;
QUIT;