<?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: determine the distribution for a sample in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/505868#M26011</link>
    <description>&lt;P&gt;Please post the portion of the SAS log that shows the error.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Oct 2018 09:37:12 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-10-19T09:37:12Z</dc:date>
    <item>
      <title>determine the distribution for a sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/505395#M25992</link>
      <description>&lt;P&gt;I would like to find a distribution that best fit the sample of a variable. the distribution could be normal, gamma, exponential, or log-normal etc. Is there a way to tell SAS to find the distribution and provide the parameters ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 23:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/505395#M25992</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2018-10-17T23:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: determine the distribution for a sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/505418#M25993</link>
      <description>&lt;P&gt;To my knowledge there is no automatic procedure. But you can pit the distributions against each other by fitting them to your data as a mixture with proc FMM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fmm data=sashelp.heart plots=none componentinfo gconv=0;
model cholesterol = / dist=normal      label="Normal";
model cholesterol = / dist=lognormal   label="Lognormal";
model cholesterol = / dist=gamma       label="Gamma";
model cholesterol = / dist=exponential label="Exponential";
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;                      Mixing                    Standard
    Component    Probability    GLogit(Prob)       Error    z Value    Pr &amp;gt; |z|

            1              0        -5.97E13           0        .         .
            2         &lt;FONT color="#ff6600"&gt;0.9897&lt;/FONT&gt;          6.0324      0.4371      13.80      &amp;lt;.0001
            3         0.0079          1.2062      0.4639       2.60      0.0093
            4         0.0024               0
&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Oct 2018 03:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/505418#M25993</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-10-18T03:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: determine the distribution for a sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/505485#M25998</link>
      <description>&lt;P&gt;PROC SEVERITY in SAS/ETS fit many distributions and uses&amp;nbsp;statistical criteria (AIC, BIC, etc) to identify the best fitting distribution. &lt;A href="https://go.documentation.sas.com/?cdcId=etscdc&amp;amp;cdcVersion=14.2&amp;amp;docsetId=etsug&amp;amp;docsetTarget=etsug_severity_gettingstarted01.htm&amp;amp;locale=en" target="_self"&gt;See the Getting Started example in the SEVERITY documentation.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 09:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/505485#M25998</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-10-18T09:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: determine the distribution for a sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/505818#M26010</link>
      <description>&lt;P&gt;Thanks. but I got MEMORY error when I use my data. and also, it does not work with variable with negative value&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 02:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/505818#M26010</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2018-10-19T02:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: determine the distribution for a sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/505868#M26011</link>
      <description>&lt;P&gt;Please post the portion of the SAS log that shows the error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 09:37:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/505868#M26011</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-10-19T09:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: determine the distribution for a sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/505929#M26013</link>
      <description>&lt;P&gt;The simpler, nonmodeling approach is using PROC UNIVARIATE. See &lt;A href="http://support.sas.com/kb/23135" target="_self"&gt;this note&lt;/A&gt; on distribution testing and parameter estimation.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/505929#M26013</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-10-19T14:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: determine the distribution for a sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/508060#M26071</link>
      <description>&lt;P&gt;Error 1:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;355      proc severity data=sample2 crit=aicc;
NOTE: Writing HTML Body file: sashtml.htm
356     loss indicativefee_mean;
357     dist _predefined_;
358  run;

ERROR: Java virtual machine exception. java.lang.OutOfMemoryError: GC overhead limit
       exceeded.
ERROR: Java virtual machine exception. java.lang.OutOfMemoryError: GC overhead limit
       exceeded.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 1972257 observations read from the data set
      WORK._DOCTMP000000000000000000001.
NOTE: PROCEDURE SEVERITY used (Total process time):
      real time           1:26.26
      cpu time            1:02.89&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Error 2:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;360 proc severity data=sample2 crit=aicc;
361 loss lnindicativefee;
362 dist _predefined_;
363 run;

WARNING: For at least one observation, variable lnindicativefee has a negative value.
Ignoring such observations.
WARNING: No valid observations found.
NOTE: PROCEDURE SEVERITY used (Total process time):
real time 0.58 seconds
cpu time 0.51 seconds&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 01:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/508060#M26071</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2018-10-28T01:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: determine the distribution for a sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/508061#M26072</link>
      <description>&lt;P&gt;Does this mean I have to try the parameters to see which one fits best ?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 01:39:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/508061#M26072</guid>
      <dc:creator>somebody</dc:creator>
      <dc:date>2018-10-28T01:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: determine the distribution for a sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/508101#M26073</link>
      <description>&lt;P&gt;I do not know what is causing the Java error, but try using PLOTS=NONE to suppress plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the WARNINGS,&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;WARNING: For at least one observation&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; variable lnindicativefee has a negative &lt;SPAN class="token keyword"&gt;value&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;
Ignoring such observations&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;
WARNING: No valid observations found&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The warning says that all of the&amp;nbsp;observations are invalid for one of the distributions that you are fitting. Instead of using the _PREDEFINED_ keyword,&amp;nbsp;specify the distributions individually (for example,&amp;nbsp; DIST Exponential). That will restrict the procedure to only the distributions of interest. You can also use PRINT=ALL to find out more information about each fit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember that several of these distributions have restrictions on the value of the observations. For example, negative values&amp;nbsp;are invalid for the exponential distribution. Similar restrictions apply for the lognormal and gamma distributions.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 11:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/determine-the-distribution-for-a-sample/m-p/508101#M26073</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-10-28T11:04:04Z</dc:date>
    </item>
  </channel>
</rss>

