<?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: Sum of squares is equal to zero while using proc glm, mixed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318569#M16823</link>
    <description>&lt;P&gt;Presumable SITE is constant in your subsample.&amp;nbsp; Consider the same results for SEX below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;glm&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=sashelp.class (where=(sex=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'F'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; age sex;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; height=age sex /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ss3&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2016 14:12:05 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2016-12-13T14:12:05Z</dc:date>
    <item>
      <title>Sum of squares is equal to zero while using proc glm, mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318557#M16822</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while running scores data in proc glm, i got zero value for the sum of squares (variable - site, levels L and R ).&lt;/P&gt;&lt;P&gt;is it obvious? i've tried searching internet and found nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6353iFBB090FF9D0EE8ED/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="New Picture.jpg" title="New Picture.jpg" /&gt;&lt;/P&gt;&lt;P&gt;i think here there is no problem with the code i've used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data=one(where=(hour ne 0));&lt;BR /&gt;class subject hour Site;&lt;BR /&gt;model score = subject site hour/ ss3;&lt;BR /&gt;lsmeans hour /stderr pdiff;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any statistical explanations?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318557#M16822</guid>
      <dc:creator>satish123</dc:creator>
      <dc:date>2016-12-13T13:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of squares is equal to zero while using proc glm, mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318569#M16823</link>
      <description>&lt;P&gt;Presumable SITE is constant in your subsample.&amp;nbsp; Consider the same results for SEX below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;glm&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=sashelp.class (where=(sex=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'F'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; age sex;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; height=age sex /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ss3&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 14:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318569#M16823</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2016-12-13T14:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of squares is equal to zero while using proc glm, mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318575#M16824</link>
      <description>here in your code, you are using only one level in variable SEX ie 'F'. so, there is no way for the calculation of SS but in my code i'm using two levels for the variable SITE. in DF column it should have show me 1 instead of zero that you can see in the above attached .jpg file.</description>
      <pubDate>Tue, 13 Dec 2016 14:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318575#M16824</guid>
      <dc:creator>satish123</dc:creator>
      <dc:date>2016-12-13T14:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of squares is equal to zero while using proc glm, mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318581#M16826</link>
      <description>&lt;P&gt;Consider what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461"&gt;@mkeintz&lt;/a&gt;&amp;nbsp;said, and run a crosstab on site and hour. &amp;nbsp;I would suggest that one of the sites has all of the hour variables coded in such a way that the where= clause is excluding everything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although the results are probably uninteresting for your research problem, what happens when you run the following?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=one;
class subject hour Site;
model score = subject site hour/ ss3;
lsmeans hour /stderr pdiff;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 15:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318581#M16826</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-12-13T15:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of squares is equal to zero while using proc glm, mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318583#M16827</link>
      <description>&lt;P&gt;The most likely explanation is that the subjects are nested within sites, so that there are no degrees of freedom for the Site variable. For example look at this simulated data and results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
do subject = 1 to 54;
   if subject &amp;lt; 5 then Site=1;
   else Site=2;
   do hour=1 to 2;
      score = site + hour + rand("normal");
      output;
   end;
end;
run;

ods select ModelANOVA;
proc glm data=one;
class subject hour Site;
model score = subject site hour/ ss3;
lsmeans hour /stderr pdiff;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Dec 2016 15:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318583#M16827</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-13T15:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of squares is equal to zero while using proc glm, mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318584#M16828</link>
      <description>&lt;P&gt;/Homer Simpson voice on&lt;/P&gt;
&lt;P&gt;D'oh!&lt;/P&gt;
&lt;P&gt;/Homer off&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good point,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;. &amp;nbsp;Much more likely than my guess. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 15:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318584#M16828</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-12-13T15:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of squares is equal to zero while using proc glm, mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318868#M16852</link>
      <description>Thanks for the replies. like Rick_SAS said subjects are nested within the sites in my data.</description>
      <pubDate>Wed, 14 Dec 2016 12:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sum-of-squares-is-equal-to-zero-while-using-proc-glm-mixed/m-p/318868#M16852</guid>
      <dc:creator>satish123</dc:creator>
      <dc:date>2016-12-14T12:04:25Z</dc:date>
    </item>
  </channel>
</rss>

