<?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 Calculation of Kolmogorov-Smirnov p-value in NPAR1WAY in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-Kolmogorov-Smirnov-p-value-in-NPAR1WAY/m-p/161800#M8411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exact algorithm is used to calculate the asymptotic K-S p-value given the d-statistic and n (or n1 and n2 for two-sided tests) in NPAR1WAY?&amp;nbsp; The documentation I found shows the theoretical equations, which involve an infinite sum, but my understanding is that in practice approximations are always used (at minimum the infinite sum must be truncated).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is the function that does the calculation available to be called in by users in a data step (as is the case in R and other stat packages)?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 14:42:36 GMT</pubDate>
    <dc:creator>ewolin</dc:creator>
    <dc:date>2014-09-26T14:42:36Z</dc:date>
    <item>
      <title>Calculation of Kolmogorov-Smirnov p-value in NPAR1WAY</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-Kolmogorov-Smirnov-p-value-in-NPAR1WAY/m-p/161800#M8411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exact algorithm is used to calculate the asymptotic K-S p-value given the d-statistic and n (or n1 and n2 for two-sided tests) in NPAR1WAY?&amp;nbsp; The documentation I found shows the theoretical equations, which involve an infinite sum, but my understanding is that in practice approximations are always used (at minimum the infinite sum must be truncated).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is the function that does the calculation available to be called in by users in a data step (as is the case in R and other stat packages)?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:42:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-Kolmogorov-Smirnov-p-value-in-NPAR1WAY/m-p/161800#M8411</guid>
      <dc:creator>ewolin</dc:creator>
      <dc:date>2014-09-26T14:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of Kolmogorov-Smirnov p-value in NPAR1WAY</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-Kolmogorov-Smirnov-p-value-in-NPAR1WAY/m-p/161801#M8412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you come across some incorrect p-values with proc NPAR1WAY?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 17:05:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-Kolmogorov-Smirnov-p-value-in-NPAR1WAY/m-p/161801#M8412</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-09-26T17:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of Kolmogorov-Smirnov p-value in NPAR1WAY</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-Kolmogorov-Smirnov-p-value-in-NPAR1WAY/m-p/161802#M8413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within the scope of what NPAR1WAY addresses, no problems, but NPAR1WAY does NOT work on weighted data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to fool it by using FREQ as the weight and recalculating the p-value from _d_, n1 and n2 using a function I wrote myself.&amp;nbsp; To my surprise, for unweighted data my calculation and the one by NPAR1WAY agree to 8 significant digits!&amp;nbsp; I suspect I implemented the very same algorithm for the calculation that NPAR1WAY uses, which is why I'm wondering...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 17:17:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-Kolmogorov-Smirnov-p-value-in-NPAR1WAY/m-p/161802#M8413</guid>
      <dc:creator>ewolin</dc:creator>
      <dc:date>2014-09-26T17:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of Kolmogorov-Smirnov p-value in NPAR1WAY</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-Kolmogorov-Smirnov-p-value-in-NPAR1WAY/m-p/782109#M38422</link>
      <description>&lt;P&gt;Could you post your function? I have the same issue you had, and cannot find anything for SAS to allow getting appropriate p-values for weighted data if you, say, multiply the weights by a constant so that the truncation of frequencies in the FREQ does not affect things much. Also, what are n1 and n2 in your function? The sum of the weights in a given class? The number of observations in a given class? Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 03:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculation-of-Kolmogorov-Smirnov-p-value-in-NPAR1WAY/m-p/782109#M38422</guid>
      <dc:creator>marksc</dc:creator>
      <dc:date>2021-11-24T03:06:08Z</dc:date>
    </item>
  </channel>
</rss>

