<?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: How to perform Kolmogorov-Smirnov Test with Weiubll Distribution in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823271#M325069</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;Thank you for your answer!&lt;BR /&gt;Actually, I didn't very understand about these statistic distribution methods.&lt;BR /&gt;So I don't know it can't apply on it.&lt;BR /&gt;The reason why I want to use KS is that I want to compare different distribution plots.&lt;BR /&gt;&lt;BR /&gt;However, how about Chi-square Test?&lt;BR /&gt;I tried the same data with following programming:&lt;BR /&gt;proc freq data=a;&lt;BR /&gt;tables WD / chisq;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;The result of this programming is zero. And it also can't apply on assigned distribution method.&lt;BR /&gt;&lt;BR /&gt;I also tried these:&lt;BR /&gt;proc capability data=a;&lt;BR /&gt;var WD;&lt;BR /&gt;histogram / weibull;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc capabiblity data=a;&lt;BR /&gt;var WD;&lt;BR /&gt;histogram / gumbel;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;There was a result of Chi-square, but the value of it was unreasonable.&lt;BR /&gt;The better distribution plot with a larger Chi-square, the worse distribution plot with a smaller Chi-square&lt;BR /&gt;.&lt;BR /&gt;</description>
    <pubDate>Thu, 14 Jul 2022 10:30:14 GMT</pubDate>
    <dc:creator>Monica_1134</dc:creator>
    <dc:date>2022-07-14T10:30:14Z</dc:date>
    <item>
      <title>How to perform Kolmogorov-Smirnov Test with Weiubll Distribution in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823264#M325063</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I import a excel file in SAS.&lt;/P&gt;&lt;P&gt;The data I need to analyze is called "WD"&lt;/P&gt;&lt;P&gt;I can succeed to perform Weibull distribution for WD.&lt;/P&gt;&lt;P&gt;But I can't find Kolmogorov-Smirnov value on result page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I work with Normal and Gumbel Distribution, there is a KS value automatic show on result page.&lt;/P&gt;&lt;P&gt;But if I work with Weibull distribution, there isn't any KS result.&lt;/P&gt;&lt;P&gt;Does anyone know how can I perform this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My programming is:&lt;/P&gt;&lt;P&gt;proc univariate data=a;&lt;BR /&gt;histogram WD / weibull;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I also tried this:&lt;/P&gt;&lt;P&gt;proc univariate data=a;&lt;BR /&gt;histogram WD / weibull (mu=est sigma=est);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both of above programming cannot result KS value.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 09:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823264#M325063</guid>
      <dc:creator>Monica_1134</dc:creator>
      <dc:date>2022-07-14T09:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Kolmogorov-Smirnov Test with Weiubll Distribution in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823267#M325066</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Kolmogorov-Smirnov (KS) goodness-of-fit for the Weibull distribution is NOT given by PROC UNIVARIATE.&lt;BR /&gt;Only&amp;nbsp;&lt;SPAN&gt;Cramer-von Mises and Anderson-Darling.&lt;BR /&gt;&lt;BR /&gt;The same is true for SAS/QC PROC CAPABILITY (which can also be used to fit&amp;nbsp;Weibull distribution to observed data).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Maybe you can try SAS/ETS PROC SEVERITY (??).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Why do you absolutely want KS-test?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 10:09:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823267#M325066</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-07-14T10:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Kolmogorov-Smirnov Test with Weiubll Distribution in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823268#M325067</link>
      <description>&lt;P&gt;Use the inset statement, like :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  inset weibull(shape scale theta ksd ksdpval ad adpval cvm cvmpval)/pos=ne
      header="ABC XYZ";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;TABLE class="aa-tabular"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;KSD&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Kolmogorov-Smirnov EDF test statistic&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;KSDPVAL&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Kolmogorov-Smirnov EDF test&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=" aa-mathtext"&gt;p&lt;/SPAN&gt;-value&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See :&lt;BR /&gt;SAS® 9.4 and SAS® Viya® 3.5 Programming Documentation | SAS 9.4 / Viya 3.5&lt;BR /&gt;Base SAS Procedures Guide: Statistical Procedures&lt;BR /&gt;The UNIVARIATE Procedure&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_univariate_syntax15.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_univariate_syntax15.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 10:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823268#M325067</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-07-14T10:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Kolmogorov-Smirnov Test with Weiubll Distribution in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823271#M325069</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Thank you for your answer!&lt;BR /&gt;Actually, I didn't very understand about these statistic distribution methods.&lt;BR /&gt;So I don't know it can't apply on it.&lt;BR /&gt;The reason why I want to use KS is that I want to compare different distribution plots.&lt;BR /&gt;&lt;BR /&gt;However, how about Chi-square Test?&lt;BR /&gt;I tried the same data with following programming:&lt;BR /&gt;proc freq data=a;&lt;BR /&gt;tables WD / chisq;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;The result of this programming is zero. And it also can't apply on assigned distribution method.&lt;BR /&gt;&lt;BR /&gt;I also tried these:&lt;BR /&gt;proc capability data=a;&lt;BR /&gt;var WD;&lt;BR /&gt;histogram / weibull;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc capabiblity data=a;&lt;BR /&gt;var WD;&lt;BR /&gt;histogram / gumbel;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;There was a result of Chi-square, but the value of it was unreasonable.&lt;BR /&gt;The better distribution plot with a larger Chi-square, the worse distribution plot with a smaller Chi-square&lt;BR /&gt;.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2022 10:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823271#M325069</guid>
      <dc:creator>Monica_1134</dc:creator>
      <dc:date>2022-07-14T10:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Kolmogorov-Smirnov Test with Weiubll Distribution in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823272#M325070</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would not use Chi-Square Goodness of Fit Test for Weibull ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as the outcome depends on how the continuous values were binned (the midpoints of the histogram bars).&lt;/P&gt;
&lt;P&gt;I always use&amp;nbsp;Anderson–Darling test as it is always available !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 10:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823272#M325070</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-07-14T10:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Kolmogorov-Smirnov Test with Weiubll Distribution in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823280#M325072</link>
      <description>&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 12:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823280#M325072</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-07-14T12:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Kolmogorov-Smirnov Test with Weiubll Distribution in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823289#M325077</link>
      <description>&lt;P&gt;As with all statistical tests, you need to know the null distribution of the test statistic in order to provide p-values. &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_univariate_details53.htm" target="_self"&gt;The UNIVARIATE documentation&lt;/A&gt; states that the procedure uses results from&amp;nbsp;D’Agostino and Stephens (1986) to estimate the p-values for various combinations of known/unknown parameters. See the table "Availability of EDF Tests" in the doc.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;You should use the THETA=, C=, and SIGMA= options to specify the threshold parameter (theta), the shape parameter (c), and the scale parameter (sigma). By default, THETA=0, which means that the default behavior is [theta known, C unknown, Sigma unknown], which is probably why you aren't getting a KS statistic.&amp;nbsp; &lt;STRONG&gt;Try using THETA=EST to get an MLE estimate.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 13:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-Kolmogorov-Smirnov-Test-with-Weiubll-Distribution/m-p/823289#M325077</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-07-14T13:15:18Z</dc:date>
    </item>
  </channel>
</rss>

