<?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 Proc GENMOD Effectplot plotby in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-GENMOD-Effectplot-plotby/m-p/362485#M85642</link>
    <description>&lt;P&gt;I am using sas v9.3 proc genmod to model a continuous outcome:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GENMOD;
class number train bl/param=glm;
model y= train age mt pn eo tncc bl;
effectplot fit (x=mt plotby=train)/obs;
repeated subject=number/type=ar rupdate=2;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My class variable train has 8 levels, but the effectplot displays on trainer 1, 4, 5, 6, 7, and 8. Trainers 2 and 3 are ommited for some reason. If a perform a slicefit plotby train, all levels are displayed, but that isn't the graph I really want. Any reason two levels of my class variable are being omitted?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Katy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2017 12:24:40 GMT</pubDate>
    <dc:creator>kivester</dc:creator>
    <dc:date>2017-05-29T12:24:40Z</dc:date>
    <item>
      <title>Proc GENMOD Effectplot plotby</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GENMOD-Effectplot-plotby/m-p/362485#M85642</link>
      <description>&lt;P&gt;I am using sas v9.3 proc genmod to model a continuous outcome:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GENMOD;
class number train bl/param=glm;
model y= train age mt pn eo tncc bl;
effectplot fit (x=mt plotby=train)/obs;
repeated subject=number/type=ar rupdate=2;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My class variable train has 8 levels, but the effectplot displays on trainer 1, 4, 5, 6, 7, and 8. Trainers 2 and 3 are ommited for some reason. If a perform a slicefit plotby train, all levels are displayed, but that isn't the graph I really want. Any reason two levels of my class variable are being omitted?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Katy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 12:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GENMOD-Effectplot-plotby/m-p/362485#M85642</guid>
      <dc:creator>kivester</dc:creator>
      <dc:date>2017-05-29T12:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GENMOD Effectplot plotby</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-GENMOD-Effectplot-plotby/m-p/363198#M85943</link>
      <description>&lt;P&gt;Most likely reason is that you have insufficient observations to fit a model for those levels, due to missing value in other variables. The following simulated data has a similar structure to what you have specified. Run it and see if you get 8 plots. &amp;nbsp;If so, the problem is probably related to your data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
call streaminit(1);
do number=1 to 4;
   age = 20 + ceil(20*rand("uniform"));
   do train=1 to 8;
      do j = 1 to 4;
         mt = rand("Normal");
         y = 2 + age + 3*train - mt + rand("normal");
         output;
      end;
   end;
end;
run;

PROC GENMOD data=have;
class number train /param=glm;
model y= train age mt;
effectplot fit (x=mt plotby=train)/obs;
repeated subject=number/type=ar rupdate=2;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 May 2017 19:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-GENMOD-Effectplot-plotby/m-p/363198#M85943</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-05-31T19:50:17Z</dc:date>
    </item>
  </channel>
</rss>

