Programming the statistical procedures from SAS

Fisher's Exact Test not showing all results?

Reply
User
Posts: 1

Fisher's Exact Test not showing all results?

When I run the example code below in SAS EG, I'm only shown these results when I want to see results like this. Is there a reason why the Cell (1,1) Frequency (F), left-sided pr <= F, right-sided >=F, and two-sided Pr <= P are omitted from my results? Is the p-value I generated not two-sided? Thanks in advance!

 

data test;
input comp95 religion $ count;
cards;
1 independent 10
1 jewish 30
1 romancatholic 20
1 other 40
0 independent 46
0 jewish 51
0 romancatholic 32
0 other 34
;
 run;

proc freq data=test order=data;
tables comp95*religion / chisq expected fisher;
weight count;
run;

 

 

Super User
Posts: 13,508

Re: Fisher's Exact Test not showing all results?

Do you realize that you can insert images using the "Photos" icon in the menu? Posting links to images on other sites are very likely to break making your question less useful for others searching this forum.

SAS Super FREQ
Posts: 4,239

Re: Fisher's Exact Test not showing all results?

As discussed in the documentation, you can ask for several kinds of p-values. The EXACT statement supports the POINT, MIDP, or MC (for Monte-Carlo) options. For example:

 

 exact fisher / point;

SAS Employee
Posts: 97

Re: Fisher's Exact Test not showing all results?

You only get left and right sided p-values for 2x2 tables.  For larger tables the one-sided p-values are not defined and you will only get a two-sided one

Ask a Question
Discussion stats
  • 3 replies
  • 112 views
  • 0 likes
  • 4 in conversation