<?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: npar1way KS D p-value is not produced in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/npar1way-KS-D-p-value-is-not-produced/m-p/813445#M321052</link>
    <description>thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Mon, 16 May 2022 11:44:01 GMT</pubDate>
    <dc:creator>Toni2</dc:creator>
    <dc:date>2022-05-16T11:44:01Z</dc:date>
    <item>
      <title>npar1way KS D p-value is not produced</title>
      <link>https://communities.sas.com/t5/SAS-Programming/npar1way-KS-D-p-value-is-not-produced/m-p/813430#M321045</link>
      <description>&lt;P&gt;i try to produce KS statistic using npar1way&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc npar1way edf data=final_pop_ks_1 ;
class source;
var FEES;
exact ks;
output out=stat ks;
run;&lt;/PRE&gt;
&lt;P&gt;However, SAS does not stop running (even with a small number of obs). I raised this in another post and i was advised to remove the option EXACT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This resolved the issue however, now the output does not include the p-value for the D statistic of KS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the npar1way &lt;STRONG&gt;&lt;U&gt;without&lt;/U&gt;&lt;/STRONG&gt; the option EXACT&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Output without EXACT option" style="width: 377px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71443iEC2B6F37F70EBD2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WithoutExact.jpg" alt="Output without EXACT option" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Output without EXACT option&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition in the PROC NPAR1WAY user guide i found that EXACT is not produced for KS&amp;nbsp;&lt;A href="https://support.sas.com/documentation/onlinedoc/stat/141/npar1way.pdf" target="_self"&gt;npar1way&lt;/A&gt;&amp;nbsp; - see below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM style="font-family: inherit;"&gt;PROC NPAR1WAY provides exact p-values for tests for location and scale differences based on the following&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;scores: Wilcoxon, median, van der Waerden (normal), Savage, Siegel-Tukey, Ansari-Bradley, Klotz, Mood,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;and Conover. Additionally, PROC NPAR1WAY provides exact p-values for tests that use the raw data as&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;scores. Exact tests are available for two-sample and multisample data. When the data are classified into two&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;samples, tests are based on simple linear rank statistics. When the data are classified into more than two&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;samples, tests are based on one-way ANOVA statistics.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is : i there any way we can produce p-values for the KS - D statistic or workaround ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 10:29:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/npar1way-KS-D-p-value-is-not-produced/m-p/813430#M321045</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2022-05-16T10:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: npar1way KS D p-value is not produced</title>
      <link>https://communities.sas.com/t5/SAS-Programming/npar1way-KS-D-p-value-is-not-produced/m-p/813433#M321048</link>
      <description>&lt;P&gt;Add the D option to the PROC NPAR1WAY statement:&lt;/P&gt;
&lt;P&gt;proc npar1way edf&lt;STRONG&gt; D&lt;/STRONG&gt; data=final_pop_ks_1 ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, exact tests are for small data sets. Looks like you have 3000 observations, which is why the procedure never seems to finish processing the exact test. Add the MC option to the exact statement to get an approximate p-value for the exact test::&lt;/P&gt;
&lt;P&gt;exact ks &lt;STRONG&gt;/ MC&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 11:02:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/npar1way-KS-D-p-value-is-not-produced/m-p/813433#M321048</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-05-16T11:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: npar1way KS D p-value is not produced</title>
      <link>https://communities.sas.com/t5/SAS-Programming/npar1way-KS-D-p-value-is-not-produced/m-p/813445#M321052</link>
      <description>thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 16 May 2022 11:44:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/npar1way-KS-D-p-value-is-not-produced/m-p/813445#M321052</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2022-05-16T11:44:01Z</dc:date>
    </item>
  </channel>
</rss>

