<?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: Two Sample Paired T Test in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/470002#M70852</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
input group pre post;
diff = post-pre;
cards;
0 4 8
0 9 9
0 17 17
0 2 0
0 6 11
0 6 6
0 21 21
0 10 5
0 12 9
0 10 11
1 3 2
1 16 13
1 18 14
1 11 12
1 4 3
1 10 7
1 7 13
1 9 11
1 2 6
1 21 21
1 8 8
1 1 8
1 5 6
1 13 8
;
run;

proc anova data=have;
class group;
model diff = group;
means group / tukey;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Jun 2018 17:11:07 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-06-13T17:11:07Z</dc:date>
    <item>
      <title>Two Sample Paired T Test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/469954#M70837</link>
      <description>&lt;P&gt;Using SAS 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My research:&lt;/P&gt;&lt;P&gt;I had a group take a test (Baseline)&lt;/P&gt;&lt;P&gt;This group were then given two different drugs&lt;/P&gt;&lt;P&gt;The group then took the test again (FollowUp 1 [for drug 1] and FollowUp 2 [for drug 2])&lt;/P&gt;&lt;P&gt;I want to compare:&lt;/P&gt;&lt;P&gt;(Baseline to FollowUp1) = X&lt;/P&gt;&lt;P&gt;(Baseline to FollowUp2) = Y&lt;/P&gt;&lt;P&gt;Then&amp;nbsp;compare X and Y to see if there was any difference in baseline to followup score changes relating to drug type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 15:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/469954#M70837</guid>
      <dc:creator>LorcanOB</dc:creator>
      <dc:date>2018-06-13T15:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Two Sample Paired T Test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/469956#M70838</link>
      <description>&lt;P&gt;Of course, you planned your analysis when you designed the experiment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, what code have your written so far?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 15:13:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/469956#M70838</guid>
      <dc:creator>Norman21</dc:creator>
      <dc:date>2018-06-13T15:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Two Sample Paired T Test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/469958#M70839</link>
      <description>&lt;P&gt;Sounds exactly like this example here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_ttest_examples03.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_ttest_examples03.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the code is included in the example so you can run the example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're just getting into SAS the first statistics course is free on the e-learning page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215344"&gt;@LorcanOB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Using SAS 9.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My research:&lt;/P&gt;
&lt;P&gt;I had a group take a test (Baseline)&lt;/P&gt;
&lt;P&gt;This group were then given two different drugs&lt;/P&gt;
&lt;P&gt;The group then took the test again (FollowUp 1 [for drug 1] and FollowUp 2 [for drug 2])&lt;/P&gt;
&lt;P&gt;I want to compare:&lt;/P&gt;
&lt;P&gt;(Baseline to FollowUp1) = X&lt;/P&gt;
&lt;P&gt;(Baseline to FollowUp2) = Y&lt;/P&gt;
&lt;P&gt;Then&amp;nbsp;compare X and Y to see if there was any difference in baseline to followup score changes relating to drug type&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 15:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/469958#M70839</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-13T15:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Two Sample Paired T Test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/469963#M70841</link>
      <description>&lt;P&gt;Thanks Reeza. I am new (was it that obvious?)&lt;BR /&gt;&lt;BR /&gt;I checked that out before, but I am wondering is there a way to do a comparison of changes within two groups then compare the results of those two comparisons?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached sample data&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 278px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21184iA42BC48EF40D44EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 15:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/469963#M70841</guid>
      <dc:creator>LorcanOB</dc:creator>
      <dc:date>2018-06-13T15:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Two Sample Paired T Test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/469976#M70845</link>
      <description>&lt;P&gt;Post your data as text please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215344"&gt;@LorcanOB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks Reeza. I am new (was it that obvious?)&lt;BR /&gt;&lt;BR /&gt;I checked that out before, but I am wondering is there a way to do a comparison of changes within two groups then compare the results of those two comparisons?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached sample data&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 278px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21184iA42BC48EF40D44EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 15:55:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/469976#M70845</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-13T15:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Two Sample Paired T Test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/469978#M70846</link>
      <description>0 4 8&lt;BR /&gt;0 9 9&lt;BR /&gt;0 17 17&lt;BR /&gt;0 2 0&lt;BR /&gt;0 6 11&lt;BR /&gt;0 6 6&lt;BR /&gt;0 21 21&lt;BR /&gt;0 10 5&lt;BR /&gt;0 12 9&lt;BR /&gt;0 10 11&lt;BR /&gt;1 3 2&lt;BR /&gt;1 16 13&lt;BR /&gt;1 18 14&lt;BR /&gt;1 11 12&lt;BR /&gt;1 4 3&lt;BR /&gt;1 10 7&lt;BR /&gt;1 7 13&lt;BR /&gt;1 9 11&lt;BR /&gt;1 2 6&lt;BR /&gt;1 21 21&lt;BR /&gt;1 8 8&lt;BR /&gt;1 1 8&lt;BR /&gt;1 5 6&lt;BR /&gt;1 13 8&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jun 2018 16:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/469978#M70846</guid>
      <dc:creator>LorcanOB</dc:creator>
      <dc:date>2018-06-13T16:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Two Sample Paired T Test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/470002#M70852</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
input group pre post;
diff = post-pre;
cards;
0 4 8
0 9 9
0 17 17
0 2 0
0 6 11
0 6 6
0 21 21
0 10 5
0 12 9
0 10 11
1 3 2
1 16 13
1 18 14
1 11 12
1 4 3
1 10 7
1 7 13
1 9 11
1 2 6
1 21 21
1 8 8
1 1 8
1 5 6
1 13 8
;
run;

proc anova data=have;
class group;
model diff = group;
means group / tukey;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 17:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Two-Sample-Paired-T-Test/m-p/470002#M70852</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-13T17:11:07Z</dc:date>
    </item>
  </channel>
</rss>

