<?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 T_tests with Proc Tabulate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/T-tests-with-Proc-Tabulate/m-p/623984#M77342</link>
    <description>&lt;P&gt;Hello, I am trying to do some two sample t tests with proc tabulate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it even possible to do a two sample T-test with proc tabulate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have ran the ttest with proc ttest, and gotten the results I want. My issue is the output is difficult for&amp;nbsp; my teammate to understand. I was trying to simplify it with proc tabulate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc ttest data = work.t_test alpha=.05;
class ax_mcell_email_ibs_pm933;
var ct_bert1_score ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is my ttest sas code. This is working and give this output:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Proc Ttest output" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36039iDD5C16F0D33792BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="ttest_output.PNG" alt="Proc Ttest output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Proc Ttest output&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I have for proc tabulate. It is very close to what I want but appears to complete a 1 sample t test instead of a two sample ttest.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data = work.t_test;
class ax_mcell_email_ibs_pm745; /*Update current Program*/
var ct_bert1_score; 
table (ax_mcell_email_ibs_pm745='M_CELL'), ct_bert1_score * (n mean stddev t prt);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Proc Tabulate Output" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36041i57D38E8EEE3BB22B/image-size/large?v=v2&amp;amp;px=999" role="button" title="tabu;ate_output.PNG" alt="Proc Tabulate Output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Proc Tabulate Output&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is what I want the output to look like, I took the output from proc tabulate and edited it with a text editor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wanted Output" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36042i5643DBBFCCD75752/image-size/large?v=v2&amp;amp;px=999" role="button" title="Wanted_output.PNG" alt="Wanted Output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Wanted Output&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2020 19:53:47 GMT</pubDate>
    <dc:creator>ttuske</dc:creator>
    <dc:date>2020-02-11T19:53:47Z</dc:date>
    <item>
      <title>T_tests with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/T-tests-with-Proc-Tabulate/m-p/623984#M77342</link>
      <description>&lt;P&gt;Hello, I am trying to do some two sample t tests with proc tabulate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it even possible to do a two sample T-test with proc tabulate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have ran the ttest with proc ttest, and gotten the results I want. My issue is the output is difficult for&amp;nbsp; my teammate to understand. I was trying to simplify it with proc tabulate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc ttest data = work.t_test alpha=.05;
class ax_mcell_email_ibs_pm933;
var ct_bert1_score ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is my ttest sas code. This is working and give this output:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Proc Ttest output" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36039iDD5C16F0D33792BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="ttest_output.PNG" alt="Proc Ttest output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Proc Ttest output&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I have for proc tabulate. It is very close to what I want but appears to complete a 1 sample t test instead of a two sample ttest.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data = work.t_test;
class ax_mcell_email_ibs_pm745; /*Update current Program*/
var ct_bert1_score; 
table (ax_mcell_email_ibs_pm745='M_CELL'), ct_bert1_score * (n mean stddev t prt);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Proc Tabulate Output" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36041i57D38E8EEE3BB22B/image-size/large?v=v2&amp;amp;px=999" role="button" title="tabu;ate_output.PNG" alt="Proc Tabulate Output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Proc Tabulate Output&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is what I want the output to look like, I took the output from proc tabulate and edited it with a text editor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wanted Output" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36042i5643DBBFCCD75752/image-size/large?v=v2&amp;amp;px=999" role="button" title="Wanted_output.PNG" alt="Wanted Output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Wanted Output&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 19:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/T-tests-with-Proc-Tabulate/m-p/623984#M77342</guid>
      <dc:creator>ttuske</dc:creator>
      <dc:date>2020-02-11T19:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: T_tests with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/T-tests-with-Proc-Tabulate/m-p/623987#M77343</link>
      <description>&lt;P&gt;In PROC TABULATE, the T and PRT are for the hypothesis that the mean is zero. They do not give you the ability to test the hypothesis that the two means are equal to each other (you may be able to program this yourself in TABULATE, but why bother when PROC TTEST does it for you?)&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 20:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/T-tests-with-Proc-Tabulate/m-p/623987#M77343</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-11T20:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: T_tests with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/T-tests-with-Proc-Tabulate/m-p/623991#M77344</link>
      <description>&lt;P&gt;Personally, I have no issue with Proc ttest. My team is trying to automate some processes/ reports. The ttest procedure is apparently difficult for those with no statistics background to understand. Is there a way to get something similar to the output I want? I have tried ods output, proc format and just can't seem to get it. In words, I just want the output to have the N, mean, std. dev. t statistic, p-value, and a pass/fail indicator.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 20:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/T-tests-with-Proc-Tabulate/m-p/623991#M77344</guid>
      <dc:creator>ttuske</dc:creator>
      <dc:date>2020-02-11T20:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: T_tests with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/T-tests-with-Proc-Tabulate/m-p/624022#M77348</link>
      <description>&lt;P&gt;If you store the output from PROC TTEST in a SAS data set, you should be able to get PROC TABULATE or PROC REPORT or even a DATA step to produce the desired table.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 21:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/T-tests-with-Proc-Tabulate/m-p/624022#M77348</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-11T21:18:35Z</dc:date>
    </item>
  </channel>
</rss>

