<?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 Difference Between Two Columns in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Difference-Between-Two-Columns/m-p/712878#M27086</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm new to SAS and I would love some help! I'm supposed to do a T-test on two treatment groups and their VO2 level change. But before I can do the T-test, I need to find the difference between the columns VO2peak_BL and VO2peak_F and make a NEW column VO2peak_max. I have no clue how to do that (I can take the long way around it and download the data into excel, make the column, and re-upload it, but I want to do it all in SAS to practice).&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the new column VO2peak_max is created, I can then move onto the t-test!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2021 20:26:06 GMT</pubDate>
    <dc:creator>luvduvbunny</dc:creator>
    <dc:date>2021-01-20T20:26:06Z</dc:date>
    <item>
      <title>Difference Between Two Columns</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Difference-Between-Two-Columns/m-p/712878#M27086</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm new to SAS and I would love some help! I'm supposed to do a T-test on two treatment groups and their VO2 level change. But before I can do the T-test, I need to find the difference between the columns VO2peak_BL and VO2peak_F and make a NEW column VO2peak_max. I have no clue how to do that (I can take the long way around it and download the data into excel, make the column, and re-upload it, but I want to do it all in SAS to practice).&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the new column VO2peak_max is created, I can then move onto the t-test!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 20:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Difference-Between-Two-Columns/m-p/712878#M27086</guid>
      <dc:creator>luvduvbunny</dc:creator>
      <dc:date>2021-01-20T20:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Difference Between Two Columns</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Difference-Between-Two-Columns/m-p/712886#M27087</link>
      <description>&lt;P&gt;Are you trying to do a paired t test? If so, you do not need to take the difference first.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_ttest_examples03.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_ttest_examples03.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise here's a tutorial on creating new variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;https://video.sas.com/detail/videos/sas-analytics-u/video/4573023399001/creating-a-new-column-in-sas?autoStart=true&amp;amp;page=1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want; *want is name of output data set;
set have; *have is name of input data set;

diff = Variable1 - Variable2; *new variable DIFF is created;

run;&lt;/CODE&gt;&lt;/PRE&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/364952"&gt;@luvduvbunny&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I'm new to SAS and I would love some help! I'm supposed to do a T-test on two treatment groups and their VO2 level change. But before I can do the T-test, I need to find the difference between the columns VO2peak_BL and VO2peak_F and make a NEW column VO2peak_max. I have no clue how to do that (I can take the long way around it and download the data into excel, make the column, and re-upload it, but I want to do it all in SAS to practice).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After the new column VO2peak_max is created, I can then move onto the t-test!&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, 20 Jan 2021 20:57:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Difference-Between-Two-Columns/m-p/712886#M27087</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-20T20:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Difference Between Two Columns</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Difference-Between-Two-Columns/m-p/712905#M27088</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;The primary purpose of the problem was to test for whether the different exercise plans had a different effect on the subjects. That is, is there a ‘difference of differences’ for VO2max between the HIIT and MIT groups. Therefore my test would need to be a two-sample t-test&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 22:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Difference-Between-Two-Columns/m-p/712905#M27088</guid>
      <dc:creator>luvduvbunny</dc:creator>
      <dc:date>2021-01-20T22:12:10Z</dc:date>
    </item>
  </channel>
</rss>

