<?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: plots in GLIMMIX, MIXED, GENMOD in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/plots-in-GLIMMIX-MIXED-GENMOD/m-p/925349#M46006</link>
    <description>&lt;P&gt;Thank you Dave,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I played around with the estimate &amp;amp; polynomial, and that works. The spline remains, as you suggested in my previous post, an excellent solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eman&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 10:37:55 GMT</pubDate>
    <dc:creator>emaneman</dc:creator>
    <dc:date>2024-04-23T10:37:55Z</dc:date>
    <item>
      <title>plots in GLIMMIX, MIXED, GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/plots-in-GLIMMIX-MIXED-GENMOD/m-p/925206#M45985</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am comparing plots produced by PROC MIXED (+ PROC PLM), GENMOD (using the EFFECTPLOT) and GLIMMIX with spline (+&amp;nbsp; PROC PLM).&amp;nbsp; The&amp;nbsp; first two (MIXED and GENMOD) give identical results while GLIMMIX with spline gives me a different result. This clearly depends on the spline option. As can be seen in the syntax that I include, the plot for GLIMMIX&amp;nbsp; is with&amp;nbsp;&lt;CODE class=""&gt;effect spl=spline(segment); &lt;/CODE&gt;&amp;nbsp;I tried&amp;nbsp;&lt;CODE class=""&gt;effect spl=spline(segment/naturalcubic);&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;Of course the plot changes, but is still very different than what I obtain with MIXED or GENMOD.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variable segment is standardized, and it has 10 levels (-1.57&amp;nbsp;&amp;nbsp;&amp;nbsp; -1.22&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.87&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.52&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.17&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.52&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.87&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.57) -- I treat it as a continuous variable, of course.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion on how to define the spline, to get the same plots as MIXED and GENMOD?&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="mixed + plm" style="width: 680px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95738i83A7780B810FE3B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-04-22 at 10.50.52.png" alt="mixed + plm" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;mixed + plm&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="genmod (effectplot)" style="width: 670px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95739i27EE157B3684FB73/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-04-22 at 10.51.00.png" alt="genmod (effectplot)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;genmod (effectplot)&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="glimmix / spline + plm" style="width: 674px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95740i7D969EF1C60E14DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-04-22 at 10.51.10.png" alt="glimmix / spline + plm" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;glimmix / spline + plm&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc mixed data=e ;
class id iv;
model posemo= iv|segment|segment|segment;
random id;
store mod;
run;

proc plm source=mod;
effectplot slicefit(x=segment sliceby=iv);
run;

proc genmod data=e ;
class id iv;
model posemo= iv|segment|segment|segment;
repeated subject=id;
effectplot slicefit(x=segment sliceby=iv);
run;

proc glimmix data=e;
class id iv;
effect spl=spline(segment);
model posemo = iv*spl / noint s;
random int / subject=id;
store mod3;
output out=gmxout pred=p;
run;

proc plm source=mod3;
effectplot slicefit(x=segment sliceby=iv);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 09:04:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/plots-in-GLIMMIX-MIXED-GENMOD/m-p/925206#M45985</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2024-04-22T09:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: plots in GLIMMIX, MIXED, GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/plots-in-GLIMMIX-MIXED-GENMOD/m-p/925242#M45994</link>
      <description>&lt;P&gt;If you use a spline, it won't be the same. A spline is much more flexible than the polynomial you used in GENMOD and MIXED. Polynomials are more restricted in how they appear as you can see in the plot. See another example of this in &lt;A href="https://support.sas.com/kb/70/756.html" target="_self"&gt;this note&lt;/A&gt;.&amp;nbsp; If you want the plot from GLIMMIX to be the same, then use the same cubic polynomial that you used in GENMOD and MIXED, either like you did in the MODEL statement or using POLYNOMIAL in the EFFECT statement instead of SPLINE.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 15:18:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/plots-in-GLIMMIX-MIXED-GENMOD/m-p/925242#M45994</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-04-22T15:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: plots in GLIMMIX, MIXED, GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/plots-in-GLIMMIX-MIXED-GENMOD/m-p/925349#M46006</link>
      <description>&lt;P&gt;Thank you Dave,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I played around with the estimate &amp;amp; polynomial, and that works. The spline remains, as you suggested in my previous post, an excellent solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eman&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 10:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/plots-in-GLIMMIX-MIXED-GENMOD/m-p/925349#M46006</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2024-04-23T10:37:55Z</dc:date>
    </item>
  </channel>
</rss>

