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;
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.
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;
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
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.