<?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 GLM with Contrast statement in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503192#M25899</link>
    <description>&lt;P&gt;Thank you Reeza!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Paige, RESP_TIME&amp;nbsp;has three levels with numeric values 1, 2 and 3, and it has not missing values. Thank you for looking into my question!&lt;/P&gt;</description>
    <pubDate>Wed, 10 Oct 2018 18:48:09 GMT</pubDate>
    <dc:creator>lizzy28</dc:creator>
    <dc:date>2018-10-10T18:48:09Z</dc:date>
    <item>
      <title>PROC GLM with Contrast statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503175#M25894</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using PROC GLM Contrast statement to see if my data displays any trend like linear or quadratic. Somehow when I use two CONTRAST statements at the same time, the CONTRAST output does not come out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my code:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;GLM&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=mydata;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CLASS&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; RESP_TIME;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;MODEL&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; score= RESP_TIME ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CONTRAST&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Linear'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; RESP_TIME -&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; -&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CONTRAST&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Quadratic'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; RESP_TIME &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; -&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; -&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; -&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Another question is: is it possible to do the trend plot along with CONTRAST statement?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Lizi&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 18:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503175#M25894</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2018-10-10T18:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM with Contrast statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503179#M25895</link>
      <description>Please post the log from that code. I think GLM may need a QUIT instead of RUN as well, which is why it may not be completing. &lt;BR /&gt;</description>
      <pubDate>Wed, 10 Oct 2018 18:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503179#M25895</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-10T18:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM with Contrast statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503181#M25896</link>
      <description>&lt;P&gt;Thanks Reeza.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added QUIT, and the log remains as below:&lt;/P&gt;
&lt;P&gt;WARNING: More coefficients than levels specified for effect resp_time. Some coefficients will be ignored.&lt;/P&gt;
&lt;P&gt;NOTE: CONTRAST Linear is not estimable.&lt;/P&gt;
&lt;P&gt;WARNING: More coefficients than levels specified for effect resp_time. Some coefficients will be ignored.&lt;/P&gt;
&lt;P&gt;NOTE: CONTRAST Quadratic is not estimable.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 18:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503181#M25896</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2018-10-10T18:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM with Contrast statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503187#M25897</link>
      <description>Your contrast statements are not correct then. I don't know enough on how to fix those unfortunately. I would expect to run a quadratic model to have to test the quadratic, but I could be totally off base here. I'll move this to the Stat's forum as well.</description>
      <pubDate>Wed, 10 Oct 2018 18:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503187#M25897</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-10T18:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM with Contrast statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503189#M25898</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52727"&gt;@lizzy28&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks Reeza.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added QUIT, and the log remains as below:&lt;/P&gt;
&lt;P&gt;WARNING: More coefficients than levels specified for effect resp_time. Some coefficients will be ignored.&lt;/P&gt;
&lt;P&gt;NOTE: CONTRAST Linear is not estimable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How many levels of the variable RESP_TIME are there?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there levels of RESP_TIME that have no Y values (due to missing data)?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 18:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503189#M25898</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-10-10T18:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM with Contrast statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503192#M25899</link>
      <description>&lt;P&gt;Thank you Reeza!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Paige, RESP_TIME&amp;nbsp;has three levels with numeric values 1, 2 and 3, and it has not missing values. Thank you for looking into my question!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 18:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503192#M25899</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2018-10-10T18:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM with Contrast statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503202#M25900</link>
      <description>&lt;P&gt;Then you can't specify a CONTRAST statement with 5 levels. You can only specify a CONTRAST statement with 3 levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My other question was about your Y variable, in this case SCORE, does it have a lot of missing values such that there is a level of RESP_TIME for which all the Y variables are missing?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 18:58:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503202#M25900</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-10-10T18:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM with Contrast statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503218#M25901</link>
      <description>&lt;P&gt;I see that I should only set three levels. One further question is how I should decide the&amp;nbsp;L matrix for linear vs quadratic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, there are&amp;nbsp;about 8% missing values in SCORE.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 19:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503218#M25901</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2018-10-10T19:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM with Contrast statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503247#M25902</link>
      <description>&lt;P&gt;Although it is possible to fit a quadratic model to only 3 time points, so few points provide very little support for the fit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/22/912.html" target="_self" rel="nofollow noopener noreferrer"&gt;SAS Usage Note 22912&lt;/A&gt;&amp;nbsp;illustrates how to acquire coefficients for polynomial contrasts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 21:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503247#M25902</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-10-10T21:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM with Contrast statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503291#M25904</link>
      <description>&lt;P&gt;That makes sense. Thanks for the link. It provides me a quick understanding of polynomial coefficients.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 01:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-with-Contrast-statement/m-p/503291#M25904</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2018-10-11T01:30:48Z</dc:date>
    </item>
  </channel>
</rss>

