<?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: Identifying the distribution of the data - Quantitative in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853927#M337514</link>
    <description>&lt;P&gt;Use PROC UNIVARIATE to create Q-Q plots. &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/procstat/procstat_univariate_syntax30.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/procstat/procstat_univariate_syntax30.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can use P-P plots, or Probability Plots, also in PROC UNIVARIATE.&lt;/P&gt;</description>
    <pubDate>Sun, 15 Jan 2023 16:17:10 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-01-15T16:17:10Z</dc:date>
    <item>
      <title>Identifying the distribution of the data - Quantitative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853924#M337511</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please I need to determine&amp;nbsp;&lt;SPAN&gt;the distribution fitting for a quantitative variable (normal, lognormal, uniform, weibull, triangular, etc, ...) and required parameters to define it .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;Is there any procedure that can combine all &lt;/FONT&gt;distributions&lt;FONT face="inherit"&gt;&amp;nbsp;together to test?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 15:37:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853924#M337511</guid>
      <dc:creator>HS2</dc:creator>
      <dc:date>2023-01-15T15:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the distribution of the data - Quantitative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853927#M337514</link>
      <description>&lt;P&gt;Use PROC UNIVARIATE to create Q-Q plots. &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/procstat/procstat_univariate_syntax30.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/procstat/procstat_univariate_syntax30.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can use P-P plots, or Probability Plots, also in PROC UNIVARIATE.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 16:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853927#M337514</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-15T16:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the distribution of the data - Quantitative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853964#M337528</link>
      <description>&lt;P&gt;Thank youu!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the proc freq do the same job for qualitative variable distribution, or there are any other procedures to consider?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 10:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853964#M337528</guid>
      <dc:creator>HS2</dc:creator>
      <dc:date>2023-01-16T10:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the distribution of the data - Quantitative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853968#M337531</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/244786"&gt;@HS2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the proc freq do the same job for qualitative variable distribution, or there are any other procedures to consider?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, PROC FREQ will compute the distribution, and provides a Chi-Squared test to see if the proportions at each level are equal; it can also test to see if the proportions at each level are equal to a specified value. &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/procstat/procstat_freq_details08.htm#procstat.freq.freqchisq1" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/procstat/procstat_freq_details08.htm#procstat.freq.freqchisq1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 11:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853968#M337531</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-16T11:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the distribution of the data - Quantitative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853971#M337533</link>
      <description>&lt;P&gt;It sounds like you want to do what some people call the "shotgun method," which is to fit a bunch of standard distributions and have the software tell you how well each model fits. You can do this by using PROC SEVERITY in SAS/ETS software.&amp;nbsp; The &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/etsug/etsug_severity_gettingstarted01.htm" target="_self"&gt;Getting Started example&lt;/A&gt; in the doc shows how to carry out the analysis by using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DIST _PREDEFINED_;&amp;nbsp; /* test 10 predefined distributions */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 11:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853971#M337533</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-01-16T11:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the distribution of the data - Quantitative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853972#M337534</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Or try PROC GENMOD
There are AIC , BIC which you can compare 
with which distribution is more fitted data.
*/
proc genmod data=sashelp.heart;
model weight= /dist=normal;
run;
proc genmod data=sashelp.heart;
model weight= /dist=GAMMA;
run;
proc genmod data=sashelp.heart;
model weight= /dist=TWEEDIE;
run;
proc genmod data=sashelp.heart;
model weight= /dist=POISSON;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Jan 2023 11:58:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853972#M337534</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-01-16T11:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the distribution of the data - Quantitative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853976#M337535</link>
      <description>&lt;P&gt;Usage Note 48914: Testing the fit of a discrete distribution&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/48/914.html" target="_blank"&gt;https://support.sas.com/kb/48/914.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usage Note 23135: Testing fit of continuous and discrete distributions to observed data&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/23/135.html" target="_blank"&gt;https://support.sas.com/kb/23/135.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Base SAS Procedures Guide: Statistical Procedures&lt;BR /&gt;The UNIVARIATE Procedure&lt;BR /&gt;Goodness-of-Fit Tests&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_univariate_details53.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_univariate_details53.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some distributions are not offered in the SAS procedures.&lt;BR /&gt;You can always use PROC OPTMODEL (SAS Optimization) to find its parameters.&lt;BR /&gt;You need to specify the formula for the distribution and its log-likelihood function (to find the maximum likelihood estimates of the parameters given a sample of observed data points).&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 12:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/853976#M337535</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-01-16T12:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the distribution of the data - Quantitative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/854022#M337548</link>
      <description>&lt;P&gt;For distributions that are not supported in SAS, I recommend using PROC NLMIXED for maximum loglikelihood estimation. An advantage of PROC NLMIXED is that it provides estimates of standard errors, confidence intervals, and p-values for hypothesis tests of the form Param=0. For an example and discussion, see&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/06/14/maximum-likelihood-estimates-in-sas.html" target="_blank"&gt;Two ways to compute maximum likelihood estimates in SAS - The DO Loop&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 19:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/854022#M337548</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-01-16T19:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the distribution of the data - Quantitative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/859357#M339538</link>
      <description>&lt;P&gt;Hello, Yes, this is exactly what I wanted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked, thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 12:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/859357#M339538</guid>
      <dc:creator>HS2</dc:creator>
      <dc:date>2023-02-17T12:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the distribution of the data - Quantitative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/859404#M339546</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/244786"&gt;@HS2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank youu!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the proc freq do the same job for qualitative variable distribution, or there are any other procedures to consider?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If your qualitative data is character you may need to clean up spellings or build custom formats to standardize the values used by Proc Freq. The values "ABC" "Abc" "AbC" "aBC" &amp;lt;exhaust spelling case to continue&amp;gt; would each be a different level of the variable in Proc Freq.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to provide an example of one project I worked on. We were conducting a survey involving business names. We provided a list of likely answers and what should be entered in the responses by our data collection team. Result: 18 spellings for "IBM". My favorite was "I&amp;gt;B&amp;gt;M&amp;gt;" .&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 16:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-the-distribution-of-the-data-Quantitative/m-p/859404#M339546</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-02-17T16:04:43Z</dc:date>
    </item>
  </channel>
</rss>

