<?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: Response not shown in odds ratio estimates (PROC Logistic) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Response-not-shown-in-odds-ratio-estimates-PROC-Logistic/m-p/481549#M25042</link>
    <description>Because when you have a categorical variable there is no estimate for the reference level, when using referential coding. You should have no estimate for reference level=1. I assume that every categorical variable has a missing level, not just that one. Or is this in addition to your missing reference level. If that's the case it's probably a one to one match with another categorical variable level which will be a little hard to find with that many variables.&lt;BR /&gt;&lt;BR /&gt;Note that since you're using PARAM=REF you can include that after, rather than have it on each categorical variable:&lt;BR /&gt;class ....variable list ..... / param=ref; &lt;BR /&gt;&lt;BR /&gt;This will apply to all variables in the list.</description>
    <pubDate>Thu, 26 Jul 2018 15:15:33 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-07-26T15:15:33Z</dc:date>
    <item>
      <title>Response not shown in odds ratio estimates (PROC Logistic)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Response-not-shown-in-odds-ratio-estimates-PROC-Logistic/m-p/481537#M25041</link>
      <description>&lt;P&gt;Hello, thank you for taking the time to read this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to calculate a fully-adjusted OR with a mixed-model procedure. For some reason, the variable SMKSTAT2CAT only shows three responses when the question has four responses. I understand that if the difference is extremely small, it may not show it. However, the p-value was significant for the variable SMKSTAT2CAT when a chi sq test was used, the confidence interval &amp;amp; p-value were significant for response #4 for SMKSTAT2CAT in an age-adjusted model, and there is a visibly large difference in between the two frequencies for that response compared to the other responses. In the analysis of the maximum likelihood estimates, the response is shown, but it showed this as follows: DF=0&amp;nbsp; &amp;nbsp;Estimate=0&amp;nbsp; &amp;nbsp;SE=.&amp;nbsp; &amp;nbsp;Wald Chi-sq=.&amp;nbsp; &amp;nbsp;Pr&amp;gt;Chisq=.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone possibly elaborate on why the response #4 for SMKSTAT2CAT is not showing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SMKSTAT2CAT Freq:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Group One:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Group Two:&lt;/P&gt;&lt;P&gt;#1&amp;nbsp; &amp;nbsp;828&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#2&amp;nbsp; &amp;nbsp; 612&lt;/P&gt;&lt;P&gt;#2&amp;nbsp; &amp;nbsp;401&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #2&amp;nbsp; &amp;nbsp; 361&lt;/P&gt;&lt;P&gt;#3&amp;nbsp; &amp;nbsp;1,412&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#3&amp;nbsp; &amp;nbsp; 1,427&lt;/P&gt;&lt;P&gt;#4&amp;nbsp; &amp;nbsp;5,295&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#4&amp;nbsp; &amp;nbsp; 6,173&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my syntax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data= less;&lt;BR /&gt;class smkevcat (param=ref ref='1') R_MARITLCAT (param=ref ref='1') BMIcat (param=ref ref='4')&lt;BR /&gt;AHICOMPCAT (param=ref ref='2') SMKSTAT2CAT (param=ref ref='1') vignocat (param=ref ref='2')&lt;BR /&gt;modnocat (param=ref ref='2') strngnocat (param=ref ref='2') SHTFLU2CAT (param=ref ref='2')&lt;BR /&gt;SHTPNUYRCAT (param=ref ref='2') SHTHEPBCAT (param=ref ref='2') SHTHEPACAT (param=ref ref='2')&lt;BR /&gt;SHTTDCAT (param=ref ref='2') SHTHPV2CAT (param=ref ref='2') AHCSYR8CAT (param=ref ref='2')&lt;BR /&gt;AHCSYR9CAT (param=ref ref='2') AMDLONGRCAT (param=ref ref='0') APSPAPCAT (param=ref ref='2')&lt;BR /&gt;APSMAMCAT (param=ref ref='2') APSCOLCAT (param=ref ref='2') ASIHIVTCAT (param=ref ref='2');&lt;BR /&gt;model plborn = smkevcat r_maritlcat bmicat ahicompcat smkstat2cat vignocat modnocat strngnocat&lt;BR /&gt;shtflu2cat shtpnuyrcat shthepbcat shthepacat shttdcat shthpv2cat ahcsyr8cat ahcsyr9cat&lt;BR /&gt;amdlongrcat apspapcat apsmamcat apscolcat asihivtcat age_p;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 14:58:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Response-not-shown-in-odds-ratio-estimates-PROC-Logistic/m-p/481537#M25041</guid>
      <dc:creator>hng2r</dc:creator>
      <dc:date>2018-07-26T14:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Response not shown in odds ratio estimates (PROC Logistic)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Response-not-shown-in-odds-ratio-estimates-PROC-Logistic/m-p/481549#M25042</link>
      <description>Because when you have a categorical variable there is no estimate for the reference level, when using referential coding. You should have no estimate for reference level=1. I assume that every categorical variable has a missing level, not just that one. Or is this in addition to your missing reference level. If that's the case it's probably a one to one match with another categorical variable level which will be a little hard to find with that many variables.&lt;BR /&gt;&lt;BR /&gt;Note that since you're using PARAM=REF you can include that after, rather than have it on each categorical variable:&lt;BR /&gt;class ....variable list ..... / param=ref; &lt;BR /&gt;&lt;BR /&gt;This will apply to all variables in the list.</description>
      <pubDate>Thu, 26 Jul 2018 15:15:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Response-not-shown-in-odds-ratio-estimates-PROC-Logistic/m-p/481549#M25042</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-26T15:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Response not shown in odds ratio estimates (PROC Logistic)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Response-not-shown-in-odds-ratio-estimates-PROC-Logistic/m-p/481560#M25044</link>
      <description>&lt;P&gt;From my understanding, many&lt;SPAN&gt; modeling procedures include options in their CLASS statements&amp;nbsp;(or in other statements) which allow you to specify reference levels for categorical predictor variables. In addition, PARAM=REF has to be included for every variable because some variables have different referent groups.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every single variable &amp;amp; its responses are shown except for&amp;nbsp;SMKSTAT2CAT's response 4. Response 2 and 3 are shown with the referent group as 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I adjust for age, all of the responses&amp;nbsp;are shown for SMKSTAT2CAT. If I adjust for all of the variables, this is what occurs. If I change my referent group to 2 for SMKSTAT2CAT in a fully-adjusted model, the response 4 is now shown. However, I need the referent group to be response 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 15:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Response-not-shown-in-odds-ratio-estimates-PROC-Logistic/m-p/481560#M25044</guid>
      <dc:creator>hng2r</dc:creator>
      <dc:date>2018-07-26T15:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Response not shown in odds ratio estimates (PROC Logistic)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Response-not-shown-in-odds-ratio-estimates-PROC-Logistic/m-p/481564#M25045</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;From my understanding, many&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;modeling procedures include options in their CLASS statements&amp;nbsp;(or in other statements) which allow you to specify reference levels for categorical predictor variables. In addition, PARAM=REF has to be included for every variable because some variables have different referent groups.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;You can specify them separately, like this&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;class   smkevcat ( ref='1') 
        R_MARITLCAT ( ref='1') 
        BMIcat ( ref='4')
        AHICOMPCAT ( ref='2') 
        SMKSTAT2CAT ( ref='1') 
        vignocat ( ref='2')
        modnocat ( ref='2') 
        strngnocat ( ref='2') 
        SHTFLU2CAT ( ref='2')
        SHTPNUYRCAT ( ref='2') 
        SHTHEPBCAT ( ref='2') 
        SHTHEPACAT ( ref='2')
        SHTTDCAT ( ref='2')     
        SHTHPV2CAT ( ref='2') 
        AHCSYR8CAT ( ref='2')
        AHCSYR9CAT ( ref='2') 
        AMDLONGRCAT ( ref='0') 
        APSPAPCAT ( ref='2')
        APSMAMCAT ( ref='2') 
        APSCOLCAT ( ref='2') 
        ASIHIVTCAT ( ref='2') 
                            / param=ref;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;I think you likely have the other issue I mentioned then, the variables are too correlated with another variable. You can test this by creating the dummy variables semi-manually and then running a correlation check on them or something to check which ones are the same. If you have context of the data verify the categories and see if any are likely highly correlated. Usually there's a note in the log when this happens as well though. So verify your log.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 15:45:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Response-not-shown-in-odds-ratio-estimates-PROC-Logistic/m-p/481564#M25045</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-26T15:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Response not shown in odds ratio estimates (PROC Logistic)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Response-not-shown-in-odds-ratio-estimates-PROC-Logistic/m-p/481576#M25046</link>
      <description>&lt;P&gt;That makes sense, thank you!! There was nothing in the log. I have a limited knowledge of SAS,&amp;nbsp;so I was wondering what test/statement I could use to find the correlation of the dummy variables? I just created them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 16:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Response-not-shown-in-odds-ratio-estimates-PROC-Logistic/m-p/481576#M25046</guid>
      <dc:creator>hng2r</dc:creator>
      <dc:date>2018-07-26T16:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Response not shown in odds ratio estimates (PROC Logistic)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Response-not-shown-in-odds-ratio-estimates-PROC-Logistic/m-p/481584#M25047</link>
      <description>Honestly not sure, besides an exact check which would be tedious. I would probably start by running a proc corr (correlation matrix) and look at the variables that are really highly correlated. Its not supposed to be used for 0/1 variables but will likely point you in the direction you need.</description>
      <pubDate>Thu, 26 Jul 2018 16:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Response-not-shown-in-odds-ratio-estimates-PROC-Logistic/m-p/481584#M25047</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-26T16:28:26Z</dc:date>
    </item>
  </channel>
</rss>

