<?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: Compare means of 2 variables from admission to discharge in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Compare-means-of-2-variables-from-admission-to-discharge/m-p/403661#M98096</link>
    <description>&lt;P&gt;PROC TTEST or PROC ANOVA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check both of the examples sections.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think, this should be a PAIRED T-Test, so make sure you decide explicitly if it's paired or not.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2017 19:25:03 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-10-12T19:25:03Z</dc:date>
    <item>
      <title>Compare means of 2 variables from admission to discharge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compare-means-of-2-variables-from-admission-to-discharge/m-p/403647#M98089</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data with glucose levels at admission and at discharge in 2 different variables. I want to calculate the P-value for the difference in means between these 2 variables. It means, I want to test if there was a significant change in the glucose level with time in this population.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="branch"&gt;SAS Output&lt;DIV class="branch"&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV align="center"&gt;&lt;P&gt;Variable&lt;/P&gt;&lt;P&gt;HBA1C_ADM&lt;/P&gt;&lt;P&gt;HBA1C_DIS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mean&lt;/P&gt;&lt;P&gt;7.1&lt;/P&gt;&lt;P&gt;6.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SD&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.0&lt;/P&gt;&lt;P&gt;0.8&lt;/P&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Oct 2017 18:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compare-means-of-2-variables-from-admission-to-discharge/m-p/403647#M98089</guid>
      <dc:creator>seltonsy</dc:creator>
      <dc:date>2017-10-12T18:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compare means of 2 variables from admission to discharge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compare-means-of-2-variables-from-admission-to-discharge/m-p/403654#M98094</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117607"&gt;@seltonsy&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a data with glucose levels at admission and at discharge in 2 different variables. I want to calculate the P-value for the difference in means between these 2 variables. It means, I want to test if there was a significant change in the glucose level with time in this population.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="branch"&gt;SAS Output
&lt;DIV class="branch"&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align="center"&gt;
&lt;P&gt;Variable&lt;/P&gt;
&lt;P&gt;HBA1C_ADM&lt;/P&gt;
&lt;P&gt;HBA1C_DIS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mean&lt;/P&gt;
&lt;P&gt;7.1&lt;/P&gt;
&lt;P&gt;6.5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SD&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.0&lt;/P&gt;
&lt;P&gt;0.8&lt;/P&gt;
&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117607"&gt;@seltonsy&lt;/a&gt;&amp;nbsp;So what is your question to us? Which part, specifically, are you having issues with?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 19:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compare-means-of-2-variables-from-admission-to-discharge/m-p/403654#M98094</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-12T19:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Compare means of 2 variables from admission to discharge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compare-means-of-2-variables-from-admission-to-discharge/m-p/403658#M98095</link>
      <description>&lt;P&gt;sorry if it wasn't clear enough,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to know what is the proc to use that can perform this test. Compre the means of the two variables and provide p-values (i.e. if the means of the 2 variables are significantly different or not).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 19:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compare-means-of-2-variables-from-admission-to-discharge/m-p/403658#M98095</guid>
      <dc:creator>seltonsy</dc:creator>
      <dc:date>2017-10-12T19:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Compare means of 2 variables from admission to discharge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compare-means-of-2-variables-from-admission-to-discharge/m-p/403661#M98096</link>
      <description>&lt;P&gt;PROC TTEST or PROC ANOVA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check both of the examples sections.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think, this should be a PAIRED T-Test, so make sure you decide explicitly if it's paired or not.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 19:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compare-means-of-2-variables-from-admission-to-discharge/m-p/403661#M98096</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-12T19:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compare means of 2 variables from admission to discharge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compare-means-of-2-variables-from-admission-to-discharge/m-p/403664#M98097</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paired t test is the right answer I guess,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I did,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc ttest data=cohort_1 ;&lt;BR /&gt;paired HBA1C_ADM*HBA1C_FIN;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 19:36:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compare-means-of-2-variables-from-admission-to-discharge/m-p/403664#M98097</guid>
      <dc:creator>seltonsy</dc:creator>
      <dc:date>2017-10-12T19:36:46Z</dc:date>
    </item>
  </channel>
</rss>

