<?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: One-sided Proc GLM with testvalue in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Proc-GLM-with-testvalue/m-p/969551#M48740</link>
    <description>&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This looks great - thank you.&lt;/P&gt;
&lt;P&gt;I compared the estimates to the estimates of the Proc GLM and they were the same.&lt;/P&gt;
&lt;P&gt;(In the code below, Should the testvalue=4 in the lsmestimate line?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jun 2025 16:28:59 GMT</pubDate>
    <dc:creator>nsns</dc:creator>
    <dc:date>2025-06-23T16:28:59Z</dc:date>
    <item>
      <title>One-sided Proc GLM with testvalue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Proc-GLM-with-testvalue/m-p/969539#M48738</link>
      <description>&lt;P&gt;Hi .&lt;/P&gt;
&lt;P&gt;What is the correct code using Proc GLM to test a 2-groups one-sided hypothesis where the hypothesis is H0:&amp;nbsp; Difference between groups &amp;lt;= 4, H1: Difference between groups &amp;gt; 4?&amp;nbsp; The model will include baseline and site as covariates.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 14:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Proc-GLM-with-testvalue/m-p/969539#M48738</guid>
      <dc:creator>nsns</dc:creator>
      <dc:date>2025-06-23T14:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: One-sided Proc GLM with testvalue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Proc-GLM-with-testvalue/m-p/969544#M48739</link>
      <description>&lt;P&gt;See &lt;A href="http://support.sas.com/kb/24094" target="_self"&gt;this note&lt;/A&gt; on one-sided testing and using a non-zero null value. For example, you can PROC ORTHOREG which is the modern regression procedure that has the most up-to-date capabilities available, including the LSMESTIMATE statement that allows you to estimate and compare means and to specify a null value other than zero (TESTVALUE=) and one-sided tests (UPPER and LOWER). See the ORTHOREG documentation for details. For example, the following tests whether the difference between the F and A drugs exceeds 4.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data DrugTest;
   input Drug $ PreTreatment PostTreatment @@;
   datalines;
A 11  6   A  8  0   A  5  2   A 14  8   A 19 11
A  6  4   A 10 13   A  6  1   A 11  8   A  3  0
D  6  0   D  6  2   D  7  3   D  8  1   D 18 18
D  8  4   D 19 14   D  8  9   D  5  1   D 15  9
F 16 13   F 13 10   F 11 18   F  9  5   F 21 23
F 16 12   F 12  5   F 12 16   F  7  1   F 12 20
;
proc orthoreg data=DrugTest;
   class Drug;
   model PostTreatment = Drug PreTreatment;
   lsmestimate Drug 'F-A&amp;gt;4' -1 0 1 / testvalue=1 upper;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jun 2025 15:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Proc-GLM-with-testvalue/m-p/969544#M48739</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-06-23T15:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: One-sided Proc GLM with testvalue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Proc-GLM-with-testvalue/m-p/969551#M48740</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This looks great - thank you.&lt;/P&gt;
&lt;P&gt;I compared the estimates to the estimates of the Proc GLM and they were the same.&lt;/P&gt;
&lt;P&gt;(In the code below, Should the testvalue=4 in the lsmestimate line?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 16:28:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Proc-GLM-with-testvalue/m-p/969551#M48740</guid>
      <dc:creator>nsns</dc:creator>
      <dc:date>2025-06-23T16:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: One-sided Proc GLM with testvalue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Proc-GLM-with-testvalue/m-p/969552#M48741</link>
      <description>Yes, sorry, I had just been using 1 initially.</description>
      <pubDate>Mon, 23 Jun 2025 16:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Proc-GLM-with-testvalue/m-p/969552#M48741</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-06-23T16:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: One-sided Proc GLM with testvalue</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Proc-GLM-with-testvalue/m-p/969553#M48742</link>
      <description>&lt;P&gt;All good.&amp;nbsp; Thank you so much for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 16:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Proc-GLM-with-testvalue/m-p/969553#M48742</guid>
      <dc:creator>nsns</dc:creator>
      <dc:date>2025-06-23T16:36:24Z</dc:date>
    </item>
  </channel>
</rss>

