<?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: How do you run a two sample t test? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-you-run-a-two-sample-t-test/m-p/285346#M15079</link>
    <description>&lt;P&gt;Hi. There's a pretty good chance I'm just not following, but&amp;nbsp;maybe this will help:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. For a t-test of two independent samples, use proc ttest.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_ttest_a0000000116.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_ttest_a0000000116.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Once you've imported your data, no pasting of data should necessary. &amp;nbsp;If your IMPORT creates work.auto, then reference that datast on your subsequent proc ttest call, e.g.,:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc import out=auto....;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc ttest data = auto....;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2016 19:36:31 GMT</pubDate>
    <dc:creator>rayIII</dc:creator>
    <dc:date>2016-07-18T19:36:31Z</dc:date>
    <item>
      <title>How do you run a two sample t test?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-you-run-a-two-sample-t-test/m-p/285295#M15078</link>
      <description>&lt;P&gt;I'm a new user to SAS, and I am trying to figure out how to run a two sample t-test by referencing data I had previously imported from two different&amp;nbsp;excel files. I am using the most recent version of SAS studio (I installed SAS on my Virtual Box two weeks ago). When importing my excel files, I used this code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PROC IMPORT OUT= WORK.auto&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DATAFILE= "/folders/myfolders/auto.xls" &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DBMS=XLS REPLACE; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;GETNAMES=YES;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RUN;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aware that you can run two sample t-tests by using this kind of code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt; response;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; INPUT group $ time;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DATALINES;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;c 80&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;c 93&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;c 83&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;c 89&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;c 98&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;t 100&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;t 103&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;t 104&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;t 99&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;t 102&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;UNIVARIATE&lt;/STRONG&gt; DATA = response normal plot;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; class group;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; var time;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; histogram time / midpoints = &lt;STRONG&gt;80&lt;/STRONG&gt; to &lt;STRONG&gt;120&lt;/STRONG&gt; by &lt;STRONG&gt;5&lt;/STRONG&gt; normal;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am running t-tests on data sets with 1000+ entries, and I was wondering, is there any way that I can reference data in a column on the table I pulled in from the first block of code? Like, instead of copying and pasting in the data set from a column, is there some line of code I can use to just reference a certain column from the data?&amp;nbsp;I would really appreciate it if you can post a sample code that would be able to do this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, is there some manual on SAS that would teach me how to run code on t-tests, Z-scores, chi squares, etc?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 17:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-you-run-a-two-sample-t-test/m-p/285295#M15078</guid>
      <dc:creator>lj653</dc:creator>
      <dc:date>2016-07-18T17:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do you run a two sample t test?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-you-run-a-two-sample-t-test/m-p/285346#M15079</link>
      <description>&lt;P&gt;Hi. There's a pretty good chance I'm just not following, but&amp;nbsp;maybe this will help:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. For a t-test of two independent samples, use proc ttest.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_ttest_a0000000116.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_ttest_a0000000116.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Once you've imported your data, no pasting of data should necessary. &amp;nbsp;If your IMPORT creates work.auto, then reference that datast on your subsequent proc ttest call, e.g.,:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc import out=auto....;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc ttest data = auto....;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 19:36:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-you-run-a-two-sample-t-test/m-p/285346#M15079</guid>
      <dc:creator>rayIII</dc:creator>
      <dc:date>2016-07-18T19:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you run a two sample t test?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-you-run-a-two-sample-t-test/m-p/285353#M15080</link>
      <description>&lt;P&gt;I'll try that out and see if it works!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 19:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-you-run-a-two-sample-t-test/m-p/285353#M15080</guid>
      <dc:creator>lj653</dc:creator>
      <dc:date>2016-07-18T19:53:23Z</dc:date>
    </item>
  </channel>
</rss>

