BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
UcheOkoro
Lapis Lazuli | Level 10

I noticed that the SAS output showed a conflict between the 95% CI for the risk difference and p-value. The 95% CI is statistically significant, but the p-value is not. How can this be explained and interpreted?

UcheOkoro_0-1675787790781.png

UcheOkoro_1-1675787806869.png

 

UcheOkoro_2-1675787834073.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
SAS_Rob
SAS Employee

In general you can expect the confidence intervals on the difference and the Chi-Square test to correspond with one another when you use the same methodology.  You are using the default Wald Method for the risk difference which would correspond most closely (although not exactly) to the Pearson Chi-Square.  

With respect to Fisher's exact test, there is not a direct correspondence to any of the different confidence limits that are available.  I would expect that if you use CL=EXACT then you will get something fairly close, but again they will not always match up exactly.

 

tables row*col/riskdiff(cl=exact);

exact riskdiff;

 

You can refer to the documentation for further details.  SAS Help Center: TABLES Statement

View solution in original post

2 REPLIES 2
SAS_Rob
SAS Employee

In general you can expect the confidence intervals on the difference and the Chi-Square test to correspond with one another when you use the same methodology.  You are using the default Wald Method for the risk difference which would correspond most closely (although not exactly) to the Pearson Chi-Square.  

With respect to Fisher's exact test, there is not a direct correspondence to any of the different confidence limits that are available.  I would expect that if you use CL=EXACT then you will get something fairly close, but again they will not always match up exactly.

 

tables row*col/riskdiff(cl=exact);

exact riskdiff;

 

You can refer to the documentation for further details.  SAS Help Center: TABLES Statement

UcheOkoro
Lapis Lazuli | Level 10

Thank you so much. It worked.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is ANOVA?

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.

Discussion stats
  • 2 replies
  • 685 views
  • 1 like
  • 2 in conversation