<?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 Oddratio statement in in PROC logistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Oddratio-statement-in-in-PROC-logistic/m-p/273532#M14398</link>
    <description>&lt;P&gt;if i have a model like this;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=saslib.sad_PLFO;&lt;/P&gt;&lt;P&gt;where PLFO in (0,1);&lt;/P&gt;&lt;P&gt;class sex &lt;SPAN&gt;race &amp;nbsp;presents education wealth region&lt;/SPAN&gt;&amp;nbsp;/ param=ref;&lt;/P&gt;&lt;P&gt;model PLFO (event='1') = age sex race &amp;nbsp;presents education wealth region age*education wealth*region region*education;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I seperately get the odds ratio for all the ten variables &amp;nbsp;in the model using the oddratio statement in proc logistic. Since the variable region is invoved in two different interaction.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2016 09:11:10 GMT</pubDate>
    <dc:creator>sammmy</dc:creator>
    <dc:date>2016-05-27T09:11:10Z</dc:date>
    <item>
      <title>Oddratio statement in in PROC logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Oddratio-statement-in-in-PROC-logistic/m-p/273532#M14398</link>
      <description>&lt;P&gt;if i have a model like this;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=saslib.sad_PLFO;&lt;/P&gt;&lt;P&gt;where PLFO in (0,1);&lt;/P&gt;&lt;P&gt;class sex &lt;SPAN&gt;race &amp;nbsp;presents education wealth region&lt;/SPAN&gt;&amp;nbsp;/ param=ref;&lt;/P&gt;&lt;P&gt;model PLFO (event='1') = age sex race &amp;nbsp;presents education wealth region age*education wealth*region region*education;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I seperately get the odds ratio for all the ten variables &amp;nbsp;in the model using the oddratio statement in proc logistic. Since the variable region is invoved in two different interaction.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 09:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Oddratio-statement-in-in-PROC-logistic/m-p/273532#M14398</guid>
      <dc:creator>sammmy</dc:creator>
      <dc:date>2016-05-27T09:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Oddratio statement in in PROC logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Oddratio-statement-in-in-PROC-logistic/m-p/273579#M14400</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm not sure, but I think that is the exponential of the estimate. You could calculate it exporting the estimations or with the&amp;nbsp;option&amp;nbsp;&amp;nbsp;expb &amp;nbsp;in the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output ParameterEstimates=_PEst;
proc logistic data=sashelp.class;
	class sex;
	model sex(ref="F") = Age Weight Height / expb  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 May 2016 12:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Oddratio-statement-in-in-PROC-logistic/m-p/273579#M14400</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2016-05-27T12:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Oddratio statement in in PROC logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Oddratio-statement-in-in-PROC-logistic/m-p/273597#M14402</link>
      <description>&lt;P&gt;Thank, I thought of that but the values I get are different from the values of the odds ratio estimate, I have checked that for the variables not in the interaction.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 14:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Oddratio-statement-in-in-PROC-logistic/m-p/273597#M14402</guid>
      <dc:creator>sammmy</dc:creator>
      <dc:date>2016-05-27T14:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Oddratio statement in in PROC logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Oddratio-statement-in-in-PROC-logistic/m-p/273752#M14408</link>
      <description>&lt;PRE&gt;


ods output OddsRatios=OddsRatios;
proc logistic data=sashelp.class;
	class sex;
	model sex(ref="F") = Age Weight Height   ;
	oddsratio age;
run;

&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 May 2016 06:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Oddratio-statement-in-in-PROC-logistic/m-p/273752#M14408</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-05-28T06:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Oddratio statement in in PROC logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Oddratio-statement-in-in-PROC-logistic/m-p/273753#M14409</link>
      <description>&lt;P&gt;thank you so much, but that is quit easy. But from my example one variable is invoveld in two seperate interaction.&lt;/P&gt;&lt;P&gt;what if I want to get the odds ratio for educatio*region without wealth since region is also involved in interaction with wealth?&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 07:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Oddratio-statement-in-in-PROC-logistic/m-p/273753#M14409</guid>
      <dc:creator>sammmy</dc:creator>
      <dc:date>2016-05-28T07:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Oddratio statement in in PROC logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Oddratio-statement-in-in-PROC-logistic/m-p/273776#M14410</link>
      <description>&lt;P&gt;You can not &lt;EM&gt;separately&lt;/EM&gt; get an odds ratio of the variables that are involved in some interactionsterms. But, you can easily get the oddsratios for a variable for each level of the other variable it interacts with: just use the "at" option in the odds ratio statement. Like in this example which calculate the oddsratio for the variable A at each level of B, and the oddsratio for B for at level of A.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mydata;
  n=1000;
  do a=0 to 1;
    do b=0 to 1;
	  odds=(1.2**a)*(0.75**b)*(0.8**(a*b));
	  p=odds/(1+odds);
	  y=rand('binomial',p,n);
	  output;
	end;
  end;
run;
proc logistic data=mydata;
  class a(ref="0") b(ref="0")/param=glm ;
  model y/n=a b a*b;
  oddsratio a/at(b=all) diff=ref;
  oddsratio b/at(a=all) diff=ref;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 19:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Oddratio-statement-in-in-PROC-logistic/m-p/273776#M14410</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2016-05-28T19:18:43Z</dc:date>
    </item>
  </channel>
</rss>

