<?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 Multilevel model proc glimmix how to define reference group for predictors when old SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-model-proc-glimmix-how-to-define-reference-group-for/m-p/829826#M41104</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to do multilevel analysis by using Proc Glimmix and applying this:&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings15/3430-2015.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings15/3430-2015.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Anyhow, I have multiple dichotomous explanatory factors, and I need to specify the reference groups for those. I have used the tips provided here:&amp;nbsp;&lt;A href="https://support.sas.com/kb/37/108.html" target="_blank"&gt;https://support.sas.com/kb/37/108.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and aiming to use the sort option. I have older version of SAS, so setting reference for class (ref=class) is not option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that I have been able to sort right reference groups for most of the explanatory factors, but there are still few left that it is not read right. I have tried to set them with or without descending option and tried different ways to set the right reference group without succeeding. Is there any tips what I could do or try?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is example of code. Of this example, all other explanatory factors are read right expect ind_fm and ind_wh. They does not work either then if I define "descending" in the front.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=od out=New;&lt;BR /&gt;by&lt;BR /&gt;descending sp&lt;BR /&gt;descending im2&lt;BR /&gt;am2&lt;BR /&gt;school_level&lt;BR /&gt;ind_sd&lt;BR /&gt;ind_hm&lt;BR /&gt;ind_fm&lt;BR /&gt;ind_bn&amp;nbsp;&lt;/P&gt;&lt;P&gt;ind_hw&lt;BR /&gt;ind_dp&lt;/P&gt;&lt;P&gt;kK;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GLIMMIX DATA=new METHOD=LAPLACE NOCLPRINT&lt;BR /&gt;order=data;&lt;BR /&gt;CLASS&lt;/P&gt;&lt;P&gt;sp&lt;BR /&gt;&amp;nbsp;im2&lt;BR /&gt;am2&lt;BR /&gt;school_level&lt;BR /&gt;ind_sd&lt;BR /&gt;ind_hm&lt;BR /&gt;ind_fm&lt;BR /&gt;ind_bn&amp;nbsp;&lt;/P&gt;&lt;P&gt;ind_hw&lt;BR /&gt;ind_dp&lt;/P&gt;&lt;P&gt;kK;&lt;BR /&gt;MODEL ind_ls (EVENT=LAST) =&lt;BR /&gt;sp&lt;BR /&gt;&amp;nbsp;im2&lt;BR /&gt;am2&lt;BR /&gt;school_level&lt;BR /&gt;ind_sd&lt;BR /&gt;ind_hm&lt;BR /&gt;ind_fm&lt;BR /&gt;ind_bn&lt;/P&gt;&lt;P&gt;ind_hw&lt;BR /&gt;ind_dp / CL DIST=BINARY&lt;BR /&gt;LINK=LOGIT SOLUTION ODDSRATIO (DIFF=FIRST LABEL);&lt;BR /&gt;RANDOM INTERCEPT / SUBJECT=kK TYPE=VC SOLUTION CL;&lt;BR /&gt;COVTEST / WALD;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for all the help you can provide!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2022 10:17:57 GMT</pubDate>
    <dc:creator>stmaatta</dc:creator>
    <dc:date>2022-08-23T10:17:57Z</dc:date>
    <item>
      <title>Multilevel model proc glimmix how to define reference group for predictors when old SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-model-proc-glimmix-how-to-define-reference-group-for/m-p/829826#M41104</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to do multilevel analysis by using Proc Glimmix and applying this:&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings15/3430-2015.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings15/3430-2015.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Anyhow, I have multiple dichotomous explanatory factors, and I need to specify the reference groups for those. I have used the tips provided here:&amp;nbsp;&lt;A href="https://support.sas.com/kb/37/108.html" target="_blank"&gt;https://support.sas.com/kb/37/108.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and aiming to use the sort option. I have older version of SAS, so setting reference for class (ref=class) is not option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that I have been able to sort right reference groups for most of the explanatory factors, but there are still few left that it is not read right. I have tried to set them with or without descending option and tried different ways to set the right reference group without succeeding. Is there any tips what I could do or try?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is example of code. Of this example, all other explanatory factors are read right expect ind_fm and ind_wh. They does not work either then if I define "descending" in the front.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=od out=New;&lt;BR /&gt;by&lt;BR /&gt;descending sp&lt;BR /&gt;descending im2&lt;BR /&gt;am2&lt;BR /&gt;school_level&lt;BR /&gt;ind_sd&lt;BR /&gt;ind_hm&lt;BR /&gt;ind_fm&lt;BR /&gt;ind_bn&amp;nbsp;&lt;/P&gt;&lt;P&gt;ind_hw&lt;BR /&gt;ind_dp&lt;/P&gt;&lt;P&gt;kK;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GLIMMIX DATA=new METHOD=LAPLACE NOCLPRINT&lt;BR /&gt;order=data;&lt;BR /&gt;CLASS&lt;/P&gt;&lt;P&gt;sp&lt;BR /&gt;&amp;nbsp;im2&lt;BR /&gt;am2&lt;BR /&gt;school_level&lt;BR /&gt;ind_sd&lt;BR /&gt;ind_hm&lt;BR /&gt;ind_fm&lt;BR /&gt;ind_bn&amp;nbsp;&lt;/P&gt;&lt;P&gt;ind_hw&lt;BR /&gt;ind_dp&lt;/P&gt;&lt;P&gt;kK;&lt;BR /&gt;MODEL ind_ls (EVENT=LAST) =&lt;BR /&gt;sp&lt;BR /&gt;&amp;nbsp;im2&lt;BR /&gt;am2&lt;BR /&gt;school_level&lt;BR /&gt;ind_sd&lt;BR /&gt;ind_hm&lt;BR /&gt;ind_fm&lt;BR /&gt;ind_bn&lt;/P&gt;&lt;P&gt;ind_hw&lt;BR /&gt;ind_dp / CL DIST=BINARY&lt;BR /&gt;LINK=LOGIT SOLUTION ODDSRATIO (DIFF=FIRST LABEL);&lt;BR /&gt;RANDOM INTERCEPT / SUBJECT=kK TYPE=VC SOLUTION CL;&lt;BR /&gt;COVTEST / WALD;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for all the help you can provide!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 10:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-model-proc-glimmix-how-to-define-reference-group-for/m-p/829826#M41104</guid>
      <dc:creator>stmaatta</dc:creator>
      <dc:date>2022-08-23T10:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel model proc glimmix how to define reference group for predictors when old SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-model-proc-glimmix-how-to-define-reference-group-for/m-p/829831#M41105</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;What version of SAS do you have?&lt;BR /&gt;Submit :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%PUT &amp;amp;=sysvlong4;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to find out (and send us what it displays in the LOG).&lt;BR /&gt;&lt;BR /&gt;I think you must have a very old SAS if it does not support&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;REF=’level’ | FIRST | LAST&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;on the variables you specify in the CLASS statement.&lt;BR /&gt;&lt;BR /&gt;Use that REF= between brackets right after specification of your dichotomous explanatory variable.&lt;BR /&gt;Like here :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;CLASS Statement

CLASS variable &amp;lt;(REF= option)&amp;gt; …&amp;lt;variable &amp;lt;(REF= option)&amp;gt;&amp;gt; &amp;lt;/ global-options&amp;gt;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 10:42:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-model-proc-glimmix-how-to-define-reference-group-for/m-p/829831#M41105</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-08-23T10:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel model proc glimmix how to define reference group for predictors when old SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-model-proc-glimmix-how-to-define-reference-group-for/m-p/829837#M41106</link>
      <description>&lt;P&gt;Thank you for the reply. My SAS version is&amp;nbsp;8.3 Update 3 (8.3.3.181) (64-bit).&lt;/P&gt;&lt;P&gt;I tried once again with REF-option in Class statement, and I noticed that it seems to work just fine with dichotomous predictors, but not if I have three classes or more. For instance, I have predictor variable called education, and it has 3 classes (low, middle and high). I would like to use high as my reference category. And when I define it with class ref-option, it sets the middle-class as reference. The same thing happens with other variables that have 3 or more classes (e.g. perceived income, or family living arrangements) It does not recognise the right reference group. Any tips for that?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 11:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-model-proc-glimmix-how-to-define-reference-group-for/m-p/829837#M41106</guid>
      <dc:creator>stmaatta</dc:creator>
      <dc:date>2022-08-23T11:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel model proc glimmix how to define reference group for predictors when old SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-model-proc-glimmix-how-to-define-reference-group-for/m-p/829845#M41107</link>
      <description>&lt;P&gt;SAS v8. Phew&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;. &lt;BR /&gt;(&amp;nbsp;SAS 9.2 was released in March 2009 )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the best you can do is recode your levels to a numeric (1,2,3 ...).&lt;BR /&gt;Then apply a format to the numbered levels (to see the original string value).&lt;/P&gt;
&lt;P&gt;When choosing a reference level, SAS v8 will take the internal value (AFAIR) and it will be the first or the last level (AFAIR).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 12:57:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-model-proc-glimmix-how-to-define-reference-group-for/m-p/829845#M41107</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-08-23T12:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel model proc glimmix how to define reference group for predictors when old SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-model-proc-glimmix-how-to-define-reference-group-for/m-p/829848#M41108</link>
      <description>&lt;P&gt;The last v8 release was over 20 years ago (March, 2001). There have been many, many advances in mixed models since that release beyond REF= for specifying reference levels for CLASS effects. If you can find a newer release, you will be very happy with the results you get.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 13:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-model-proc-glimmix-how-to-define-reference-group-for/m-p/829848#M41108</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2022-08-23T13:16:29Z</dc:date>
    </item>
  </channel>
</rss>

