<?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: &amp;quot;None of the EDF goodness-of-fit statistics for the Gamma distribution are available.&amp;quot; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/quot-None-of-the-EDF-goodness-of-fit-statistics-for-the-Gamma/m-p/386651#M92648</link>
    <description>&lt;P&gt;Yes, most likely your data is causing the issue. &lt;A href="http://support.sas.com/documentation/cdl/en/procstat/68142/HTML/default/viewer.htm#procstat_univariate_details52.htm" target="_self"&gt;The table "Availability of EDF Tests" in the UNIVARIATE documentation&lt;/A&gt;&amp;nbsp;shows the situations for which the EDF tests are available. In your example, theta=0 (known) and the shape and scale parameters are unknown. The table shows that EDF tests are only available when the estimate for the shape parameter is greater than 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am going to guess that your shape estimate (alpha) is less than 1.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 14:21:38 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-08-09T14:21:38Z</dc:date>
    <item>
      <title>"None of the EDF goodness-of-fit statistics for the Gamma distribution are available." note.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-None-of-the-EDF-goodness-of-fit-statistics-for-the-Gamma/m-p/386451#M92555</link>
      <description>&lt;P&gt;I am trying to fit a set of observed values into Gamma distribution, using UNIVARIATE:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate data=calls;
	var iat;
	histogram  / gamma;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but getting no goodness-of-fit tests, just the note in the subject. Other outputs (basic measures, fitted gamma parameters, quantiles) are produced.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I try th example code from here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_univariate_sect077.htm" target="_self"&gt;http://support.sas.com/documentation...&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Plates;
   label Gap = 'Plate Gap in cm';
   input Gap @@;
   datalines;
0.746  0.357  0.376  0.327  0.485 1.741  0.241  0.777  0.768  0.409
0.252  0.512  0.534  1.656  0.742 0.378  0.714  1.121  0.597  0.231
0.541  0.805  0.682  0.418  0.506 0.501  0.247  0.922  0.880  0.344
0.519  1.302  0.275  0.601  0.388 0.450  0.845  0.319  0.486  0.529
1.547  0.690  0.676  0.314  0.736 0.643  0.483  0.352  0.636  1.080
;
run;

ods select ParameterEstimates GoodnessOfFit FitQuantiles MyHist;
proc univariate data=Plates;
   var Gap;
   histogram / midpoints=0.2 to 1.8 by 0.2
               lognormal
               weibull
               gamma
               vaxis   = axis1
               name    = 'MyHist';
   inset n mean(5.3) std='Std Dev'(5.3) skewness(5.3)
          / pos = ne  header = 'Summary Statistics';
   axis1 label=(a=90 r=0);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it works - all three GOF metrics (KS, Cramer, Anderson-Darling) are produced.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, is it something in my data that does not allow to compute these metrics?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 00:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-None-of-the-EDF-goodness-of-fit-statistics-for-the-Gamma/m-p/386451#M92555</guid>
      <dc:creator>Dmitry</dc:creator>
      <dc:date>2017-08-09T00:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: "None of the EDF goodness-of-fit statistics for the Gamma distribution are available."</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-None-of-the-EDF-goodness-of-fit-statistics-for-the-Gamma/m-p/386606#M92626</link>
      <description>&lt;P&gt;Maybe your variable iat have some negative value which could not be gamma distribution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or try PROC GENMOD .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Plates;
   label Gap = 'Plate Gap in cm';
   input Gap @@;
   datalines;
0.746  0.357  0.376  0.327  0.485 1.741  0.241  0.777  0.768  0.409
0.252  0.512  0.534  1.656  0.742 0.378  0.714  1.121  0.597  0.231
0.541  0.805  0.682  0.418  0.506 0.501  0.247  0.922  0.880  0.344
0.519  1.302  0.275  0.601  0.388 0.450  0.845  0.319  0.486  0.529
1.547  0.690  0.676  0.314  0.736 0.643  0.483  0.352  0.636  1.080
;
run;

proc genmod data=Plates;
   model Gap= /dist=gamma;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Aug 2017 13:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-None-of-the-EDF-goodness-of-fit-statistics-for-the-Gamma/m-p/386606#M92626</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-08-09T13:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: "None of the EDF goodness-of-fit statistics for the Gamma distribution are available."</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-None-of-the-EDF-goodness-of-fit-statistics-for-the-Gamma/m-p/386651#M92648</link>
      <description>&lt;P&gt;Yes, most likely your data is causing the issue. &lt;A href="http://support.sas.com/documentation/cdl/en/procstat/68142/HTML/default/viewer.htm#procstat_univariate_details52.htm" target="_self"&gt;The table "Availability of EDF Tests" in the UNIVARIATE documentation&lt;/A&gt;&amp;nbsp;shows the situations for which the EDF tests are available. In your example, theta=0 (known) and the shape and scale parameters are unknown. The table shows that EDF tests are only available when the estimate for the shape parameter is greater than 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am going to guess that your shape estimate (alpha) is less than 1.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 14:21:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-None-of-the-EDF-goodness-of-fit-statistics-for-the-Gamma/m-p/386651#M92648</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-08-09T14:21:38Z</dc:date>
    </item>
  </channel>
</rss>

