<?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: ODDS ratio- with reference level in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODDS-ratio-with-reference-level/m-p/349927#M81292</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The way you put referece level looks correct to me. I tested your code. You can find a table "&lt;STRONG&gt;Class Level Information"&amp;nbsp;&lt;/STRONG&gt;from the output (see below). The "0-0-0" in "&lt;STRONG&gt;Design Variables"&amp;nbsp;&lt;/STRONG&gt;represents the reference group, which is what you specified.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Be careful about your formats. Better to remove those blanks from format. Sometime, this can cause unexpected problem and can be hard to debug.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Format;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Value timef&lt;/P&gt;&lt;P&gt;1='6 months to less than 12 month&lt;U&gt;s '&lt;/U&gt;&lt;BR /&gt;2='12 months to less than 24 month&lt;U&gt;s '&lt;/U&gt;&lt;BR /&gt;3='24 months to less than 36 month&lt;U&gt;s '&lt;/U&gt;&lt;BR /&gt;4='36 months and above'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Value $oldf&lt;/P&gt;&lt;P&gt;'0'='Young'&lt;BR /&gt;'1'='Old'&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Fri, 14 Apr 2017 01:06:18 GMT</pubDate>
    <dc:creator>CiCi</dc:creator>
    <dc:date>2017-04-14T01:06:18Z</dc:date>
    <item>
      <title>ODDS ratio- with reference level</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODDS-ratio-with-reference-level/m-p/349895#M81269</link>
      <description>&lt;P&gt;Hi, I need to calculate odds ratios, while keeping &amp;nbsp;this group of time variable as referance -(&lt;SPAN&gt;6 months to less than 12 months).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am new to this, please check the below code and I want to make sure I am doing this correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I appreciate your timely help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value timef 1='6 months to less than 12 months '&lt;BR /&gt;2='12 months to less than 24 months '&lt;BR /&gt;3='24 months to less than 36 months '&lt;BR /&gt;4='36 months and above';&lt;/P&gt;&lt;P&gt;value $oldf '0'='Young'&lt;BR /&gt;'1'='Old'&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data one;&lt;BR /&gt;input old $1. time;&lt;BR /&gt;datalines;&lt;BR /&gt;1 1&lt;BR /&gt;0 2&lt;BR /&gt;1 3&lt;BR /&gt;1 2&lt;BR /&gt;0 1&lt;BR /&gt;1 3&lt;BR /&gt;0 2&lt;BR /&gt;1 3&lt;BR /&gt;0 4&lt;BR /&gt;1 4&lt;BR /&gt;0 3&lt;BR /&gt;1 4&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data two;&lt;BR /&gt;set one;&lt;BR /&gt;format time timef.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;proc logistic data=two plots(only)=(effect (clband) oddsratio (type=horizontalstat));&lt;BR /&gt;class time(param=ref ref="6 months to less than 12 months");&lt;BR /&gt;model old (event="1") = time/clodds=pl;&lt;BR /&gt;run;&lt;BR /&gt;ods graphics off;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 22:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODDS-ratio-with-reference-level/m-p/349895#M81269</guid>
      <dc:creator>ahhh</dc:creator>
      <dc:date>2017-04-13T22:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: ODDS ratio- with reference level</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODDS-ratio-with-reference-level/m-p/349927#M81292</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The way you put referece level looks correct to me. I tested your code. You can find a table "&lt;STRONG&gt;Class Level Information"&amp;nbsp;&lt;/STRONG&gt;from the output (see below). The "0-0-0" in "&lt;STRONG&gt;Design Variables"&amp;nbsp;&lt;/STRONG&gt;represents the reference group, which is what you specified.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Be careful about your formats. Better to remove those blanks from format. Sometime, this can cause unexpected problem and can be hard to debug.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Format;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Value timef&lt;/P&gt;&lt;P&gt;1='6 months to less than 12 month&lt;U&gt;s '&lt;/U&gt;&lt;BR /&gt;2='12 months to less than 24 month&lt;U&gt;s '&lt;/U&gt;&lt;BR /&gt;3='24 months to less than 36 month&lt;U&gt;s '&lt;/U&gt;&lt;BR /&gt;4='36 months and above'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Value $oldf&lt;/P&gt;&lt;P&gt;'0'='Young'&lt;BR /&gt;'1'='Old'&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Apr 2017 01:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODDS-ratio-with-reference-level/m-p/349927#M81292</guid>
      <dc:creator>CiCi</dc:creator>
      <dc:date>2017-04-14T01:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: ODDS ratio- with reference level</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODDS-ratio-with-reference-level/m-p/349928#M81293</link>
      <description>&lt;P&gt;BTW, I cannot attached the table due to HTML error....Try to find the table labelled as &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;STRONG&gt;Class Level Information".&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 01:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODDS-ratio-with-reference-level/m-p/349928#M81293</guid>
      <dc:creator>CiCi</dc:creator>
      <dc:date>2017-04-14T01:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: ODDS ratio- with reference level</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODDS-ratio-with-reference-level/m-p/350046#M81322</link>
      <description>&lt;P&gt;use ODDSRATIO statement or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;model old (event="1") = time/clodds=pl &amp;nbsp;EXP ;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 14:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODDS-ratio-with-reference-level/m-p/350046#M81322</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-14T14:03:10Z</dc:date>
    </item>
  </channel>
</rss>

