<?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 how to produce the estimated quantile of the sampling distribution of Kolmogorov Smirnov statistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-produce-the-estimated-quantile-of-the-sampling/m-p/328975#M17357</link>
    <description>&lt;P&gt;I have to write a SAS macro in terms of the Kolmogorov Smirnov statistic. I spent a lot of time to do it but haven't finished so who can help me please? The question is:&lt;/P&gt;&lt;P&gt;Write a SAS macro which has 3 parameters: m for the number of simulation iterations, n for the sample size, and&amp;nbsp;@ for the upper tail probability. given values of the 3 parameters, it returns a simulation-based estimate of the (1-@) quantile of the sampling distribution of the Kolmogorov-Smirnov statistic for data from the standard normal distribution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;%D(m=500, n=5,&amp;nbsp;@=0.10);&lt;/P&gt;&lt;P&gt;%D(m=1000, n=10,&amp;nbsp;@=0.05);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2017 04:26:33 GMT</pubDate>
    <dc:creator>maivu</dc:creator>
    <dc:date>2017-02-01T04:26:33Z</dc:date>
    <item>
      <title>how to produce the estimated quantile of the sampling distribution of Kolmogorov Smirnov statistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-produce-the-estimated-quantile-of-the-sampling/m-p/328975#M17357</link>
      <description>&lt;P&gt;I have to write a SAS macro in terms of the Kolmogorov Smirnov statistic. I spent a lot of time to do it but haven't finished so who can help me please? The question is:&lt;/P&gt;&lt;P&gt;Write a SAS macro which has 3 parameters: m for the number of simulation iterations, n for the sample size, and&amp;nbsp;@ for the upper tail probability. given values of the 3 parameters, it returns a simulation-based estimate of the (1-@) quantile of the sampling distribution of the Kolmogorov-Smirnov statistic for data from the standard normal distribution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;%D(m=500, n=5,&amp;nbsp;@=0.10);&lt;/P&gt;&lt;P&gt;%D(m=1000, n=10,&amp;nbsp;@=0.05);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 04:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-produce-the-estimated-quantile-of-the-sampling/m-p/328975#M17357</guid>
      <dc:creator>maivu</dc:creator>
      <dc:date>2017-02-01T04:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to produce the estimated quantile of the sampling distribution of Kolmogorov Smirnov statist</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-produce-the-estimated-quantile-of-the-sampling/m-p/328983#M17359</link>
      <description>&lt;P&gt;Post what you've tried. And this is clearly homework.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 06:32:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-produce-the-estimated-quantile-of-the-sampling/m-p/328983#M17359</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-01T06:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to produce the estimated quantile of the sampling distribution of Kolmogorov Smirnov statist</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-produce-the-estimated-quantile-of-the-sampling/m-p/329183#M17384</link>
      <description>&lt;P&gt;I suggest you begin with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%let m=500;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%let n=5;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%let alpha=0.10;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;then write a DATA step that generates m samples, each of size n.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Run PROC UNIVARIATE with BY-group processing on the Sample ID variable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then analyze the empirical frequency of the indicator variable ( KS &amp;gt; alpha ).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For hints and similar Monte Carlo estimates, see&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2013/05/30/simulation-power.html" target="_self"&gt;"Using simulation to estimate the power of a statistical test"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;which uses PROC TTEST (on two independent samples) instead of the KS (on one sample).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After everything is debugged and working, it is trivial to wrap the code into a macro.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 19:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-produce-the-estimated-quantile-of-the-sampling/m-p/329183#M17384</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-02-01T19:12:50Z</dc:date>
    </item>
  </channel>
</rss>

