<?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 One-sided Kolmogorov Smirnov test (PROC NPAR1WAY) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Kolmogorov-Smirnov-test-PROC-NPAR1WAY/m-p/674370#M32279</link>
    <description>&lt;P&gt;I would like to compute one sided kolmogorov-smirnov test using the PROC NPAR1WAY procedure.&lt;/P&gt;&lt;P&gt;Specifically i want to test 2 distributions of real vs. estimated values, but i am not able to distinguish what distribution corresponds to F1 and which corresponds to F2 and i don't understand which criteria SAS uses to determine which values are F1 and F2.&lt;/P&gt;&lt;P&gt;The output is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2020 14:32:29 GMT</pubDate>
    <dc:creator>alexfx</dc:creator>
    <dc:date>2020-08-04T14:32:29Z</dc:date>
    <item>
      <title>One-sided Kolmogorov Smirnov test (PROC NPAR1WAY)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Kolmogorov-Smirnov-test-PROC-NPAR1WAY/m-p/674370#M32279</link>
      <description>&lt;P&gt;I would like to compute one sided kolmogorov-smirnov test using the PROC NPAR1WAY procedure.&lt;/P&gt;&lt;P&gt;Specifically i want to test 2 distributions of real vs. estimated values, but i am not able to distinguish what distribution corresponds to F1 and which corresponds to F2 and i don't understand which criteria SAS uses to determine which values are F1 and F2.&lt;/P&gt;&lt;P&gt;The output is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 14:32:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Kolmogorov-Smirnov-test-PROC-NPAR1WAY/m-p/674370#M32279</guid>
      <dc:creator>alexfx</dc:creator>
      <dc:date>2020-08-04T14:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: One-sided Kolmogorov Smirnov test (PROC NPAR1WAY)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Kolmogorov-Smirnov-test-PROC-NPAR1WAY/m-p/674375#M32280</link>
      <description>&lt;P&gt;Please show the code you are using. Best is to post code into a code box opened with either the &amp;lt;/&amp;gt; or "running man" icons to preserve formatting. The code is sort of important to know which options were used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know what you did to make that docx document to attach but it is ugly. You might consider creating an ODS document from SAS instead if you did some form of copy and paste. The result you show is actually sort of hard to read because the columns do not align.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 14:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Kolmogorov-Smirnov-test-PROC-NPAR1WAY/m-p/674375#M32280</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-04T14:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: One-sided Kolmogorov Smirnov test (PROC NPAR1WAY)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Kolmogorov-Smirnov-test-PROC-NPAR1WAY/m-p/674392#M32281</link>
      <description>&lt;P&gt;The PROC NPAR1WAY doc has &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_npar1way_examples02.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;an example similar to what you describe&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Using &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_npar1way_details24.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;the EDF option triggers the empirical distribution function tests&lt;/A&gt;, which includes the K-S test.&lt;/P&gt;
&lt;P&gt;F1 is the distribution of the first class level; F2 is the distribution of the second class level. The first level is shown on the first row of the table of K-S statistics; the second level is on the second row.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 15:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Kolmogorov-Smirnov-test-PROC-NPAR1WAY/m-p/674392#M32281</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-08-04T15:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: One-sided Kolmogorov Smirnov test (PROC NPAR1WAY)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Kolmogorov-Smirnov-test-PROC-NPAR1WAY/m-p/674394#M32283</link>
      <description>&lt;PRE&gt;ods graphics on;
proc npar1way edf plots=edfplot D data= T1_emp.T1_empresas_gov_teste1;
class chave;
var vol;
OUTPUT OUT= result_teste_gov1;
run;
ods graphics off; &lt;/PRE&gt;&lt;P&gt;This is the code that i am using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the results are:&lt;/P&gt;&lt;PRE&gt;Kolmogorov-Smirnov Two-Sample
Test (Asymptotic)
D = max |F1 - F2|	1.0000
Pr &amp;gt; D	&amp;lt;.0001
 	 
D+ = max (F1 - F2)	1.0000
Pr &amp;gt; D+	&amp;lt;.0001
 	 
D- = max (F2 - F1)	0.0000
Pr &amp;gt; D-	1.0000

Cramer-von Mises Test for Variable vol
Classified by Variable chave
chave	        N	     Summed Deviation
                                     from Mean
Estimado	        10	     0.83750
Observado	10	     0.83750

Cramer-von Mises Statistics
(Asymptotic)
CM	0.083750	       CMa	1.675000

Kuiper Test for Variable vol
Classified by Variable chave
chave	         N	Deviation
                                from Mean
Estimated	10	1.0
Observed 	10	0.0

Kuiper Two-Sample Test (Asymptotic)
K	1.000000	    Ka	2.236068	Pr &amp;gt; Ka	0.0017
 &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 15:25:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/One-sided-Kolmogorov-Smirnov-test-PROC-NPAR1WAY/m-p/674394#M32283</guid>
      <dc:creator>alexfx</dc:creator>
      <dc:date>2020-08-04T15:25:31Z</dc:date>
    </item>
  </channel>
</rss>

