<?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: Proc Freq Odds Ratios in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Odds-Ratios/m-p/590143#M28853</link>
    <description>&lt;P&gt;Data? Values?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2019 17:55:16 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-09-19T17:55:16Z</dc:date>
    <item>
      <title>Proc Freq Odds Ratios</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Odds-Ratios/m-p/590121#M28851</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a small problem with my odds ratios which I am generating from proc freq. They are giving me the inverse of what I want and I cannot figure out how to flip them. Right now I am comparing Treatment to Outcome while adjusting for Type. It is giving me the Odds Ratios for TRT to Outcome, when I want Outcome to TRT. Any ideas on how to flip them? I have tried flipping them in the tables statement and changing the order of the data but no luck. Here's the code I'm currently using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc freq data = p1 order = data;
	weight count;
	tables od*trt*out / 
			chisq expected nocol measures cmh alpha=.1 out = test;
run;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background-color: #eaeaea; white-space: pre;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eaeaea; white-space: pre;"&gt;I just want to flip it so I don't have to calculate confidence intervals manually, so if this can't be done or is very complicated let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eaeaea; white-space: pre;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 17:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Odds-Ratios/m-p/590121#M28851</guid>
      <dc:creator>alexgouv</dc:creator>
      <dc:date>2019-09-19T17:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Odds Ratios</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Odds-Ratios/m-p/590129#M28852</link>
      <description>&lt;P&gt;I am not sure I understand what you mean by your comment about flipping the variables.&amp;nbsp; In general, your outcome variable should be the column, that is, the last variable on the TABLES statement, with the level of interest in the first column.&amp;nbsp; Your row variable would be ordered such that the row1 level will be compared against the row2 level in the odds ratio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to control the ordering of the rows and columns by using the ORDER= option.&amp;nbsp; The easiest thing to do is to set up formats that properly reflect the ordering and use the ORDER=FORMATTED option.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 17:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Odds-Ratios/m-p/590129#M28852</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2019-09-19T17:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Odds Ratios</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Odds-Ratios/m-p/590143#M28853</link>
      <description>&lt;P&gt;Data? Values?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 17:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Odds-Ratios/m-p/590143#M28853</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-19T17:55:16Z</dc:date>
    </item>
  </channel>
</rss>

