<?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 GENMOD: I get non-estimable least squares means, but an estimable difference in least squares means. in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-I-get-non-estimable-least-squares-means-but-an/m-p/194936#M10374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally I don't try to answer these kinds of questions, but it is Saturday morning and I don't know if the experts will see this question until Monday.&amp;nbsp; I am not an expert in this area, but I'll give it a shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In theory, it possible to estimate the difference of means without being able to estimate the means. Suppose I collect data for two variables, X and Y. I don't give you the original data, but instead decide to subtract off some reference value from both variables nd then give you the adjusted values. I might subtract 7 or 13 or 321...you don't know.&amp;nbsp; As a consequence of my manipulation, there is no way that you can estimate the means of the variables. Howeer, you can easily estimate the mean of the difference X-Y, since my subtraction cancels out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, you have a binary variable Q. The level Q=0 is not estimable because it is getting lumped in with the intercept term. (I assume the level Q=1 has an estimate, right?)&amp;nbsp; However, you can estimate the incremental effect of Q=1 as compared to Q=0, which means that you can estimate the difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Aug 2015 11:05:08 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2015-08-08T11:05:08Z</dc:date>
    <item>
      <title>PROC GENMOD: I get non-estimable least squares means, but an estimable difference in least squares means.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-I-get-non-estimable-least-squares-means-but-an/m-p/194935#M10373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran a PROC GENMOD code (see below).&amp;nbsp; The output shows that the least squares means for a binary variable, "Q", are non-estimable, but there is an estimated difference in least squares means between "Q = 1" and "Q = 0".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is this possible?&amp;nbsp; I thought that the difference in least squares means is calculated by subtracting the 2 least squares means.&amp;nbsp; If my least squares means are non-estimable, then shouldn't my difference in least squares means be non-estimable, too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc genmod&lt;/P&gt;&lt;P&gt;&amp;nbsp; data = mydata;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class Q (ref = '0')&lt;/P&gt;&lt;P&gt;&amp;nbsp; X (ref = '1')&lt;/P&gt;&lt;P&gt;&amp;nbsp; W (ref = '1')&lt;/P&gt;&lt;P&gt;&amp;nbsp; R;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model successes/trials &lt;/P&gt;&lt;P&gt;&amp;nbsp; =&lt;/P&gt;&lt;P&gt;&amp;nbsp; Q &lt;/P&gt;&lt;P&gt;&amp;nbsp; X&lt;/P&gt;&lt;P&gt;&amp;nbsp; W&lt;/P&gt;&lt;P&gt;&amp;nbsp; X * W&lt;/P&gt;&lt;P&gt;&amp;nbsp; Q * X&lt;/P&gt;&lt;P&gt;&amp;nbsp; Q * W&lt;/P&gt;&lt;P&gt;&amp;nbsp; / dist = bin&lt;/P&gt;&lt;P&gt;&amp;nbsp; link = logit;&lt;/P&gt;&lt;P&gt;&amp;nbsp; repeated &lt;/P&gt;&lt;P&gt;&amp;nbsp; subject = R;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; lsmeans Q / exp diff cl e; &lt;/P&gt;&lt;P&gt;&amp;nbsp; lsmeans X / exp diff cl e;&lt;/P&gt;&lt;P&gt;&amp;nbsp; lsmeans W / exp diff cl e;&lt;/P&gt;&lt;P&gt;&amp;nbsp; lsmeans X * W / exp diff cl e; &lt;/P&gt;&lt;P&gt;&amp;nbsp; lsmeans Q * X / exp diff cl e; &lt;/P&gt;&lt;P&gt;&amp;nbsp; lsmeans Q * W / exp diff cl e; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 22:27:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-I-get-non-estimable-least-squares-means-but-an/m-p/194935#M10373</guid>
      <dc:creator>ABiostatistician</dc:creator>
      <dc:date>2015-08-07T22:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD: I get non-estimable least squares means, but an estimable difference in least squares means.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-I-get-non-estimable-least-squares-means-but-an/m-p/194936#M10374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally I don't try to answer these kinds of questions, but it is Saturday morning and I don't know if the experts will see this question until Monday.&amp;nbsp; I am not an expert in this area, but I'll give it a shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In theory, it possible to estimate the difference of means without being able to estimate the means. Suppose I collect data for two variables, X and Y. I don't give you the original data, but instead decide to subtract off some reference value from both variables nd then give you the adjusted values. I might subtract 7 or 13 or 321...you don't know.&amp;nbsp; As a consequence of my manipulation, there is no way that you can estimate the means of the variables. Howeer, you can easily estimate the mean of the difference X-Y, since my subtraction cancels out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, you have a binary variable Q. The level Q=0 is not estimable because it is getting lumped in with the intercept term. (I assume the level Q=1 has an estimate, right?)&amp;nbsp; However, you can estimate the incremental effect of Q=1 as compared to Q=0, which means that you can estimate the difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2015 11:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-I-get-non-estimable-least-squares-means-but-an/m-p/194936#M10374</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-08-08T11:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD: I get non-estimable least squares means, but an estimable difference in least squares means.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-I-get-non-estimable-least-squares-means-but-an/m-p/194937#M10375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can easily happen with fixed-effect models.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 16:46:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-I-get-non-estimable-least-squares-means-but-an/m-p/194937#M10375</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-08-10T16:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD: I get non-estimable least squares means, but an estimable difference in least squares means.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-I-get-non-estimable-least-squares-means-but-an/m-p/194938#M10376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, helvetica, sans-serif;"&gt;Thanks for your reply on a Saturday morning, Rick!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, helvetica, sans-serif;"&gt;No, actually - I do not get an estimate for Q = 1 in the least squares mean output.&amp;nbsp; Both Q = 1 and Q = 0 are non-estimable in the least squares mean table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, helvetica, sans-serif;"&gt;As I understand, the &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;difference in least squares means is calculated by subtracting the 2 least squares means - which makes my result very strange.&amp;nbsp; If both the least squares means are non-estimable, then how can the difference in least squares means be estimable?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 22:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-I-get-non-estimable-least-squares-means-but-an/m-p/194938#M10376</guid>
      <dc:creator>ABiostatistician</dc:creator>
      <dc:date>2015-08-10T22:11:55Z</dc:date>
    </item>
  </channel>
</rss>

