<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Requesting Odds Ratios w/ PROC SURVEYFREQ (RESRISK, RELRISK, OR) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Requesting-Odds-Ratios-w-PROC-SURVEYFREQ-RESRISK-RELRISK-OR/m-p/818215#M34611</link>
    <description>&lt;P&gt;The error message is telling you that RESRISK is not a valid option in your version of Surveyfreq. Since the documentation for the procedure at &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveyfreq_syntax06.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveyfreq_syntax06.htm&lt;/A&gt; does not include RESRISK where did you get that as an option?&lt;/P&gt;
&lt;P&gt;With that error no output should be generated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So make sure you use &lt;FONT color="#008000"&gt;RELRISK&lt;/FONT&gt;, not &lt;FONT color="#FF0000"&gt;RESRISK&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want ODDS Ratios for more levels you may be looking at Proc Surveylogistic.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 21:36:00 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-06-14T21:36:00Z</dc:date>
    <item>
      <title>Requesting Odds Ratios w/ PROC SURVEYFREQ (RESRISK, RELRISK, OR)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Requesting-Odds-Ratios-w-PROC-SURVEYFREQ-RESRISK-RELRISK-OR/m-p/818213#M34610</link>
      <description>&lt;P&gt;I am struggling to request Odds Ratios (ORs) in PROC SURVEYFREQ with an independent variable that has more than 2 levels.&lt;/P&gt;
&lt;P&gt;When I use the RESRISK option, I get the following error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-06-14 at 1.32.50 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72286i1E7604F29A82B840/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-06-14 at 1.32.50 PM.png" alt="Screen Shot 2022-06-14 at 1.32.50 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm not sure what this error is telling me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have successfully used the RELRISK option in the past w/ a different data set, but the independent variable only had 2 levels (e.g., explains_re):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SURVEYFREQ DATA=cap.subset_2; 
	repweight rakedw1--rakedw80 / jkcoefs=1; 
	WEIGHT rakedw0; 
	TABLE flag_5*explains_re*confid_re / ROW EXPECTED CHISQ CELLCHI2 RELRISK; 
	FORMAT explains_re explains_re_difmt. confid_re confid_re_difmt.; 
RUN; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With the current data set, the independent variable has 4 levels. The RELRISK option doesn't produce RRs or ORs. And, there is no mention of it in the log, as opposed to the error message when I use RESRISK.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-06-14 at 1.40.04 PM.png" style="width: 580px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72287i6EB166CEC08A73CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-06-14 at 1.40.04 PM.png" alt="Screen Shot 2022-06-14 at 1.40.04 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To summarize, the syntax I have used in the past produces ORs, but only when the&amp;nbsp;independent variable has 2 levels. I'm seeking syntax that produces ORs w/ an&amp;nbsp;independent variable that has 4 levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 21:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Requesting-Odds-Ratios-w-PROC-SURVEYFREQ-RESRISK-RELRISK-OR/m-p/818213#M34610</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2022-06-14T21:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting Odds Ratios w/ PROC SURVEYFREQ (RESRISK, RELRISK, OR)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Requesting-Odds-Ratios-w-PROC-SURVEYFREQ-RESRISK-RELRISK-OR/m-p/818215#M34611</link>
      <description>&lt;P&gt;The error message is telling you that RESRISK is not a valid option in your version of Surveyfreq. Since the documentation for the procedure at &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveyfreq_syntax06.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_surveyfreq_syntax06.htm&lt;/A&gt; does not include RESRISK where did you get that as an option?&lt;/P&gt;
&lt;P&gt;With that error no output should be generated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So make sure you use &lt;FONT color="#008000"&gt;RELRISK&lt;/FONT&gt;, not &lt;FONT color="#FF0000"&gt;RESRISK&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want ODDS Ratios for more levels you may be looking at Proc Surveylogistic.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 21:36:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Requesting-Odds-Ratios-w-PROC-SURVEYFREQ-RESRISK-RELRISK-OR/m-p/818215#M34611</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-14T21:36:00Z</dc:date>
    </item>
  </channel>
</rss>

