<?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: Performing t-test given sample sizes, means, and std dev in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Performing-t-test-given-sample-sizes-means-and-std-dev/m-p/792142#M253806</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/412814"&gt;@eeun1ilee&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SAS documentation is really good and in the &lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_ttest_syntax01.htm#statug.ttest.tteprocdata" target="_blank" rel="noopener"&gt;documentation of the DATA= option&lt;/A&gt; of the PROC TTEST statement you find a link "&lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_ttest_details01.htm" target="_blank" rel="noopener"&gt;Input Data Set of Statistics&lt;/A&gt;" explaining how an input data set containing summary statistics needs to look like.&amp;nbsp;&lt;SPAN&gt;Better yet, the first example for PROC TTEST, &lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_ttest_examples01.htm" target="_blank" rel="noopener"&gt;Example 127.1 Using Summary Statistics to Compare Group Means&lt;/A&gt;, demonstrates exactly this technique.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's quite easy:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input c _stat_ $ x;
cards;
1 n 46
2 n 54
1 mean 1.32
2 mean 0.96
1 std 2.25
2 std 2.18
;

proc ttest data=want;
class c;
var x;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jan 2022 09:42:47 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2022-01-25T09:42:47Z</dc:date>
    <item>
      <title>Performing t-test given sample sizes, means, and std dev</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Performing-t-test-given-sample-sizes-means-and-std-dev/m-p/792109#M253795</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm a SAS beginner who needs help:( I'm not sure if this makes sense but&lt;/P&gt;&lt;P&gt;I need to perform a two-sample t-test given sample sizes, means, and standard deviations:&lt;/P&gt;&lt;P&gt;N1 = 46&amp;nbsp;&lt;/P&gt;&lt;P&gt;N2 = 54&lt;/P&gt;&lt;P&gt;mean for N1 = 1.32&lt;/P&gt;&lt;P&gt;mean for N2 = 0.96&lt;/P&gt;&lt;P&gt;std dev for N1 = 2.25&lt;/P&gt;&lt;P&gt;std dev for N2 = 2.18&lt;/P&gt;&lt;P&gt;Is it possible to perform the test? I've only performed statistical tests using datasets. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 07:52:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Performing-t-test-given-sample-sizes-means-and-std-dev/m-p/792109#M253795</guid>
      <dc:creator>eeun1ilee</dc:creator>
      <dc:date>2022-01-25T07:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Performing t-test given sample sizes, means, and std dev</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Performing-t-test-given-sample-sizes-means-and-std-dev/m-p/792142#M253806</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/412814"&gt;@eeun1ilee&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SAS documentation is really good and in the &lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_ttest_syntax01.htm#statug.ttest.tteprocdata" target="_blank" rel="noopener"&gt;documentation of the DATA= option&lt;/A&gt; of the PROC TTEST statement you find a link "&lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_ttest_details01.htm" target="_blank" rel="noopener"&gt;Input Data Set of Statistics&lt;/A&gt;" explaining how an input data set containing summary statistics needs to look like.&amp;nbsp;&lt;SPAN&gt;Better yet, the first example for PROC TTEST, &lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_ttest_examples01.htm" target="_blank" rel="noopener"&gt;Example 127.1 Using Summary Statistics to Compare Group Means&lt;/A&gt;, demonstrates exactly this technique.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's quite easy:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input c _stat_ $ x;
cards;
1 n 46
2 n 54
1 mean 1.32
2 mean 0.96
1 std 2.25
2 std 2.18
;

proc ttest data=want;
class c;
var x;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 09:42:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Performing-t-test-given-sample-sizes-means-and-std-dev/m-p/792142#M253806</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-01-25T09:42:47Z</dc:date>
    </item>
  </channel>
</rss>

