<?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: Proc T Test Help in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959851#M48075</link>
    <description>&lt;P&gt;So someone tells you the N (sample size), mean and variance, and you want to test if the mean is zero??? Is this a one-sample test or a two-sample test? You don't tell us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, then you can do this with a calculator, the formula is here: &lt;A href="https://en.wikipedia.org/wiki/Student%27s_t-test#One-sample_t-test" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/Student%27s_t-test#One-sample_t-test&lt;/A&gt;. I don't think you can do this in PROC TTEST.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can program that formula into a SAS data step, and also use the SAS function &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/ds2ref/n018g59blt8od0n1qyb6xvq4z70d.htm" target="_self"&gt;CDF('T', t, df [, nc])&lt;/A&gt; to replace looking up the probability in a statistical table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 22:20:03 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2025-02-20T22:20:03Z</dc:date>
    <item>
      <title>Proc T Test Help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959822#M48074</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like I am missing a small thing probably.&amp;nbsp; But, I have been doing Proc T tests for a set of data.&amp;nbsp; But can anyone help me set up the top portion if I do not have a set of data but instead i am given the sample size, mean and variance.&amp;nbsp;&amp;nbsp; Is anyone able to help me figure out what I need do to in place of the data lines and or cards?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 20:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959822#M48074</guid>
      <dc:creator>KB131619</dc:creator>
      <dc:date>2025-02-20T20:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc T Test Help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959851#M48075</link>
      <description>&lt;P&gt;So someone tells you the N (sample size), mean and variance, and you want to test if the mean is zero??? Is this a one-sample test or a two-sample test? You don't tell us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, then you can do this with a calculator, the formula is here: &lt;A href="https://en.wikipedia.org/wiki/Student%27s_t-test#One-sample_t-test" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/Student%27s_t-test#One-sample_t-test&lt;/A&gt;. I don't think you can do this in PROC TTEST.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can program that formula into a SAS data step, and also use the SAS function &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/ds2ref/n018g59blt8od0n1qyb6xvq4z70d.htm" target="_self"&gt;CDF('T', t, df [, nc])&lt;/A&gt; to replace looking up the probability in a statistical table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 22:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959851#M48075</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-02-20T22:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc T Test Help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959856#M48076</link>
      <description>&lt;P&gt;Well, you could simulate some data based on your parameters and then run TTEST on that -- just showing PROC MEANS here to demonstrate that we have two groups with the mean and standard deviation that we expect.&amp;nbsp; If you have unequal variances (which the below assumes), then be sure to select the correct options in PROC TTEST.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let SAMPLESIZE_A=1000;
%let MEAN_A=40;
%let VARIANCE_A=16;

%let SAMPLESIZE_B=1500;
%let MEAN_B=35;
%let VARIANCE_B=25;

data sim;
group='A';
do i=1 to &amp;amp;SAMPLESIZE_A;
	x=&amp;amp;MEAN_A+rand('normal')*sqrt(&amp;amp;VARIANCE_A);
	output;
end;
group='B';
do i=1 to &amp;amp;SAMPLESIZE_B;
	x=&amp;amp;MEAN_B+rand('normal')*sqrt(&amp;amp;VARIANCE_B);
	output;
end;
run;

proc means data=sim mean std;
class group;
var x;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Feb 2025 22:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959856#M48076</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-02-20T22:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc T Test Help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959873#M48077</link>
      <description>No there is no 0.&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Feb 2025 02:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959873#M48077</guid>
      <dc:creator>KB131619</dc:creator>
      <dc:date>2025-02-21T02:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc T Test Help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959879#M48078</link>
      <description>&lt;P&gt;Documentation is always your good friend . Check its example.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1740104337398.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104819iFB73AC0DF1CB10CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1740104337398.png" alt="Ksharp_0-1740104337398.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1740104354893.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104820iC82674C9CFE5483A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1740104354893.png" alt="Ksharp_1-1740104354893.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_2-1740104387321.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104821i9BAA1B899A8032E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_2-1740104387321.png" alt="Ksharp_2-1740104387321.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 02:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959879#M48078</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-02-21T02:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc T Test Help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959908#M48080</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/473272"&gt;@KB131619&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;No there is no 0.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm afraid this doesn't really explain anything. Are you doing one-sample or two-sample t-tests? If you don't want to compare to zero, what do you want to compare to?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 10:51:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959908#M48080</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-02-21T10:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc T Test Help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959924#M48082</link>
      <description>&lt;P&gt;Yes, you can run PROC TTEST when you have only the summary statistics and not the raw data. See&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/07/03/summary-statistics-t-tests-sas.html" target="_self"&gt;"Summary statistics and t tests in SAS"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 14:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-T-Test-Help/m-p/959924#M48082</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2025-02-21T14:16:28Z</dc:date>
    </item>
  </channel>
</rss>

