<?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: How to reverse the direction of difference using PDIFF in proc mix in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mix-Reverse-the-direction-of-difference-using-PDIFF/m-p/689361#M33231</link>
    <description>&lt;P&gt;Changed title and moved to &lt;EM&gt;statistics&lt;/EM&gt; community.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2020 22:30:57 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-10-06T22:30:57Z</dc:date>
    <item>
      <title>proc mix: Reverse the direction of difference using PDIFF</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mix-Reverse-the-direction-of-difference-using-PDIFF/m-p/688988#M33230</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm using proc mixed as follows:&lt;/P&gt;
&lt;P&gt;proc mixed data = mydata (where=(treatn in (1,2,3))) plots=all;&lt;BR /&gt;by estremn estrem atypen atype paramcd param avisitn avisit ;&lt;BR /&gt;class treatn;&lt;BR /&gt;model aval = treatn base/residual outp=resid;&lt;BR /&gt;lsmeans treatn / pdiff=control('3');&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;The difference of lsmeans and SE for 2 treatments (treatn=1,2) is required to be estimated from placebo (treatn=3) as 'placebo - treatment'. I believe currently pdiff is giving the difference as 'treatment - placebo'.&lt;BR /&gt;Help is required to reverse the direction of the difference so that I can get the difference of each treatment from placebo.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 22:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mix-Reverse-the-direction-of-difference-using-PDIFF/m-p/688988#M33230</guid>
      <dc:creator>Arthur2</dc:creator>
      <dc:date>2020-10-06T22:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to reverse the direction of difference using PDIFF in proc mix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mix-Reverse-the-direction-of-difference-using-PDIFF/m-p/689361#M33231</link>
      <description>&lt;P&gt;Changed title and moved to &lt;EM&gt;statistics&lt;/EM&gt; community.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 22:30:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mix-Reverse-the-direction-of-difference-using-PDIFF/m-p/689361#M33231</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-10-06T22:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc mix: Reverse the direction of difference using PDIFF</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mix-Reverse-the-direction-of-difference-using-PDIFF/m-p/689633#M33262</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/349766"&gt;@Arthur2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_mixed_syntax09.htm&amp;amp;docsetVersion=15.2&amp;amp;locale=en" target="_blank" rel="noopener"&gt;LSMESTIMATE statement&lt;/A&gt; (instead of the PDIFF option of the LSMEANS statement) to request the statistics for these differences (or for more general linear combinations).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmeans treatn;
lsmestimate treatn 'placebo vs. trt 1' -1  0 1,
                   'placebo vs. trt 2'  0 -1 1;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Oct 2020 17:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mix-Reverse-the-direction-of-difference-using-PDIFF/m-p/689633#M33262</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-10-07T17:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc mix: Reverse the direction of difference using PDIFF</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mix-Reverse-the-direction-of-difference-using-PDIFF/m-p/691246#M33334</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;, nice to see that your answer matches mine.&amp;nbsp; This thread is duplicated, and I am not sure how to merge the two.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 13:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mix-Reverse-the-direction-of-difference-using-PDIFF/m-p/691246#M33334</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-10-13T13:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc mix: Reverse the direction of difference using PDIFF</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mix-Reverse-the-direction-of-difference-using-PDIFF/m-p/691329#M33339</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;: That's funny. Rather,&amp;nbsp;&lt;EM&gt;I&lt;/EM&gt; am glad to see that my tentative idea matches a real expert's advice. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I wasn't aware of the duplicate thread. I think only moderators, super users and very few others have the privileges to merge threads.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 16:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mix-Reverse-the-direction-of-difference-using-PDIFF/m-p/691329#M33339</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-10-13T16:16:53Z</dc:date>
    </item>
  </channel>
</rss>

