<?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: Manually estimate KS statistic in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Manually-estimate-KS-statistic/m-p/811393#M320028</link>
    <description>&lt;P&gt;Maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; could give you a hand.&lt;/P&gt;
&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/05/15/kolmogorov-d-statistic.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2019/05/15/kolmogorov-d-statistic.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/05/20/critical-values-kolmogorov-test.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/05/20/critical-values-kolmogorov-test.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2020/06/24/kolmogorov-d-distribution-exact.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2020/06/24/kolmogorov-d-distribution-exact.html&lt;/A&gt;&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>Wed, 04 May 2022 10:15:00 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-05-04T10:15:00Z</dc:date>
    <item>
      <title>Manually estimate KS statistic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Manually-estimate-KS-statistic/m-p/811371#M320014</link>
      <description>&lt;P&gt;hi i use the&amp;nbsp;proc npar1way with the edf option to produce the KS statistic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My aim is using KS to understand if sample (smp) is different from the population (pop).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i run the proc npar1way i get the below KS :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 192pt;" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD colspan="4" width="255px" height="14px" class="xl71" style="height: 14.4pt; width: 192pt;"&gt;Kolmogorov-Smirnov Two-Sample Test&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD colspan="4" width="255px" height="15px" class="xl73" style="height: 15.0pt; width: 192pt;"&gt;(Asymptotic)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="41.25px" height="15px" class="xl65" style="height: 15.0pt;"&gt;KS&lt;/TD&gt;
&lt;TD width="77.74px" height="15px" class="xl64"&gt;0.066667&lt;/TD&gt;
&lt;TD width="58.27px" height="15px" class="xl63"&gt;D&lt;/TD&gt;
&lt;TD width="77.74px" height="15px" class="xl66"&gt;0.133333&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="41.25px" height="14px" class="xl67" style="height: 14.4pt;"&gt;KSa&lt;/TD&gt;
&lt;TD width="77.74px" height="14px" class="xl68"&gt;0.516398&lt;/TD&gt;
&lt;TD width="58.27px" height="14px" class="xl69"&gt;Pr &amp;gt; KSa&lt;/TD&gt;
&lt;TD width="77.74px" height="14px" class="xl70"&gt;0.9525&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is: is there any easy way to estimate KS manually in SAS in order to understand better the above outcome?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data final;
set smp (obs=30) pop (obs=30);
run;

proc sort data=final;
by application_score;
run;


ods graphics on;
proc npar1way edf plots=edfplot data=final;
class source;
var application_score;
/*exact ks;*/
run;
ods graphics off;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 May 2022 06:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Manually-estimate-KS-statistic/m-p/811371#M320014</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2022-05-04T06:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Manually estimate KS statistic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Manually-estimate-KS-statistic/m-p/811393#M320028</link>
      <description>&lt;P&gt;Maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; could give you a hand.&lt;/P&gt;
&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/05/15/kolmogorov-d-statistic.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2019/05/15/kolmogorov-d-statistic.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/05/20/critical-values-kolmogorov-test.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/05/20/critical-values-kolmogorov-test.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2020/06/24/kolmogorov-d-distribution-exact.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2020/06/24/kolmogorov-d-distribution-exact.html&lt;/A&gt;&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>Wed, 04 May 2022 10:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Manually-estimate-KS-statistic/m-p/811393#M320028</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-04T10:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Manually estimate KS statistic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Manually-estimate-KS-statistic/m-p/811433#M320046</link>
      <description>thanks</description>
      <pubDate>Wed, 04 May 2022 13:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Manually-estimate-KS-statistic/m-p/811433#M320046</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2022-05-04T13:10:27Z</dc:date>
    </item>
  </channel>
</rss>

