<?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 GLIMMIX for predicted marginal effect by variables in the random effect in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/GLIMMIX-for-predicted-marginal-effect-by-variables-in-the-random/m-p/615215#M179942</link>
    <description>&lt;P&gt;I am using the GLIMMIX model to do an age-period-cohort analysis.&amp;nbsp; I need a graph shows how the predicted probability of Y_var for each education level changes by COHORT. Just as the picture attached. I am new at SAS. So how can I get the graph? or how can i get the predicted numbers by education by cohort?&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="1.png" style="width: 257px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35151i9CEAF611E0BFDCF0/image-dimensions/257x259?v=v2" width="257" height="259" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;********* HERE IS THE CODE---------------------------;&lt;BR /&gt;proc glimmix data=NHIS_2 maxopt=250000;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; class PERIOD COHORT EDUCATION RACE SEX;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; model Y_var (event='1') = AGE AGE_2 SEX RACE EDUCATION EDUCATION*AGE&amp;nbsp; /solution CL&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; dist=binary;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; random intercept SEX RACE /sub=&lt;STRONG&gt;PERIOD&lt;/STRONG&gt; solution;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; random intercept /sub=&lt;STRONG&gt;COHORT&lt;/STRONG&gt; solution;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;covtest GLM / WALD;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;NLOPTIONS TECHNIQUE=NRRIDG;&lt;/P&gt;&lt;P&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 05 Jan 2020 21:47:40 GMT</pubDate>
    <dc:creator>Ruan1</dc:creator>
    <dc:date>2020-01-05T21:47:40Z</dc:date>
    <item>
      <title>GLIMMIX for predicted marginal effect by variables in the random effect</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GLIMMIX-for-predicted-marginal-effect-by-variables-in-the-random/m-p/615215#M179942</link>
      <description>&lt;P&gt;I am using the GLIMMIX model to do an age-period-cohort analysis.&amp;nbsp; I need a graph shows how the predicted probability of Y_var for each education level changes by COHORT. Just as the picture attached. I am new at SAS. So how can I get the graph? or how can i get the predicted numbers by education by cohort?&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="1.png" style="width: 257px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35151i9CEAF611E0BFDCF0/image-dimensions/257x259?v=v2" width="257" height="259" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;********* HERE IS THE CODE---------------------------;&lt;BR /&gt;proc glimmix data=NHIS_2 maxopt=250000;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; class PERIOD COHORT EDUCATION RACE SEX;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; model Y_var (event='1') = AGE AGE_2 SEX RACE EDUCATION EDUCATION*AGE&amp;nbsp; /solution CL&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; dist=binary;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; random intercept SEX RACE /sub=&lt;STRONG&gt;PERIOD&lt;/STRONG&gt; solution;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; random intercept /sub=&lt;STRONG&gt;COHORT&lt;/STRONG&gt; solution;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;covtest GLM / WALD;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;NLOPTIONS TECHNIQUE=NRRIDG;&lt;/P&gt;&lt;P&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 21:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GLIMMIX-for-predicted-marginal-effect-by-variables-in-the-random/m-p/615215#M179942</guid>
      <dc:creator>Ruan1</dc:creator>
      <dc:date>2020-01-05T21:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX for predicted marginal effect by variables in the random effect</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GLIMMIX-for-predicted-marginal-effect-by-variables-in-the-random/m-p/615217#M179943</link>
      <description>&lt;P&gt;I try the effectplot, but it seems the "x=var" only permits the variable included in the model. But the "COHORT" var is in the RANDOM part. SO):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc plm restore=model2;&lt;BR /&gt;effectplot slicefit(x=age sliceby=education) / clm;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 21:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GLIMMIX-for-predicted-marginal-effect-by-variables-in-the-random/m-p/615217#M179943</guid>
      <dc:creator>Ruan1</dc:creator>
      <dc:date>2020-01-05T21:49:56Z</dc:date>
    </item>
  </channel>
</rss>

