<?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: Oddsratio statement in proc logistic switches my reference group? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Oddsratio-statement-in-proc-logistic-switches-my-reference-group/m-p/116428#M6110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oddsratio surveycomp/diff=ref;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if the ref needs to be in quotes or not, but you can verify in the docs. May also be version issues as mentioned by statdave.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2012 18:14:13 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2012-08-30T18:14:13Z</dc:date>
    <item>
      <title>Oddsratio statement in proc logistic switches my reference group?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Oddsratio-statement-in-proc-logistic-switches-my-reference-group/m-p/116426#M6108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: %value;"&gt;Hey there,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: %value;"&gt;I am using the following code to test an interaction with PROC LOGISTIC:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;logistic&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=aim1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; group (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;param&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=ref &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'Usual_Care'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;) surveycomp (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;param&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=ref &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'No'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; init1stapp (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;event&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'Yes'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;)= group surveycomp group*surveycomp/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;expb&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;lackfit&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;oddsratio&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; surveycomp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: black;"&gt;When the Wald Odds Ratio table is produced, the reference group for surveycomp = "Yes".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellpadding="0" cellspacing="0" class="Table"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="b Data" nowrap="nowrap" style="text-align: left;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;surveycomp No vs Yes at group=Intervention&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="b Data" nowrap="nowrap" style="text-align: right;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;0.349&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="b Data" nowrap="nowrap" style="text-align: right;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;0.228&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="b Data" nowrap="nowrap" style="text-align: right;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;0.535&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="b Data" nowrap="nowrap" style="text-align: left;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;surveycomp No vs Yes at group=Usual_Care&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="b Data" nowrap="nowrap" style="text-align: right;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;0.508&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="b Data" nowrap="nowrap" style="text-align: right;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;0.333&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="b Data" nowrap="nowrap" style="text-align: right;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;0.776&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: black;"&gt;I'd prefer the reference group be the same as in the class statement (surveycomp = "No"). Is there a way to specify this in the ODDSRATIO statement?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: black;"&gt;Thanks so much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: black;"&gt;-J&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 13:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Oddsratio-statement-in-proc-logistic-switches-my-reference-group/m-p/116426#M6108</guid>
      <dc:creator>fetterbug</dc:creator>
      <dc:date>2012-07-24T13:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Oddsratio statement in proc logistic switches my reference group?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Oddsratio-statement-in-proc-logistic-switches-my-reference-group/m-p/116427#M6109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, the ODDSRATIO statement did not honor the REF= level set by the CLASS statement until the current (SAS 9.3 TS1M2) release.&amp;nbsp; Prior to that release, you canuse the LSMEANS statement with the DIFF=CONTROL, EXP, and CL options &lt;/P&gt;&lt;P&gt;instead of the ODDSRATIO statement.&amp;nbsp; The LSMEANS statement requires that you also use the PARAM=GLM option in the CLASS statement.&amp;nbsp; For example, if variable A has values 1 and 2 and you want the odds ratio with the odds for level 1 in the denominator, the following LSMEANS statement provides the odds ratio estimate and confidence limits in the "Exponentiated" columns of the "Differences of A Least Squares Means" table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic;&lt;/P&gt;&lt;P&gt; class a b / param=glm;&lt;/P&gt;&lt;P&gt; model y=a b;&lt;/P&gt;&lt;P&gt; lsmeans a / diff=control('2') exp cl;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 17:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Oddsratio-statement-in-proc-logistic-switches-my-reference-group/m-p/116427#M6109</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2012-08-30T17:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Oddsratio statement in proc logistic switches my reference group?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Oddsratio-statement-in-proc-logistic-switches-my-reference-group/m-p/116428#M6110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oddsratio surveycomp/diff=ref;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if the ref needs to be in quotes or not, but you can verify in the docs. May also be version issues as mentioned by statdave.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 18:14:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Oddsratio-statement-in-proc-logistic-switches-my-reference-group/m-p/116428#M6110</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-08-30T18:14:13Z</dc:date>
    </item>
  </channel>
</rss>

