<?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: How to get a odds ratio in Proc Glimmix for continuous predictors with interaction in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-a-odds-ratio-in-Proc-Glimmix-for-continuous/m-p/843646#M41808</link>
    <description>&lt;P&gt;I think the message is clear, you can't do that. It also doesn't make any mathematical or logical sense to compute LSMEANS on a continuous variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is it you are trying to learn here from Resistance__ohms10? If it is what your title says "odds ratio ... for continuous predictors with interaction", maybe something like this from the GLIMMIX documentation is what you want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model y = A x A*x / dist=binary oddsratio(at x=3);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Nov 2022 18:07:43 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-11-10T18:07:43Z</dc:date>
    <item>
      <title>How to get a odds ratio in Proc Glimmix for continuous predictors with interaction</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-a-odds-ratio-in-Proc-Glimmix-for-continuous/m-p/843640#M41807</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to perform regression analysis with binary outcome and continuous predictors with repeated measurement on subjects.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc glimmix data=data;
where position="Post";
      class sub_id;
      model y_variable (event="1") =  Force_N10 Resistance__ohms10 Time_in_Seconds  Resistance__ohms10*Force_N10/ solution dist=binary link=logit ddfm=satterth oddsratio;
      random intercept / subject=sub_id solution;
nloptions tech=nrridg;
lsmeans Resistance__ohms10 / cl ilink plots=mean(ilink cl);
ods exclude solutionr;run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried to use the code above but got the error below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="timothy19_0-1668101212460.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77173iB5C7C9C38261EB13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="timothy19_0-1668101212460.png" alt="timothy19_0-1668101212460.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can't put the continuous variable in the class statement. Can anyone please help?&lt;BR /&gt;&lt;BR /&gt;Tim&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 17:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-a-odds-ratio-in-Proc-Glimmix-for-continuous/m-p/843640#M41807</guid>
      <dc:creator>timothy19</dc:creator>
      <dc:date>2022-11-10T17:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a odds ratio in Proc Glimmix for continuous predictors with interaction</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-a-odds-ratio-in-Proc-Glimmix-for-continuous/m-p/843646#M41808</link>
      <description>&lt;P&gt;I think the message is clear, you can't do that. It also doesn't make any mathematical or logical sense to compute LSMEANS on a continuous variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is it you are trying to learn here from Resistance__ohms10? If it is what your title says "odds ratio ... for continuous predictors with interaction", maybe something like this from the GLIMMIX documentation is what you want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model y = A x A*x / dist=binary oddsratio(at x=3);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Nov 2022 18:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-a-odds-ratio-in-Proc-Glimmix-for-continuous/m-p/843646#M41808</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-10T18:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a odds ratio in Proc Glimmix for continuous predictors with interaction</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-a-odds-ratio-in-Proc-Glimmix-for-continuous/m-p/843653#M41809</link>
      <description>&lt;P&gt;If you remove the LSMEANS statement, which can't be used for continuous variables, the ODDSRATIO option that you have in the MODEL statement will provide a table showing the odds ratio for each variable in the interaction for a unit change.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 18:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-a-odds-ratio-in-Proc-Glimmix-for-continuous/m-p/843653#M41809</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-11-10T18:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a odds ratio in Proc Glimmix for continuous predictors with interaction</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-a-odds-ratio-in-Proc-Glimmix-for-continuous/m-p/843658#M41810</link>
      <description>&lt;P&gt;Thanks a lot for this. Just figured I should remove the lsmeans statement.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 18:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-a-odds-ratio-in-Proc-Glimmix-for-continuous/m-p/843658#M41810</guid>
      <dc:creator>timothy19</dc:creator>
      <dc:date>2022-11-10T18:27:47Z</dc:date>
    </item>
  </channel>
</rss>

