<?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 TINV  Function in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/TINV-Function/m-p/438368#M23126</link>
    <description>&lt;P&gt;I am planning to convert an excel code into SAS&lt;/P&gt;&lt;P&gt;ter is a function called TINV used in Excel,&amp;nbsp; same function is also in&amp;nbsp;SAS too with same syntax, but i am getting two different results&amp;nbsp;for the&amp;nbsp; same&amp;nbsp; numbers, please help me if both are different functions are the Same.&lt;/P&gt;&lt;P&gt;SAS&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TINV(0.95,2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.9199855804&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Excel&lt;/P&gt;&lt;P&gt;TINV(0.95,2)&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;0.070799&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2018 11:02:22 GMT</pubDate>
    <dc:creator>Bindu_Borde</dc:creator>
    <dc:date>2018-02-19T11:02:22Z</dc:date>
    <item>
      <title>TINV  Function</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TINV-Function/m-p/438368#M23126</link>
      <description>&lt;P&gt;I am planning to convert an excel code into SAS&lt;/P&gt;&lt;P&gt;ter is a function called TINV used in Excel,&amp;nbsp; same function is also in&amp;nbsp;SAS too with same syntax, but i am getting two different results&amp;nbsp;for the&amp;nbsp; same&amp;nbsp; numbers, please help me if both are different functions are the Same.&lt;/P&gt;&lt;P&gt;SAS&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TINV(0.95,2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.9199855804&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Excel&lt;/P&gt;&lt;P&gt;TINV(0.95,2)&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;0.070799&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 11:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TINV-Function/m-p/438368#M23126</guid>
      <dc:creator>Bindu_Borde</dc:creator>
      <dc:date>2018-02-19T11:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: TINV  Function</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TINV-Function/m-p/438371#M23127</link>
      <description>&lt;P&gt;There is no way to accurately answer this question.&amp;nbsp; SAS and Excel are different software, produced by different companies for different purposes uses different formula.&amp;nbsp; A simple search on the Excel function reveals some interesting information:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/vba/excel-vba/articles/worksheetfunction-tinv-method-excel" target="_blank"&gt;https://msdn.microsoft.com/en-us/vba/excel-vba/articles/worksheetfunction-tinv-method-excel&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Read the Important part.&amp;nbsp; Seems like that is an old function that is outdated.&amp;nbsp; Personally given the choice I would always trust the SAS functions, as we pay a lot of money in licensing for them to ensure that the software is validated.&amp;nbsp; Excel is not.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I don't know these functions at all, never used them, but looking at the text present,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Excel TINV =&amp;nbsp;&lt;SPAN&gt;Returns the t-value of the Student's t-distribution as a function of the probability and the degrees of freedom.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SAS TINV =&amp;nbsp;&lt;STRONG&gt;Returns a quantile from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;t&lt;/I&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;distribution&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sounds to me like two very different functions.&amp;nbsp; I would start by getting the owner of that data to explain what is actually needed.&amp;nbsp; From that you can draw up a Functional Design Specification - this is so the code is properly documented, and you don't have to go through this paper trail hunt in the future.&amp;nbsp; With that specification, coding should be very simple.&amp;nbsp; As with any programming task - documentation is 99% of the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 11:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TINV-Function/m-p/438371#M23127</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-19T11:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: TINV  Function</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TINV-Function/m-p/438643#M23132</link>
      <description>&lt;P&gt;You can find documentation for the Excel TINV function&amp;nbsp;&lt;A href="https://support.microsoft.com/en-us/help/828340/excel-statistical-functions-tinv" target="_self"&gt;here.&lt;/A&gt;&amp;nbsp; The important part of the documentation is the line "&amp;nbsp;&lt;SPAN&gt;TINV(p, df) is the inverse function for TDIST(x, df, 2).&amp;nbsp;", which tells us that TINV in Excel is returning the quantile from a 2-tail t.&amp;nbsp; The TINV function, or the more modern QUANTILE function in SAS, returns 1-tail results.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let's look at an example.&amp;nbsp; Put =TINV(.05,12) into a cell in your Excel spreadsheet.&amp;nbsp; That calculation returns the value 2.178813.&amp;nbsp; What does that value represent?&amp;nbsp; In Excel, the value returned is associated with the probability of observing a t-statistic greater than 2.178813 or less than -2.178813. That calculation takes the p-value provided (.05) and puts half of that (.025) in each tail.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In SAS, the TINV or QUANTILE function returns a 1-tail result.&amp;nbsp; The quantile, q, returned from the QUANTILE('t',.05,12) function in SAS satisfies p(t&amp;lt;q)=.05.&amp;nbsp; If you use QUANTILE('t',.05,12) then SAS returns -1.782287556.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to match the result from the TINV function in Excel, then take 1-half the p-value used as the argument to the QUANTILE function in SAS.&amp;nbsp; Using QUANTILE('t',.025,12) will return -2.178813.&amp;nbsp; QUANTILE returns the left-tailed quantile, while Excel's TINV returns the right-tailed quantile, which explains the difference in sign.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 14:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TINV-Function/m-p/438643#M23132</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2018-02-20T14:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: TINV  Function</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/TINV-Function/m-p/748247#M36398</link>
      <description>Phenomenal explanation and example! Thank you!</description>
      <pubDate>Wed, 16 Jun 2021 03:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/TINV-Function/m-p/748247#M36398</guid>
      <dc:creator>MelissaM</dc:creator>
      <dc:date>2021-06-16T03:41:37Z</dc:date>
    </item>
  </channel>
</rss>

