<?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: Passing TESTVALUE option in LSMESTIMATE statement in glimmix in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Passing-TESTVALUE-option-in-LSMESTIMATE-statement-in-glimmix/m-p/983497#M49256</link>
    <description>&lt;P&gt;I appreciate the clarification.&lt;/P&gt;</description>
    <pubDate>Sat, 14 Feb 2026 19:54:39 GMT</pubDate>
    <dc:creator>wateas</dc:creator>
    <dc:date>2026-02-14T19:54:39Z</dc:date>
    <item>
      <title>Passing TESTVALUE option in LSMESTIMATE statement in glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Passing-TESTVALUE-option-in-LSMESTIMATE-statement-in-glimmix/m-p/983472#M49237</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm just a bit confused about using the TESTVALUE option in an lsmestimate statement.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to be able to do what's shown in page 7 of &lt;A href="https://www.lexjansen.com/pharmasug/2011/SAS/PharmaSUG-2011-SAS-SP01.pdf" target="_self"&gt;this article&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmestimate A "A1 - A2" 1 -1/ testvalue=50;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reasons unknown to me, the TESTVALUE option appears in some SAS documentation but not others:&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/statcdc/14.2/statug/statug_introcom_sect048.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/statcdc/14.2/statug/statug_introcom_sect048.htm&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_glimmix_syntax14.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/statug/15.2/statug_glimmix_syntax14.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I try to use it in an lsmestimate statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=df plots=studentpanel method=rspl;
    class Year_CAT Trt_Amend_App Trt_CC ID_S Block ID_S_P;
    model Soil_C_ESM_15_DELTA_y0 = Trt_Amend_App | Trt_CC | Year_CAT ID_S / ddfm=kr2;
	random Block(ID_S);
    random Year_CAT / residual type=ar(1) subject=ID_S_P;
	lsmestimate Year_CAT * Trt_Amend_App "Test" 0 0 0 1 0 0 -1 0 / testvalue=8; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get an error:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;622      lsmestimate Year_CAT * Trt_Amend_App "Test" 0 0 0 1 0 0 -1 0 / testvalue=8;
                                                                        ---------
                                                                        73
ERROR 73-322: Expecting an AT.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What could be going wrong here?&amp;nbsp; Does GLIMMIX not support this option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reading.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 21:07:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Passing-TESTVALUE-option-in-LSMESTIMATE-statement-in-glimmix/m-p/983472#M49237</guid>
      <dc:creator>wateas</dc:creator>
      <dc:date>2026-02-13T21:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Passing TESTVALUE option in LSMESTIMATE statement in glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Passing-TESTVALUE-option-in-LSMESTIMATE-statement-in-glimmix/m-p/983477#M49246</link>
      <description>&lt;P&gt;You are correct -- The LSMESTIMATE statement in PROC GLIMMIX does not support the TESTVALUE= option. The documentation on this statement is here ---&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_glimmix_syntax14.htm=" target="_blank"&gt;SAS Help Center: LSMESTIMATE Statement&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The LSMESTIMATE statement in other procedures, such as PROC LOGISTIC, does support the TESTVALUE= option, as described in the documentation below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_logistic_syntax21.htm=" target="_blank"&gt;SAS Help Center: LSMESTIMATE Statement&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A little history: the LSMESTIMATE statement was first available in PROC GLIMMIX. Then a project was initiated to develop a set of post-fitting statements that can be used by many procedures. The LSMESTIMATE statement was one of them. These statements are described in details in the Shared Concepts and Topics section of the SAS/STAT documentation (rather than in a specific procedure). The TESTVALUE= option was added in this statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the STORE statement in PROC GLIMMIX, then use the LSMESTIMATE statement in PROC PLM for post-fitting analysis. The TESTVALUE= option is available there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 22:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Passing-TESTVALUE-option-in-LSMESTIMATE-statement-in-glimmix/m-p/983477#M49246</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2026-02-13T22:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Passing TESTVALUE option in LSMESTIMATE statement in glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Passing-TESTVALUE-option-in-LSMESTIMATE-statement-in-glimmix/m-p/983497#M49256</link>
      <description>&lt;P&gt;I appreciate the clarification.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Feb 2026 19:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Passing-TESTVALUE-option-in-LSMESTIMATE-statement-in-glimmix/m-p/983497#M49256</guid>
      <dc:creator>wateas</dc:creator>
      <dc:date>2026-02-14T19:54:39Z</dc:date>
    </item>
  </channel>
</rss>

