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

Hi all,

 

Could you please help with the statistics evaluation.

 

I need to calculate: Risk Ratio, 95% CI of Risk Ratio and p-value with method of  Chan and Zhang(1999).

 

Could you please say the syntax of Proc Freq for the case?

 

Thank you!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hi @DmytroYermak,

 

According to the SAS/STAT 14.3 documentation, that method is the new default, so the RELRISK option of the EXACT statement is sufficient:

exact relrisk;

In earlier SAS/STAT versions (up to 14.2) you had to specify

exact relrisk(method=score);

 

View solution in original post

3 REPLIES 3
FreelanceReinh
Jade | Level 19

Hi @DmytroYermak,

 

According to the SAS/STAT 14.3 documentation, that method is the new default, so the RELRISK option of the EXACT statement is sufficient:

exact relrisk;

In earlier SAS/STAT versions (up to 14.2) you had to specify

exact relrisk(method=score);

 

DmytroYermak
Lapis Lazuli | Level 10
Thank you! Would you please prompt how to calculate p-value within the procedure as well.
FreelanceReinh
Jade | Level 19

There doesn't seem to be an option to compute a corresponding test (although the CI is based on one-sided exact tests). At least I can't find it, sorry. Maybe you can

  • iteratively modify the ALPHA= option of the TABLES statement until a pre-specified value equals a confidence limit
  • or compute the test outside of PROC FREQ (i.e. manually in a data step -- I don't have code for this)
  • or use one of the available tests for the risk difference instead if appropriate.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 3 replies
  • 2290 views
  • 2 likes
  • 2 in conversation