<?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: proc glimmix, convergence and odds ratio in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904584#M44882</link>
    <description>&lt;P&gt;Thank you. I changed that and I still do not have the odds ratios. Please see below the results:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_0-1701029260212.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90202i1580250596D92604/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_0-1701029260212.png" alt="astudent_0-1701029260212.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_1-1701029279818.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90203iEF2747B1E82C350C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_1-1701029279818.png" alt="astudent_1-1701029279818.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_2-1701029296993.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90204i65D7A24B232305A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_2-1701029296993.png" alt="astudent_2-1701029296993.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_3-1701029313919.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90205iB19A8151E5B4A609/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_3-1701029313919.png" alt="astudent_3-1701029313919.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the log message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_4-1701029346486.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90206i21727594FDF10869/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_4-1701029346486.png" alt="astudent_4-1701029346486.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Nov 2023 20:09:12 GMT</pubDate>
    <dc:creator>astudent</dc:creator>
    <dc:date>2023-11-26T20:09:12Z</dc:date>
    <item>
      <title>proc glimmix, convergence and odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904522#M44871</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have a dataset with binary responses for the outcome variable&amp;nbsp;HHFS_bi (0, 1). The RespID is nested in the pant-num. I want to see if there was any change in the HHFS_bi overtime (baseline to follow-up). I have run this code:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;proc glimmix data=home.FS_Binary;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;class RespID pant_num group_num time DemAge00;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;model HHFS_bi(ref="0")= group_num time DemAge00 group_num*time / dist=binary link=logit solution ddfm=kr;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;random RespID(pant_num*group_num) time*pant_num(group_num);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;lsmeans group_num*time /oddsratio ilink e;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;estimate 'intervention T2-T1 - control T2-T1' group_num*time 1 -1 -1 1/ exp cl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;and got a "did not converge" note in the log message and the results were not giving me the odds ration. Someone recommended adding variable nitemhh for better performance of the model but when I added it the code did not run at all. Could someone help explain what may be missing or needs to be removed from the model for me to get the desired results. Below is the code I used to create the additional suggested variable.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;/*create binary F.S categories and their cumulative sum*/&lt;/DIV&gt;&lt;DIV&gt;data home.FS_Binary (rename=(cum_sum=nitemhh));&lt;/DIV&gt;&lt;DIV&gt;set home.final_stacked_outcomes;&lt;/DIV&gt;&lt;DIV&gt;if HHFS_Status in ("High","Marginal") then HHFS_bi=0;&lt;/DIV&gt;&lt;DIV&gt;if HHFS_Status in ("Low","Very Low") then HHFS_bi=1;&lt;/DIV&gt;&lt;DIV&gt;retain cum_sum;/*create the cumulative sum of the binary variable*/&lt;/DIV&gt;&lt;DIV&gt;cum_sum+HHFS_bi;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Below is the log message with the additional variable for this code:&lt;/STRONG&gt;&amp;nbsp;proc glimmix data=home.FS_Binary;&lt;BR /&gt;class RespID pant_num group_num time DemAge00;&lt;BR /&gt;model HHFS_bi(ref="0")/nitemhh= group_num time DemAge00 group_num*time / dist=binary link=logit solution ddfm=kr; /* since we added PartID and site in the random statement, they are considered as random effect and do not need to be included in the model */&lt;BR /&gt;random RespID(pant_num*group_num) time*pant_num(group_num);&lt;BR /&gt;lsmeans group_num*time /oddsratio ilink e;/*see the position of the levels below*/&lt;BR /&gt;estimate 'intervention T2-T1 - control T2-T1' group_num*time 1 -1 -1 1/ exp cl;&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_1-1700931981702.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90187i8CF1507A73C9238B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_1-1700931981702.png" alt="astudent_1-1700931981702.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Below is the log message for this code:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;proc glimmix data=home.FS_Binary;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;class RespID pant_num group_num time DemAge00;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;model HHFS_bi(ref="0")= group_num time DemAge00 group_num*time / dist=binary link=logit solution ddfm=kr;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;random RespID(pant_num*group_num) time*pant_num(group_num);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;lsmeans group_num*time /oddsratio ilink e;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;estimate 'intervention T2-T1 - control T2-T1' group_num*time 1 -1 -1 1/ exp cl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_0-1700931652832.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90186i8CBDE67845D14C9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_0-1700931652832.png" alt="astudent_0-1700931652832.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 25 Nov 2023 17:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904522#M44871</guid>
      <dc:creator>astudent</dc:creator>
      <dc:date>2023-11-25T17:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix, convergence and odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904557#M44872</link>
      <description>&lt;P&gt;For the 2nd PROC GLIMMIX (the one with ERROR in red).&lt;/P&gt;
&lt;P&gt;You probably want to change&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model HHFS_bi(ref="0")/nitemhh= group_num time DemAge00 group_num*time / dist=binary link=logit solution ddfm=kr;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;into&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model HHFS_bi(ref="0") = nitemhh group_num time DemAge00 group_num*time / dist=binary link=logit solution ddfm=kr;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 17:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904557#M44872</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-26T17:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix, convergence and odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904558#M44873</link>
      <description>&lt;P&gt;And here are some Model Convergence tips for PROC GLIMMIX (sorry for the blue highlighting, but you can still read it after clicking the image to maximize) :&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Issues-with-TYPE-in-PROC-GLIMMIX/m-p/800154#M39354" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Issues-with-TYPE-in-PROC-GLIMMIX/m-p/800154#M39354&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 17:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904558#M44873</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-26T17:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix, convergence and odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904568#M44875</link>
      <description>&lt;P&gt;Thank you so much. I changed the model statement and the code is running ok however, I still have the convergence issue and I am not getting the odds ratios in my results. Please see below how my results are coming out:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_0-1701023715810.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90196i5EDB1FF7F4286E8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_0-1701023715810.png" alt="astudent_0-1701023715810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_2-1701023745400.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90198i12797F6F9FB3BC34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_2-1701023745400.png" alt="astudent_2-1701023745400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_4-1701023808723.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90200iFC29FF356F0ACB46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_4-1701023808723.png" alt="astudent_4-1701023808723.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_5-1701023825366.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90201iEB8D5473FDC68EE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_5-1701023825366.png" alt="astudent_5-1701023825366.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 18:37:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904568#M44875</guid>
      <dc:creator>astudent</dc:creator>
      <dc:date>2023-11-26T18:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix, convergence and odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904575#M44879</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have many columns in the design matrices (especially Z) and not so many observations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a bit of a mismatch / imbalance , but OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have a hierarchical data structure and you have a nested design.&lt;BR /&gt;RespID is nested within pant_num and pant_num is nested within group_num, correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you need to get rid of the 1st asterisk (*) in your random statement.&lt;BR /&gt;Change&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;random RespID(pant_num*group_num) time*pant_num(group_num);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;into&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;random RespID(pant_num group_num) time*pant_num(group_num);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and submit again.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 19:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904575#M44879</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-26T19:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix, convergence and odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904576#M44880</link>
      <description>&lt;P&gt;On top of my previous reply (from 10 minutes ago) ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Probably you also need to use SUBJECT= as an option in RANDOM statement.&lt;BR /&gt;That will make it much more numerically efficient.&lt;/P&gt;
&lt;P&gt;Definitely&amp;nbsp;worth checking out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Understanding the Subject= Effect in SAS Mixed Models Software&lt;BR /&gt;SAS Software YouTube channel&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=pX88W9xViJ8" target="_blank"&gt;https://www.youtube.com/watch?v=pX88W9xViJ8&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Br, Koen&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 19:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904576#M44880</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-26T19:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix, convergence and odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904584#M44882</link>
      <description>&lt;P&gt;Thank you. I changed that and I still do not have the odds ratios. Please see below the results:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_0-1701029260212.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90202i1580250596D92604/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_0-1701029260212.png" alt="astudent_0-1701029260212.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_1-1701029279818.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90203iEF2747B1E82C350C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_1-1701029279818.png" alt="astudent_1-1701029279818.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_2-1701029296993.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90204i65D7A24B232305A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_2-1701029296993.png" alt="astudent_2-1701029296993.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_3-1701029313919.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90205iB19A8151E5B4A609/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_3-1701029313919.png" alt="astudent_3-1701029313919.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the log message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="astudent_4-1701029346486.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90206i21727594FDF10869/image-size/medium?v=v2&amp;amp;px=400" role="button" title="astudent_4-1701029346486.png" alt="astudent_4-1701029346486.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 20:09:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904584#M44882</guid>
      <dc:creator>astudent</dc:creator>
      <dc:date>2023-11-26T20:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix, convergence and odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904586#M44884</link>
      <description>&lt;P&gt;In the Covariances Parameter (CovParm) Estimates output object (ODS table)&lt;/P&gt;
&lt;P&gt;I can still see the asterisk (*).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably haven't tried subject= effect yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For GLIMMIX convergence issues, see another post I have done in this topic thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 20:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904586#M44884</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-26T20:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix, convergence and odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904640#M44896</link>
      <description>&lt;P&gt;Your RANDOM statemen specification is unusual. That might be causing the nonconvergence issue. Can you send in your sample data? And explain what RESP_ID and PANT_ID are?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 14:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/904640#M44896</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2023-11-27T14:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix, convergence and odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/905160#M44922</link>
      <description>&lt;P&gt;Looking at your iteration history, I see that it is not moving toward a solution, and your gradient is getting larger with each step. That is a strong indicator that your RANDOM statement is "over-specified" in some sense. Consider doing two things: simplify the RANDOM statement and add an NLOPTIONS maxiter=1000; statement. GLIMMIX has a default maximum of 20 iterations, and for binary responses this is almost always too few.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 13:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/905160#M44922</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-11-29T13:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix, convergence and odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/906112#M44966</link>
      <description>&lt;P&gt;I appreciate all the suggestions I received so far. I tried simplifying the random statement, using the subject in the random statement and adding the&amp;nbsp;NLOPTIONS maxiter=1000 statement. I still have the convergence issues and I did not get the results I am looking for. Here is the sample data:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;RespID&lt;/TD&gt;&lt;TD&gt;pant_num&lt;/TD&gt;&lt;TD&gt;group_num&lt;/TD&gt;&lt;TD&gt;time&lt;/TD&gt;&lt;TD&gt;DemAge00&lt;/TD&gt;&lt;TD&gt;HHFS_bi&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;24&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;24&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RespId is the respondent ID, Pant_num is the pantry number, Group_num: 1=control group, 2=intervention group. I would like to get the odds of people in either group(control and intervention) being in the food secure category after the intervention. if HHFS_bi (0=food insecure and 1=food secure) has changed overtime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code currently:&amp;nbsp;proc glimmix data=home.FS_Binary; NLOPTIONS maxiter=1000;&lt;BR /&gt;class RespID pant_num group_num time DemAge00;&lt;BR /&gt;model HHFS_bi(ref="0")=group_num time DemAge00 group_num*time / dist=binary link=logit solution ddfm=kr oddsratio; /* since we added PartID and site in the random statement, they are considered as random effect and do not need to be included in the model */&lt;BR /&gt;random RespID(pant_num);&lt;BR /&gt;lsmeans group_num*time /oddsratio ilink e;/*see the position of the levels below*/&lt;BR /&gt;estimate 'intervention T2-T1 - control T2-T1' group_num*time 1 -1 -1 1/ exp cl;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;and this is the log message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;378 proc glimmix data=home.FS_Binary; NLOPTIONS maxiter=1000;&lt;BR /&gt;379 class RespID pant_num group_num time DemAge00;&lt;BR /&gt;380 model HHFS_bi(ref="0")=group_num time DemAge00 group_num*time / dist=binary link=logit&lt;BR /&gt;380! solution ddfm=kr oddsratio; /* since we added PartID and site in the random statement,&lt;BR /&gt;380! they are considered as random effect and do not need to be included in the model */&lt;BR /&gt;381 random RespID(pant_num);&lt;BR /&gt;382 lsmeans group_num*time /oddsratio ilink e;/*see the position of the levels below*/&lt;BR /&gt;383 estimate 'intervention T2-T1 - control T2-T1' group_num*time 1 -1 -1 1/ exp cl;&lt;BR /&gt;384 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Some observations are not used in the analysis because of: missing response values&lt;BR /&gt;(n=60), missing fixed effects (n=2), missing random effects (n=2).&lt;BR /&gt;NOTE: The GLIMMIX procedure is modeling the probability that HHFS_bi='1'.&lt;BR /&gt;NOTE: Did not converge.&lt;BR /&gt;NOTE: PROCEDURE GLIMMIX used (Total process time):&lt;BR /&gt;real time 2.38 seconds&lt;BR /&gt;cpu time 2.35 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 20:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/906112#M44966</guid>
      <dc:creator>astudent</dc:creator>
      <dc:date>2023-12-04T20:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix, convergence and odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/906434#M45006</link>
      <description>&lt;P&gt;You are running with the default RSPL method, which often has trouble with binary data. Here is my recommendation of how to change your code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; proc glimmix data=home.FS_Binary &lt;STRONG&gt;method=laplace&lt;/STRONG&gt;; 
NLOPTIONS maxiter=1000;
class RespID pant_num group_num time DemAge00;
model HHFS_bi(ref="0")=group_num time DemAge00 group_num*time / dist=binary link=logit solution &lt;STRONG&gt;/* ddfm=kr*/&lt;/STRONG&gt; oddsratio; /* since we added PartID and site in the random statement, they are considered as random effect and do not need to be included in the model */
&lt;STRONG&gt;random pant_num/subject=respID;&lt;/STRONG&gt;
lsmeans group_num*time /oddsratio ilink e;/*see the position of the levels below*/
estimate 'intervention T2-T1 - control T2-T1' group_num*time 1 -1 -1 1/ exp cl;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This shifts to a maximum likelihood integration method (Laplace) which doesn't allow Kenward-Rogers degrees of freedom. I also suggest rewording the RANDOM statement to get processing by subject. However, based on the sample data, it appears that each pant_num has only a single subject. If that is the case for the full dataset, you'll need to replace pant_num with intercept.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 13:28:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/906434#M45006</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-12-06T13:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc glimmix, convergence and odds ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/906611#M45018</link>
      <description>&lt;P&gt;Thank you very very much. The code worked and I got all the results I was looking for. I appreciate your help a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 20:52:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-convergence-and-odds-ratio/m-p/906611#M45018</guid>
      <dc:creator>astudent</dc:creator>
      <dc:date>2023-12-06T20:52:17Z</dc:date>
    </item>
  </channel>
</rss>

