title: How to calculate P-value by using Fisher's exact test in SAS
body: <p>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</p>
  
  <p>Current Code:</p>
  
  <pre><code>ods OUTPUT Freq.Table1.ChiSq=P1_&amp;TR1&amp;V1(WHERE=(Statistic="Chi-Square") RENAME=(Prob=COL&amp;TR1)); 
  PROC FREQ DATA=P&amp;V1;
      TABLE TREATMENT*SSA/CHISQ ;
      WHERE TREATMENT IN (1 &amp;TR1);
  RUN; 
  QUIT;
  </code></pre>