<?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: Is a GLM procedure appropriate in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/793755#M38907</link>
    <description>&lt;P&gt;Often it means that one of the class variables is a linear combination of other variables. There is redundant information in the explanatory variables. For example, the following data step intentionally creates a classification variable C2 that is related to C1. The LSMEANS statement will return "Non-est" instead of a value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
do c1 = 1,2;
   c2 = 2*c1;      /* linear combination of other class variables */
   do c3 = 1 to 5;
      x = rand("normal");
      output;
   end;
end;
run;

proc glm data=Have;
class c1 c2 c3;
model x = c1 c2 c3 c3*c1 c3*c2;
lsmeans c1 c2 c3 c3*c1 c3*c2 / stderr;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;For your data, it is possible that&amp;nbsp;&lt;SPAN&gt;arrival age (ageA) and age at first calving (AFF) are related. For example, AFF = ageA + 2.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Feb 2022 13:35:53 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2022-02-01T13:35:53Z</dc:date>
    <item>
      <title>Is a GLM procedure appropriate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/793748#M38904</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I would like to look at whether arrival age (ageA), arrival weight (wta) and age at first calving (AFF) have an effect on calving rate (FR1); each of the above factors are grouped for example ageA is, 22-24 months, 24-26 months and 26-28months.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ultimate outcome is to be able to use the above factors as predictive measures for calving rate. Below is the analysis I have run:&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="EM_G_5-1643719802436.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68085i3F4F3FA7F5D06860/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EM_G_5-1643719802436.png" alt="EM_G_5-1643719802436.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only AFF is significant, the others are not and the LSmeans are producing the below;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="EM_G_3-1643719608795.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68083i71B75D19EC2E17B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EM_G_3-1643719608795.png" alt="EM_G_3-1643719608795.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What does non-est mean? does this indicate that this analysis is inappropriate for this data? Is there a more suitable option?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 13:01:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/793748#M38904</guid>
      <dc:creator>EM_G</dc:creator>
      <dc:date>2022-02-01T13:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is a GLM procedure appropriate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/793751#M38905</link>
      <description>&lt;P&gt;I would treat the ages and weight as continuous rather than category (CLASS) variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Non-est happens when you don't have at least one observation in each cell of the tables AFF*ageA and AFF*wta. So your model is inappropriate with the data you have. GLM is not the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 13:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/793751#M38905</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-01T13:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is a GLM procedure appropriate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/793755#M38907</link>
      <description>&lt;P&gt;Often it means that one of the class variables is a linear combination of other variables. There is redundant information in the explanatory variables. For example, the following data step intentionally creates a classification variable C2 that is related to C1. The LSMEANS statement will return "Non-est" instead of a value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
do c1 = 1,2;
   c2 = 2*c1;      /* linear combination of other class variables */
   do c3 = 1 to 5;
      x = rand("normal");
      output;
   end;
end;
run;

proc glm data=Have;
class c1 c2 c3;
model x = c1 c2 c3 c3*c1 c3*c2;
lsmeans c1 c2 c3 c3*c1 c3*c2 / stderr;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;For your data, it is possible that&amp;nbsp;&lt;SPAN&gt;arrival age (ageA) and age at first calving (AFF) are related. For example, AFF = ageA + 2.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 13:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/793755#M38907</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-02-01T13:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is a GLM procedure appropriate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/793942#M38931</link>
      <description>&lt;P&gt;Thankyou for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the data and there were some missing observations that I have now corrected, but this did not make a difference. I then changed the ageA and wta to continuous rather than category, but again it still returns non-est.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 01:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/793942#M38931</guid>
      <dc:creator>EM_G</dc:creator>
      <dc:date>2022-02-02T01:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is a GLM procedure appropriate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/793943#M38932</link>
      <description>&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are correct that ageA and AFF are related. Is there a way to get my model to work around this? sorry I am very new to stats and sas. I have just finished reading sas/stat user guide version 8 chapter 30 on GLM procedure, but still haven't found my answer.&lt;/P&gt;&lt;P&gt;Cheers Em&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 01:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/793943#M38932</guid>
      <dc:creator>EM_G</dc:creator>
      <dc:date>2022-02-02T01:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is a GLM procedure appropriate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/794022#M38937</link>
      <description>&lt;P&gt;If ageA and AFF are completely confounded (as in&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;'s example) where you can express one as a linear function of the other, then the easiest thing to do is to remove one of them as a model effect.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=par1;
class ageA wta;
model FR1 = ageA wta ageA*wta;
lsmeans ageA wta /pdiff;
lsmeans ageA*wta / slice= (ageA wta);
quit;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will give comparisons between the levels of ageA&amp;nbsp; as well as comparisons between the levels of wta.&amp;nbsp; The lsmeans statement for the interaction uses the SLICE= option to obtain F tests for the simple effects of wta at each level of ageA and of ageA at each level of wta.&amp;nbsp; If you want specific comparisons of the lsmeans at each level, you'll need to employ the STORE option to get the SLICE statement.&amp;nbsp; Note that now there is only one age related effect, so the overall F tests will not separate out a test for age at first calving.&amp;nbsp; However, that shouldn't be an issue if age at first calving is a simple additive function of age at arrival.&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, 02 Feb 2022 14:36:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/794022#M38937</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-02-02T14:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is a GLM procedure appropriate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/794024#M38938</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/353220"&gt;@EM_G&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thankyou for your reply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I checked the data and there were some missing observations that I have now corrected, but this did not make a difference. I then changed the ageA and wta to continuous rather than category, but again it still returns non-est.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Unlike other commenters here, I believe your problem is due to missing cells in the interaction of two variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know what you mean by "missing observations". I was talking about missing cells in the interaction table, combinations of levels of two variables where there are no observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 14:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-a-GLM-procedure-appropriate/m-p/794024#M38938</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-02T14:43:27Z</dc:date>
    </item>
  </channel>
</rss>

