BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sarahsasuser
Quartz | Level 8

Hi All,

I want to calculate the relative risk and 95%CI using the FM Score in proc freq. I'm interested in comparing the the WAld CI and the FM CI. However, when I add it to my code I get this error:

130  proc freq data=Data.xxx;

131     132      table any_dia*status/ EXACT RELRISK (METHOD=FMscore) ;

                                           

ERROR 22-322: Syntax error, expecting one of the following: PDIFF, RDIFF, RISKDIFF, RISKDIFFC.

ERROR 76-322: Syntax error, statement will be ignored.

133  run;

It looks like I should use the riskdiff to use this option. However, I do not want the risk difference and  this documentation says I can get the FMScore from relrisk.

Base SAS(R) 9.3 Procedures Guide: Statistical Procedures

I'm using version 9.3.

Any ideas?    

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Switch it to the exact statement and note that you can only do relrisk calculations for 2x2 tables.

proc freq data=Data.xxx;

table any_dia*status;

EXACT RELRISK (METHOD=FMscore) ;

run;

View solution in original post

1 REPLY 1
Reeza
Super User

Switch it to the exact statement and note that you can only do relrisk calculations for 2x2 tables.

proc freq data=Data.xxx;

table any_dia*status;

EXACT RELRISK (METHOD=FMscore) ;

run;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 2185 views
  • 2 likes
  • 2 in conversation