<?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 TTEST results different between versions? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/TTEST-results-different-between-versions/m-p/916481#M45457</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Has there been any change in the TTEST between SAS Version 9.2 and 9.4?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was told that a value for a sample size determined using version 9.2 is now different if I calculate it using the same parameters in version 9.4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd appreciate confirmation of a change or confirmation that the calculation has not changed and that my result should be the same given the same parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If anyone is curious to calculate the sample size, here are the relevant parameters: Two-sided T Test for Mean Difference, normal distribution, exact method, null difference = 0, alpha = 0.01, mean difference = 4, nominal power = 0.9, number of sides = 2, and standard deviation = 5.&amp;nbsp; Version 9.4 gives an answer of 49 whereas 9.2 supposedly gives an answer of 48.&amp;nbsp; I've tried the calculation with other software and always get 49 so is version 9.2 buggy or does it also correctly give a value of 49?&amp;nbsp; Appreciate any confirmation - thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Feb 2024 14:46:06 GMT</pubDate>
    <dc:creator>michael_at_work</dc:creator>
    <dc:date>2024-02-16T14:46:06Z</dc:date>
    <item>
      <title>TTEST results different between versions?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TTEST-results-different-between-versions/m-p/916481#M45457</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Has there been any change in the TTEST between SAS Version 9.2 and 9.4?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was told that a value for a sample size determined using version 9.2 is now different if I calculate it using the same parameters in version 9.4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd appreciate confirmation of a change or confirmation that the calculation has not changed and that my result should be the same given the same parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If anyone is curious to calculate the sample size, here are the relevant parameters: Two-sided T Test for Mean Difference, normal distribution, exact method, null difference = 0, alpha = 0.01, mean difference = 4, nominal power = 0.9, number of sides = 2, and standard deviation = 5.&amp;nbsp; Version 9.4 gives an answer of 49 whereas 9.2 supposedly gives an answer of 48.&amp;nbsp; I've tried the calculation with other software and always get 49 so is version 9.2 buggy or does it also correctly give a value of 49?&amp;nbsp; Appreciate any confirmation - thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 14:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TTEST-results-different-between-versions/m-p/916481#M45457</guid>
      <dc:creator>michael_at_work</dc:creator>
      <dc:date>2024-02-16T14:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: TTEST results different between versions?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TTEST-results-different-between-versions/m-p/916518#M45458</link>
      <description>&lt;P&gt;Your subject line implies something about the TTEST Procedure but your question is apparently about Proc Power.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide the EXACT code you run. It is very easy to say you are using XYZ parameters but a narrative may miss one or more other options that the code would clarify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since SAS 9.2 was replaced more than 8 years I sort of wonder why this is an important question.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 17:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TTEST-results-different-between-versions/m-p/916518#M45458</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-02-16T17:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: TTEST results different between versions?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TTEST-results-different-between-versions/m-p/916524#M45461</link>
      <description>&lt;P&gt;Thanks for the reply.&amp;nbsp; I was given the result (n=96, 48 for each group) for a sample size calculation which was used in a clinical trial about 2 years ago.&amp;nbsp; This was based on the parameters I mentioned and when I asked to see these parameters and the calculation to get the sample size to include in the paper, the result I got was now 98.&amp;nbsp; I thought this was odd and asked why it is not 96 and was told that the software had changed from version 9.2 to 9.4 and now the result is just different.&amp;nbsp; To be honest, I find this reason to be very suspect.&amp;nbsp; I was hoping to verify that 96 (48 for each group) is not what version 9.2 provides as an answer and then I can figure out where the sample size came from.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 18:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TTEST-results-different-between-versions/m-p/916524#M45461</guid>
      <dc:creator>michael_at_work</dc:creator>
      <dc:date>2024-02-16T18:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: TTEST results different between versions?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TTEST-results-different-between-versions/m-p/916536#M45463</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/463828"&gt;@michael_at_work&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The relevant formulas in the &lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_power_a0000000986.htm" target="_blank" rel="noopener"&gt;v9.2&lt;/A&gt; and &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_power_details81.htm" target="_blank" rel="noopener"&gt;v9.4 documentation&lt;/A&gt; are identical, as far as I see. The result, 49 per group, matches what I obtain manually with a (different, but apparently equivalent) textbook formula. I found &lt;A href="https://support.sas.com/techsup/reports/SAS93/SAS93_TS1M0_issues_addressed.html" target="_blank" rel="noopener"&gt;documented bug fixes&lt;/A&gt; for PROC POWER between v9.2 and v9.4, e.g.,&amp;nbsp;&lt;A href="https://support.sas.com/kb/42/378.html" target="_blank" rel="noopener"&gt;Problem Note 42378&lt;/A&gt;, but not for the TWOSAMPLE&lt;EM&gt;MEANS&lt;/EM&gt; statement. Also, your numeric example is not a borderline case where numeric precision could be an issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did those who obtained 48 per group, by any chance, use the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_power_syntax93.htm#statug.power.powtmennfractional" target="_blank" rel="noopener"&gt;NFRACTIONAL option&lt;/A&gt; and then round the "Fractional N per Group" (which is&amp;nbsp;&lt;STRONG&gt;48&lt;/STRONG&gt;.186103) to the nearest integer instead of using the "Ceiling N per Group"?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 18:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TTEST-results-different-between-versions/m-p/916536#M45463</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-02-16T18:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: TTEST results different between versions?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TTEST-results-different-between-versions/m-p/916548#M45464</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/42/378.html" target="_blank"&gt;42378 - TWOSAMPLEFREQ in PROC POWER returns incorrect result for TEST=FISHER (sas.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/49/838.html" target="_blank"&gt;49838 - TWOSAMPLESURVIVAL statement options EVENTSPERGROUP=, GROUPEVENTS=, and EVENTSTOTAL= produce incorrect results (sas.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/32/395.html" target="_blank"&gt;32395 - Wrong numbers from ONECORR or MULTREG statement in PROC POWER (sas.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 19:10:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TTEST-results-different-between-versions/m-p/916548#M45464</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2024-02-16T19:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: TTEST results different between versions?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TTEST-results-different-between-versions/m-p/916576#M45466</link>
      <description>&lt;P&gt;Thanks for the confirmation.&amp;nbsp; I'm not sure about the fractional option as it was not explicitly mentioned but I can follow up on that.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 21:33:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TTEST-results-different-between-versions/m-p/916576#M45466</guid>
      <dc:creator>michael_at_work</dc:creator>
      <dc:date>2024-02-16T21:33:54Z</dc:date>
    </item>
  </channel>
</rss>

