<?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 with R side in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-with-R-side/m-p/848584#M42031</link>
    <description>&lt;P&gt;Your program below --&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glimmix data=test singular=1e-10 maxopt=100 noclprint;&lt;/P&gt;
&lt;P&gt;class A B Options_ID;&lt;/P&gt;
&lt;P&gt;model decision(event="1") = A|B Chance&lt;/P&gt;
&lt;P&gt;/ dist=binary link=logit ddfm=BW;&lt;/P&gt;
&lt;P&gt;random intercept/subject = A|B type =VS;&lt;/P&gt;
&lt;P&gt;random chance/subject = Person_ID residual type =AR(1);&lt;/P&gt;
&lt;P&gt;nloptions maxiter=150 technique= NRRIDG;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;has two issues:&lt;/P&gt;
&lt;P&gt;1. the first random statement does not seem to have a correct syntax&lt;/P&gt;
&lt;P&gt;2. The current syntax treats A|B as both fixed and random effects -- this is not correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest you take out your first RANDOM statement. And for the second RANDOM statement, I am not sure AR(1) makes sense to your data. But this might be because I am not clear on your data structure at this point....&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
    <pubDate>Thu, 08 Dec 2022 17:56:38 GMT</pubDate>
    <dc:creator>jiltao</dc:creator>
    <dc:date>2022-12-08T17:56:38Z</dc:date>
    <item>
      <title>PROC GLIMMIX with R side</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-with-R-side/m-p/848369#M42029</link>
      <description>&lt;P&gt;I am modeling a YES/NO decision making at the individual level. One person would choose one out of around 2,000 options. There were 25,000 persons. The Cartesian product gave a 40,000,000 sample size (at different time, some options may not be available).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For all options, there were two interested main effects and one of their interaction: A and B. Both are three-level ordinal variables (Per my understanding, because the options were sampled from a population, therefore, possible random effects for A and B).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some persons (10%), they have two chances (at different time, count variable with levels of 1 and 2) to make their decision (repeated measure, therefore, needs R side effects).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data= test; by chance Person_ID;&lt;/P&gt;&lt;P&gt;proc glimmix data=test singular=1e-10 maxopt=100 noclprint;&lt;/P&gt;&lt;P&gt;class A B Options_ID;&lt;/P&gt;&lt;P&gt;model decision(event="1") = A|B Chance&lt;/P&gt;&lt;P&gt;/ dist=binary link=logit ddfm=BW;&lt;/P&gt;&lt;P&gt;random intercept/subject = A|B type =VS;&lt;/P&gt;&lt;P&gt;random chance/subject = Person_ID residual type =AR(1);&lt;/P&gt;&lt;P&gt;nloptions maxiter=150 technique= NRRIDG;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried to run this, SAS kept running like forever.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After many tries, the only converge result I got was from this program:&lt;/P&gt;&lt;P&gt;proc glimmix data=test singular=1e-10 maxopt=100 method = Laplace noclprint;&lt;/P&gt;&lt;P&gt;class A B Options_ID;&lt;/P&gt;&lt;P&gt;model decision(event="1") = A|B Chance&lt;/P&gt;&lt;P&gt;/ dist=binary link=logit ddfm=BW;&lt;/P&gt;&lt;P&gt;random A /subject = Options_ID type =ANTE(1);&lt;/P&gt;&lt;P&gt;nloptions maxiter=150 GCONV=0;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the previous discussion, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1708"&gt;@sld&lt;/a&gt; at &lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Glimmix-did-not-converge/td-p/387883" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Statistical-Procedures/Glimmix-did-not-converge/td-p/387883&lt;/A&gt;&lt;/P&gt;&lt;P&gt;would the comment apply to my situation?&lt;/P&gt;&lt;P&gt;And how should I adjust my model?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 18:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-with-R-side/m-p/848369#M42029</guid>
      <dc:creator>adcc5465</dc:creator>
      <dc:date>2022-12-07T18:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX with R side</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-with-R-side/m-p/848584#M42031</link>
      <description>&lt;P&gt;Your program below --&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glimmix data=test singular=1e-10 maxopt=100 noclprint;&lt;/P&gt;
&lt;P&gt;class A B Options_ID;&lt;/P&gt;
&lt;P&gt;model decision(event="1") = A|B Chance&lt;/P&gt;
&lt;P&gt;/ dist=binary link=logit ddfm=BW;&lt;/P&gt;
&lt;P&gt;random intercept/subject = A|B type =VS;&lt;/P&gt;
&lt;P&gt;random chance/subject = Person_ID residual type =AR(1);&lt;/P&gt;
&lt;P&gt;nloptions maxiter=150 technique= NRRIDG;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;has two issues:&lt;/P&gt;
&lt;P&gt;1. the first random statement does not seem to have a correct syntax&lt;/P&gt;
&lt;P&gt;2. The current syntax treats A|B as both fixed and random effects -- this is not correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest you take out your first RANDOM statement. And for the second RANDOM statement, I am not sure AR(1) makes sense to your data. But this might be because I am not clear on your data structure at this point....&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 17:56:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-with-R-side/m-p/848584#M42031</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2022-12-08T17:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX with R side</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-with-R-side/m-p/848655#M42032</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;In that case, could I switch to PROC GENMOD rather than stick with PROC GLIMMIX?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 20:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-with-R-side/m-p/848655#M42032</guid>
      <dc:creator>adcc5465</dc:creator>
      <dc:date>2022-12-08T20:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX with R side</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-with-R-side/m-p/848666#M42033</link>
      <description>&lt;P&gt;Yes I think PROC GENMOD should work too.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 22:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLIMMIX-with-R-side/m-p/848666#M42033</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2022-12-08T22:31:53Z</dc:date>
    </item>
  </channel>
</rss>

