<?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 option in proc mixed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-reverse-the-direction-of-difference-using-pdiff-option-in/m-p/689357#M33228</link>
    <description>&lt;P&gt;From the top of my head:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Change the sign of variable &lt;EM&gt;aval&lt;/EM&gt; (this will also change the sign of residuals),&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;2) Change the sign of LS means and confidence interval limits (if any) in &lt;EM&gt;lsmeans&lt;/EM&gt; and &lt;EM&gt;diffs&lt;/EM&gt; datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure you label those differences appropriately in your result tables, since you are going against standard practice.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2020 22:17:31 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2020-10-06T22:17:31Z</dc:date>
    <item>
      <title>How to reverse the direction of difference using pdiff option in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-reverse-the-direction-of-difference-using-pdiff-option-in/m-p/689110#M33217</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using the following code.&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;ods output lsmeans=estimate&lt;BR /&gt;diffs=diff;&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;BR /&gt;ods output close;&lt;BR /&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;The aim is to get the LS means, SE and the difference of LS means and SEs from plcebo(treatn=3) to each of the treatments (treatn=1,2) as 'placebo - treatment. I believe currently the code is generating the diffrence other way round as (treatment - placebo).&lt;BR /&gt;Need to know how to reverse the direction of difference to get the difference.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 08:01:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-reverse-the-direction-of-difference-using-pdiff-option-in/m-p/689110#M33217</guid>
      <dc:creator>Arthur2</dc:creator>
      <dc:date>2020-10-06T08:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to reverse the direction of difference using pdiff option in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-reverse-the-direction-of-difference-using-pdiff-option-in/m-p/689357#M33228</link>
      <description>&lt;P&gt;From the top of my head:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Change the sign of variable &lt;EM&gt;aval&lt;/EM&gt; (this will also change the sign of residuals),&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;2) Change the sign of LS means and confidence interval limits (if any) in &lt;EM&gt;lsmeans&lt;/EM&gt; and &lt;EM&gt;diffs&lt;/EM&gt; datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure you label those differences appropriately in your result tables, since you are going against standard practice.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 22:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-reverse-the-direction-of-difference-using-pdiff-option-in/m-p/689357#M33228</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-10-06T22:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to reverse the direction of difference using pdiff option in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-reverse-the-direction-of-difference-using-pdiff-option-in/m-p/691243#M33332</link>
      <description>&lt;P&gt;Use an LSMESTIMATE statement that utilizes the coefficients in the direction of interest.&amp;nbsp; For example,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmestimate treatn 'Placebo - trt 1' -1 0 1,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Placebo&amp;nbsp;-&amp;nbsp;trt&amp;nbsp;2'&amp;nbsp;0&amp;nbsp;-1&amp;nbsp;1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 12:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-reverse-the-direction-of-difference-using-pdiff-option-in/m-p/691243#M33332</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-10-13T12:57:49Z</dc:date>
    </item>
  </channel>
</rss>

