<?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 Contrast in PROC MIXED in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Contrast-in-PROC-MIXED/m-p/562284#M157502</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset which has observations before and after a treatment in 2 conditions. So I have "post" and "Pre" treatment measurements in condition "A" and "post" and "pre" treatment measurements in condition "B". I want to compare (Post - Pre) in condition A with (Post - Pre) in condition B. For that, I wrote the following code(time represents pre and post):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MIXED method=REML, data=my_data;&lt;/P&gt;&lt;P&gt;class subj_id condition time gender;&lt;/P&gt;&lt;P&gt;model value = time condition gender time*condition;&lt;/P&gt;&lt;P&gt;random int / subject=subj_id type=UN;&lt;/P&gt;&lt;P&gt;contrast 'my_contrast' time*condition 1 -1 -1 1;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Because I am new to SAS, I don't know whether this code does the same thing that I want or not. Can you help me to understand it better. Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 14:09:29 GMT</pubDate>
    <dc:creator>smortaheb</dc:creator>
    <dc:date>2019-05-29T14:09:29Z</dc:date>
    <item>
      <title>Contrast in PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Contrast-in-PROC-MIXED/m-p/562284#M157502</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset which has observations before and after a treatment in 2 conditions. So I have "post" and "Pre" treatment measurements in condition "A" and "post" and "pre" treatment measurements in condition "B". I want to compare (Post - Pre) in condition A with (Post - Pre) in condition B. For that, I wrote the following code(time represents pre and post):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MIXED method=REML, data=my_data;&lt;/P&gt;&lt;P&gt;class subj_id condition time gender;&lt;/P&gt;&lt;P&gt;model value = time condition gender time*condition;&lt;/P&gt;&lt;P&gt;random int / subject=subj_id type=UN;&lt;/P&gt;&lt;P&gt;contrast 'my_contrast' time*condition 1 -1 -1 1;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Because I am new to SAS, I don't know whether this code does the same thing that I want or not. Can you help me to understand it better. Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 14:09:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Contrast-in-PROC-MIXED/m-p/562284#M157502</guid>
      <dc:creator>smortaheb</dc:creator>
      <dc:date>2019-05-29T14:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Contrast in PROC MIXED</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Contrast-in-PROC-MIXED/m-p/562345#M157521</link>
      <description>&lt;P&gt;Use the E option of the contrast statement, this will tell you what is being multiplied by 1 and what is being multiplied by –1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;contrast 'my_contrast' time*condition 1 -1 -1 1/e;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 16:44:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Contrast-in-PROC-MIXED/m-p/562345#M157521</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-29T16:44:47Z</dc:date>
    </item>
  </channel>
</rss>

