<?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: Issue with CONTRAST statement in GLIMMIX in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976990#M49014</link>
    <description>&lt;P&gt;[added to my original post] The reason I want an F-value from a contrast statement is because I want a single figure that represents treatment effect magnitude which I can use to compare across different response variables.&amp;nbsp; The response variables here are various measurement of soil properties, and having a sense of the degree to which different levels of "treatment 1" (e.g., compost or biochar) affects the different measurements of soil properties would be useful to me.&amp;nbsp; &amp;nbsp; I can't use LSMESTIMATE for this purpose, because the response variables are all on different scales, and so effect magnitudes expressed in absolute terms don't work.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Oct 2025 18:02:07 GMT</pubDate>
    <dc:creator>wateas</dc:creator>
    <dc:date>2025-10-14T18:02:07Z</dc:date>
    <item>
      <title>Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976970#M49006</link>
      <description>&lt;P&gt;I'm attempting to code CONTRAST statements in GLIMMIX for a RCBD, factorial, repeated measures design.&amp;nbsp; There are two experimental treatments ("Treatment_1" and "Treatment_2"), two locations, and three time points (years).&amp;nbsp; Location and year need to be included as interactive.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=df plots=studentpanel method=rspl;
    class Year_CAT Location Treatment_1 Treatment_2 Block ID_S_P;
    model Response_Var = Treatment_1 | Treatment_2 | Location | Year_CAT / ddfm=kr2;
	random Block(Location);
    random Year_CAT / residual type=un subject=ID_S_P;&lt;BR /&gt;&lt;BR /&gt;    /* This works. */
	contrast "Overall impact: Treatment 1 (vs. Control)" 
	    /* Treatment 1 */
        Treatment_1    0 0 0 0 1 1 -2 0;
    
    /* (10/14/25 Doesn't work. */
	contrast "Site Impact (Location 1): Treatment 1 (vs. Control)"
	    Location 1 0  Treatment_1 0 0 0 0 1 1 -2 0  Location * Treatment_1 0 0 0 0 1 1 -2 0   0 0 0 0 0 0 0 0 / e;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The second contrast (indicated to not work by the comment above it) appears to be inestimable.&amp;nbsp; I don't get a warning or error in the log, but no values are produced in the contrast table output (just periods in place of where F/p-values should be).&amp;nbsp; The coefficients as they appear in the table (procured from passing option "e" to the contrast statement) look as they should.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Edit:&amp;nbsp; The reason I want an F-value from a contrast statement is because I want a single figure that represents treatment effect magnitude which I can use to compare across different response variables.&amp;nbsp; The response variables here are various measurement of soil properties, and having a sense of the degree to which different levels of "treatment 1" (e.g., compost or biochar) affects the different measurements of soil properties would be useful to me.&amp;nbsp; &amp;nbsp; I can't use LSMESTIMATE for this purpose, because the response variables are all on different scales, and so effect magnitudes expressed in absolute terms don't work.&lt;BR /&gt;&lt;BR /&gt;Based on the code above, is anything apparent that may be preventing the contrast from working?&amp;nbsp; &amp;nbsp;Thank you for your time.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 17:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976970#M49006</guid>
      <dc:creator>wateas</dc:creator>
      <dc:date>2025-10-14T17:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976971#M49007</link>
      <description>&lt;P&gt;Hi, Please post screen shots of your log and output to help us better understand your issue. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 15:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976971#M49007</guid>
      <dc:creator>JackieJ_SAS</dc:creator>
      <dc:date>2025-10-14T15:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976972#M49008</link>
      <description>&lt;P&gt;I do not see Location and Treatment_1 in your CLASS statement. Is that what you intended?&lt;/P&gt;
&lt;P&gt;If after making appropriate changes, you are still experiencing issues, send us the Class Level Information table and the E option output.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 15:46:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976972#M49008</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2025-10-14T15:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976974#M49009</link>
      <description>Sorry - that was just a typo.  Its corrected now.  I have received no errors regarding variables not being in the class statement.  Thanks.</description>
      <pubDate>Tue, 14 Oct 2025 15:57:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976974#M49009</guid>
      <dc:creator>wateas</dc:creator>
      <dc:date>2025-10-14T15:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976977#M49010</link>
      <description>&lt;P&gt;Here is the portion of the output showing the contrast table, with the results of the faulty contrast below the working one.&amp;nbsp; I can send other portions of the output if you want to see them for some reason.&amp;nbsp; To reiterate, there are no errors or warnings in the log upon executing the procedure.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20251014 - SAS Community Post - Contrast issue in GLIMMIX.png" style="width: 936px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/110626i3495EDE84BC6D58D/image-size/large?v=v2&amp;amp;px=999" role="button" title="20251014 - SAS Community Post - Contrast issue in GLIMMIX.png" alt="20251014 - SAS Community Post - Contrast issue in GLIMMIX.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 16:06:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976977#M49010</guid>
      <dc:creator>wateas</dc:creator>
      <dc:date>2025-10-14T16:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976978#M49011</link>
      <description>&lt;P&gt;It's always best to avoid CONTRAST or ESTIMATE statements when the LSMEANS, SLICE, or LSMESTIMATE statement can be used. This avoids having to come up with appropriate and estimable coefficients needed in the former statements. The following statement will estimate and compare the means among the Location*Treatment1 combinations:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmeans location*treatment_1 / diff e;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As with your CONTRAST statements, the E option shows the coefficients that LSMEANS uses to compute each mean. While it's possible that some will be nonestimable, depending on your data structure, you could try options like OM and BYLEVEL to make changes to the coefficients. With the list of LS-means that are produced, if you want to make some comparison among sets of them, you could either use a SLICE statement or the LSMESTIMATE statement. For example, if you want the effect of treatment1 in each location:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;slice location*treatment1 / sliceby=location;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For comparisons other than pairwise comparisons as done by the DIFF option in LSMEANS, you can use the LSMESTIMATE statement to much more simply compare, say, groups of LS-means than can be done with a CONSTRAST or ESTIMATE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 16:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976978#M49011</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-10-14T16:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976981#M49012</link>
      <description>&lt;P&gt;Then please provide the E option output. -- Jill&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 16:59:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976981#M49012</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2025-10-14T16:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976990#M49014</link>
      <description>&lt;P&gt;[added to my original post] The reason I want an F-value from a contrast statement is because I want a single figure that represents treatment effect magnitude which I can use to compare across different response variables.&amp;nbsp; The response variables here are various measurement of soil properties, and having a sense of the degree to which different levels of "treatment 1" (e.g., compost or biochar) affects the different measurements of soil properties would be useful to me.&amp;nbsp; &amp;nbsp; I can't use LSMESTIMATE for this purpose, because the response variables are all on different scales, and so effect magnitudes expressed in absolute terms don't work.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 18:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976990#M49014</guid>
      <dc:creator>wateas</dc:creator>
      <dc:date>2025-10-14T18:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976991#M49015</link>
      <description>&lt;P&gt;Please see the attached PDF.&amp;nbsp; The coefficient table spans multiple pages.&amp;nbsp; Also, note that I've temporarily removed the random statement for the repeated measures so that the procedure executes faster.&amp;nbsp; &amp;nbsp;Thanks for looking!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 18:14:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976991#M49015</guid>
      <dc:creator>wateas</dc:creator>
      <dc:date>2025-10-14T18:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976998#M49019</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/466903"&gt;@wateas&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;[added to my original post] The reason I want an F-value from a contrast statement is because I want a single figure that represents treatment effect magnitude which I can use to compare across different response variables.&amp;nbsp; The response variables here are various measurement of soil properties, and having a sense of the degree to which different levels of "treatment 1" (e.g., compost or biochar) affects the different measurements of soil properties would be useful to me.&amp;nbsp; &amp;nbsp; I can't use LSMESTIMATE for this purpose, because the response variables are all on different scales, and so effect magnitudes expressed in absolute terms don't work.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You run PROC GLIMMIX with the appropriate LSMEANS or LSMESTIMATE statement once for each response variable. LSMEANS or LSMESTIMATE replace the need to determine a working CONTRAST statement.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 19:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/976998#M49019</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-10-14T19:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/977000#M49020</link>
      <description>&lt;P&gt;Thank you for the information.&lt;/P&gt;
&lt;P&gt;Does the following statement work for you --&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;contrast "Site Impact (Location 1): Treatment 1 (vs. Control)"
	    Location 2 0  Treatment_1 0 0 0 0 1 1 -2 0  Location * Treatment_1 0 0 0 0 1 1 -2 0   0 0 0 0 0 0 0 0 / e;&lt;/LI-CODE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 19:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/977000#M49020</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2025-10-14T19:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/977007#M49021</link>
      <description>I tried this, and unfortunately it does not fix the issue (I get the same output).  I do appreciate the suggestion though.</description>
      <pubDate>Tue, 14 Oct 2025 20:03:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/977007#M49021</guid>
      <dc:creator>wateas</dc:creator>
      <dc:date>2025-10-14T20:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/977054#M49022</link>
      <description>&lt;P&gt;Can you send me the Output? Especially the E option output? Thanks, Jill&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 13:38:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/977054#M49022</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2025-10-15T13:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/977100#M49025</link>
      <description>&lt;P&gt;I'm guessing that there is some aspect of my design that makes the contrast unestimable.&amp;nbsp; The t-statistic from the LSMESTIMATE statement could probably be used in the way that I want it to, although I might be stretching the usefulness of these models here.&amp;nbsp; Anyway, thanks everyone for reading and offering suggestions.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 00:36:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/977100#M49025</guid>
      <dc:creator>wateas</dc:creator>
      <dc:date>2025-10-16T00:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CONTRAST statement in GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/977160#M49026</link>
      <description>&lt;P&gt;If LSMEANS or LSMESTIMATE statement works, you can always add the E option in these statements, then use the CONTRAST statement to reproduce one or more of the estimates of your interest.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 13:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Issue-with-CONTRAST-statement-in-GLIMMIX/m-p/977160#M49026</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2025-10-16T13:45:56Z</dc:date>
    </item>
  </channel>
</rss>

