<?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: which t test in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751536#M36548</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jul 2021 18:51:34 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2021-07-01T18:51:34Z</dc:date>
    <item>
      <title>which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751527#M36541</link>
      <description>&lt;P&gt;Is there someone who can help me decide which t-test I should use in this scenario:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to test if there is a significant difference between the means of blood sugar under two conditions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a group of people who got their blood sugar measured twice. First time with the lights turned off and second time with the lights turned on. My outcome is the &lt;STRONG&gt;difference&lt;/STRONG&gt; between the two blood sugar measurements.&amp;nbsp;&lt;BR /&gt;I am not sure which test to use as I have already paired the data when using the difference as outcome.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 18:23:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751527#M36541</guid>
      <dc:creator>lone0708</dc:creator>
      <dc:date>2021-07-01T18:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751528#M36542</link>
      <description>&lt;P&gt;Use the Wilcoxon signed-rank test in PROC UNIVARIATE on the difference.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 18:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751528#M36542</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-07-01T18:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751530#M36543</link>
      <description>Genius... thanks ;D</description>
      <pubDate>Thu, 01 Jul 2021 18:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751530#M36543</guid>
      <dc:creator>lone0708</dc:creator>
      <dc:date>2021-07-01T18:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751531#M36544</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp; May i seek your clarification as to why not a Paired T test assuming the samples are normally distributed?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 18:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751531#M36544</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2021-07-01T18:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751532#M36545</link>
      <description>&lt;P&gt;Well.. next problem, I have a lot of conditions to test if they have an influence on the difference. How do I write the code, so I only look at one condition at the time?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 18:41:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751532#M36545</guid>
      <dc:creator>lone0708</dc:creator>
      <dc:date>2021-07-01T18:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751534#M36546</link>
      <description>&lt;P&gt;You could use the t-test in UNIVARIATE if desired. That would be fine if the data are approximately normal in which case it will be a more powerful test.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 18:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751534#M36546</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-07-01T18:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751535#M36547</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/338918"&gt;@lone0708&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Well.. next problem, I have a lot of conditions to test if they have an influence on the difference. How do I write the code, so I only look at one condition at the time?&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Give an example of "lot of conditions".&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 18:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751535#M36547</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-01T18:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751536#M36548</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 18:51:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751536#M36548</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2021-07-01T18:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751539#M36549</link>
      <description>&lt;P&gt;light on/off&lt;/P&gt;&lt;P&gt;fasting yes/no&lt;/P&gt;&lt;P&gt;standing yes/no&lt;/P&gt;&lt;P&gt;coffee yes/no&lt;BR /&gt;&lt;BR /&gt;Sometimes the conditions are the same for blood sugar 1 and 2, meaning light could be on at both times, but sometimes they are not. I want to test, if fx light have an influence on the difference between first and second measurement&lt;BR /&gt;&lt;BR /&gt;my dataset looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Patient number &amp;nbsp; &amp;nbsp; &amp;nbsp; blood sugar 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;blood sugar 2 &amp;nbsp; &amp;nbsp; &amp;nbsp;blood sugar difference &amp;nbsp; &amp;nbsp; &amp;nbsp;light &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fasting &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;standing &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;patient 1&lt;/P&gt;&lt;P&gt;patient 2&lt;/P&gt;&lt;P&gt;patient 3&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 19:04:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751539#M36549</guid>
      <dc:creator>lone0708</dc:creator>
      <dc:date>2021-07-01T19:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751541#M36550</link>
      <description>&lt;P&gt;In PROC UNIVARIATE, place all the variable names (light, fasting, standing, coffee, ...) into the VAR statement.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 19:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751541#M36550</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-01T19:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751553#M36551</link>
      <description>&lt;P&gt;Thanks PaigeMiller,&lt;BR /&gt;When I write my code.&lt;BR /&gt;proc univariate data = have;&lt;/P&gt;&lt;P&gt;var difference light fasting standing coffee; run;&lt;BR /&gt;&lt;BR /&gt;I get a procedure for every variable (obviously...), how will I know if the "condition"-variables influence on the difference?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 19:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751553#M36551</guid>
      <dc:creator>lone0708</dc:creator>
      <dc:date>2021-07-01T19:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751555#M36552</link>
      <description>&lt;P&gt;It's the same output as for the blood sugar difference.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 19:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751555#M36552</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-01T19:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751560#M36553</link>
      <description>yes, I get an output for every variable - and then I look at the t tests p-value, but what does that p-value exactly tell me - if my question is whether the condition influences on how big the blood sugar difference is.&lt;BR /&gt;&lt;BR /&gt;sorry... I am definitely not a statistician &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 01 Jul 2021 19:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751560#M36553</guid>
      <dc:creator>lone0708</dc:creator>
      <dc:date>2021-07-01T19:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751561#M36554</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;See the example here:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/procstat/procstat_univariate_examples13.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/procstat/procstat_univariate_examples13.htm&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;at the bottom, it says "Signed Rank" and under p-value, it has the number 0.5278. If this number is less than 0.05 (that's the usual cutoff), then the two groups are considered to have a different mean. Since, in the example, it is greater than 0.05, then the two groups are considered to not have a different mean. * This is the layman's explanation, statisticians use other words to explain this to other statisticians.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 19:58:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751561#M36554</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-01T19:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751569#M36557</link>
      <description>&lt;P&gt;Your data is still not entirely clear. If each patient is measured only twice and if the settings of light, standing, fasting, and coffee are recorded for each of those two measurements, then you need to fit a model that includes the four variables as predictors and that can adjust for the correlation between the two values within each patient. There are various modeling approaches, but one is a&amp;nbsp; Generalized Estimating Equations model as can be fit by PROC GEE. You need to rearrange your data so that each patient has two observations with the response value and the setting of&amp;nbsp;light, standing, fasting, and coffee recorded. Also a patientID variable that has the same value for the two observations from one patient. You can then fit a model like the following. The test of the parameter for each of the four variables is a test of the effect of the variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gee;
class light standing fasting coffee;
model bloodsugar = light standing fasting coffee;
repeated subject=patientID;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Jul 2021 20:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751569#M36557</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-07-01T20:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751738#M36567</link>
      <description>StatDave,&lt;BR /&gt;Why not MIXED Model ? since it is repeated measure test ("measured twice") .</description>
      <pubDate>Fri, 02 Jul 2021 13:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751738#M36567</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-07-02T13:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: which t test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751742#M36568</link>
      <description>&lt;P&gt;Yes... that is one of the various modeling approaches I mentioned.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 14:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/which-t-test/m-p/751742#M36568</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-07-02T14:17:43Z</dc:date>
    </item>
  </channel>
</rss>

