Programming the statistical procedures from SAS

RELRISK (METHOD=FMSCORE)

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 104
Accepted Solution

RELRISK (METHOD=FMSCORE)

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?    


Accepted Solutions
Solution
‎02-27-2015 04:59 PM
Super User
Posts: 18,514

Re: RELRISK (METHOD=FMSCORE)

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


All Replies
Solution
‎02-27-2015 04:59 PM
Super User
Posts: 18,514

Re: RELRISK (METHOD=FMSCORE)

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;

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 422 views
  • 1 like
  • 2 in conversation