<?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 Contrast in GLIMMIX procedure (RCBD design) in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Contrast-in-GLIMMIX-procedure-RCBD-design/m-p/842936#M772</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run a contrast in a GLIMMIX proc, but this error always appears "&lt;SPAN&gt;ERROR 22-322: Syntax error, expecting one of the following: a numeric constant, a datetime constant."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm doing a contrast of control X inclusion level 1 X inclusion level 2&amp;nbsp; and inclusion level 1 X inclusion level 2. Both are in an RCBD design.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data CONTRAST;&lt;BR /&gt;infile datalines dlm="09"x;&lt;BR /&gt;input ID block room trtm$ outcome;&lt;BR /&gt;datalines;&lt;/P&gt;&lt;P&gt;. . . . .&lt;/P&gt;&lt;P&gt;. . . . .&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;Run;&lt;BR /&gt;-----&lt;/P&gt;&lt;P&gt;Proc glimmix data=CONTRAST;&lt;BR /&gt;class trtm block room;&lt;BR /&gt;model outcome=trtm|room;&lt;BR /&gt;title "outcome results";&lt;BR /&gt;random block block(room);&lt;BR /&gt;contrast "linear" trtm|room 0 -1 1;&lt;BR /&gt;contrast "quadratic" trtm|room -2 1 1;&lt;BR /&gt;lsmeans room|trtm / pdiff adjust=tukey lines;&lt;BR /&gt;covtest "block = 0" 0. . / classical;&lt;BR /&gt;covtest "block(room) = 0" .0. / classical;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 18:38:07 GMT</pubDate>
    <dc:creator>apereira</dc:creator>
    <dc:date>2022-11-07T18:38:07Z</dc:date>
    <item>
      <title>Contrast in GLIMMIX procedure (RCBD design)</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Contrast-in-GLIMMIX-procedure-RCBD-design/m-p/842936#M772</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run a contrast in a GLIMMIX proc, but this error always appears "&lt;SPAN&gt;ERROR 22-322: Syntax error, expecting one of the following: a numeric constant, a datetime constant."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm doing a contrast of control X inclusion level 1 X inclusion level 2&amp;nbsp; and inclusion level 1 X inclusion level 2. Both are in an RCBD design.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data CONTRAST;&lt;BR /&gt;infile datalines dlm="09"x;&lt;BR /&gt;input ID block room trtm$ outcome;&lt;BR /&gt;datalines;&lt;/P&gt;&lt;P&gt;. . . . .&lt;/P&gt;&lt;P&gt;. . . . .&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;Run;&lt;BR /&gt;-----&lt;/P&gt;&lt;P&gt;Proc glimmix data=CONTRAST;&lt;BR /&gt;class trtm block room;&lt;BR /&gt;model outcome=trtm|room;&lt;BR /&gt;title "outcome results";&lt;BR /&gt;random block block(room);&lt;BR /&gt;contrast "linear" trtm|room 0 -1 1;&lt;BR /&gt;contrast "quadratic" trtm|room -2 1 1;&lt;BR /&gt;lsmeans room|trtm / pdiff adjust=tukey lines;&lt;BR /&gt;covtest "block = 0" 0. . / classical;&lt;BR /&gt;covtest "block(room) = 0" .0. / classical;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 18:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Contrast-in-GLIMMIX-procedure-RCBD-design/m-p/842936#M772</guid>
      <dc:creator>apereira</dc:creator>
      <dc:date>2022-11-07T18:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Contrast in GLIMMIX procedure (RCBD design)</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Contrast-in-GLIMMIX-procedure-RCBD-design/m-p/842967#M773</link>
      <description>So the problem is that your terms in the contrast statement are not specified correctly. Instead of using the "pipe", you need to use the asterisk to define the interaction term thusly: trtm*room&lt;BR /&gt;Then make sure your effect coding is defined correctly.</description>
      <pubDate>Mon, 07 Nov 2022 20:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Contrast-in-GLIMMIX-procedure-RCBD-design/m-p/842967#M773</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2022-11-07T20:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Contrast in GLIMMIX procedure (RCBD design)</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Contrast-in-GLIMMIX-procedure-RCBD-design/m-p/842979#M774</link>
      <description>Great! It worked.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 07 Nov 2022 20:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Contrast-in-GLIMMIX-procedure-RCBD-design/m-p/842979#M774</guid>
      <dc:creator>apereira</dc:creator>
      <dc:date>2022-11-07T20:59:30Z</dc:date>
    </item>
  </channel>
</rss>

