<?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: adjusted and unadjusted odds ratio in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/adjusted-and-unadjusted-odds-ratio/m-p/705106#M34122</link>
    <description>No, it's the value of '1' SAS that's the issue. SAS doesn't find any values that are 1 to be the reference. This could be either because you have no 1s in your data set or because you have a format applied to the VAR4 variable that displays the 1s as "Yes" for example. If the variable has a format, REF expects the formatted value, not the unformatted value.&lt;BR /&gt;&lt;BR /&gt;But we're guessing a bit. The log and the results from the code I included would allow us to definitively answer your question.</description>
    <pubDate>Thu, 10 Dec 2020 16:05:02 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-12-10T16:05:02Z</dc:date>
    <item>
      <title>adjusted and unadjusted odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/adjusted-and-unadjusted-odds-ratio/m-p/705090#M34118</link>
      <description>&lt;PRE&gt;/* Unadjusted OR from logistic regression HOSP*/&lt;BR /&gt;PROC LOGISTIC DATA= MB2;&lt;BR /&gt;CLASS VAR4(PARAM = REF REF = '1') VAR2 (PARAM = REF REF = '1')&lt;BR /&gt;VAR6 (PARAM = REF REF = '1') VAR10(PARAM = REF REF = '3');&lt;BR /&gt;MODEL VAR7(EVENT = '1') = VAR4;&lt;BR /&gt;RUN;&lt;/PRE&gt;&lt;P&gt;this is the unadjusted odds ratio code im running&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its saying invalid reference value for VAR4&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:19:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/adjusted-and-unadjusted-odds-ratio/m-p/705090#M34118</guid>
      <dc:creator>Birdsong32</dc:creator>
      <dc:date>2020-12-10T15:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: adjusted and unadjusted odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/adjusted-and-unadjusted-odds-ratio/m-p/705094#M34119</link>
      <description>&lt;PRE&gt;VAR4(PARAM = REF REF = '1')&lt;/PRE&gt;
&lt;P&gt;It means you don't have a value of 1 for your Var4.&lt;/P&gt;
&lt;P&gt;Run the following to see the values. I can't recall if it should be the formatted or unformatted value you include in the REF - the documentation does state which though.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=mb2;
table var4;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/360370"&gt;@Birdsong32&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;/* Unadjusted OR from logistic regression HOSP*/&lt;BR /&gt;PROC LOGISTIC DATA= MB2;&lt;BR /&gt;CLASS VAR4(PARAM = REF REF = '1') VAR2 (PARAM = REF REF = '1')&lt;BR /&gt;VAR6 (PARAM = REF REF = '1') VAR10(PARAM = REF REF = '3');&lt;BR /&gt;MODEL VAR7(EVENT = '1') = VAR4;&lt;BR /&gt;RUN;&lt;/PRE&gt;
&lt;P&gt;this is the unadjusted odds ratio code im running&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;its saying invalid reference value for VAR4&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/adjusted-and-unadjusted-odds-ratio/m-p/705094#M34119</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-12-10T15:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: adjusted and unadjusted odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/adjusted-and-unadjusted-odds-ratio/m-p/705102#M34120</link>
      <description>&lt;P&gt;If VAR4 has an associated format, then you need to specify the formatted value. And I strongly advise against including variables in the CLASS statement that are not also used in the MODEL statement. Any observation with a missing value on any of those unused variables will be omitted from the model fitting process, so you could end up using fewer observations than possible.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/adjusted-and-unadjusted-odds-ratio/m-p/705102#M34120</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-12-10T15:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: adjusted and unadjusted odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/adjusted-and-unadjusted-odds-ratio/m-p/705103#M34121</link>
      <description>&lt;P&gt;Should i change my variable name?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if so, how do i go by doing so?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:56:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/adjusted-and-unadjusted-odds-ratio/m-p/705103#M34121</guid>
      <dc:creator>Birdsong32</dc:creator>
      <dc:date>2020-12-10T15:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: adjusted and unadjusted odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/adjusted-and-unadjusted-odds-ratio/m-p/705106#M34122</link>
      <description>No, it's the value of '1' SAS that's the issue. SAS doesn't find any values that are 1 to be the reference. This could be either because you have no 1s in your data set or because you have a format applied to the VAR4 variable that displays the 1s as "Yes" for example. If the variable has a format, REF expects the formatted value, not the unformatted value.&lt;BR /&gt;&lt;BR /&gt;But we're guessing a bit. The log and the results from the code I included would allow us to definitively answer your question.</description>
      <pubDate>Thu, 10 Dec 2020 16:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/adjusted-and-unadjusted-odds-ratio/m-p/705106#M34122</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-12-10T16:05:02Z</dc:date>
    </item>
  </channel>
</rss>

