<?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: Formula for Gamma and Lognormal distributions in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Formula-for-Gamma-and-Lognormal-distributions/m-p/539416#M27086</link>
    <description>&lt;P&gt;I think that you may want to investigate the various distribution functions such as SDF,&amp;nbsp;PDF, CDF or LOG versions of those. The allow providing the distribution name and parameters to get values from the distribution.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 18:03:44 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-02-28T18:03:44Z</dc:date>
    <item>
      <title>Formula for Gamma and Lognormal distributions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Formula-for-Gamma-and-Lognormal-distributions/m-p/538881#M27075</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm trying to use parameters derived from survival curve data using LIFEREG (ie intercept and scale) to calculate&amp;nbsp;extrapolated datasets using the various distributions described in Chapter 36 (the LIFEREG procedure).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have managed the exponential and Weibull calculations. Code for exponential distribution is below.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data exp;
	DO i=0 to 60 by 1; /*5year time frame by month*/
		t=i;
		s=exp((-exp(-3.9755))*t); /*generate intercept and scale using LIFEREG, input here*/
		dist=6;
		output;
	end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The formulae provided in the SAS documentation for the Gamma and Lognormal distributions (see Supported Distributions section)&amp;nbsp;include symbols that I don't know how to write into the SAS code.&amp;nbsp; Is anyone able to provide the code for these 2 distributions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to complete a Gompertz extrapolation also.&amp;nbsp; Is that distribution supported by SAS?&amp;nbsp; It doesn't&amp;nbsp;seem to be included in the LIFEREG documentation but&amp;nbsp;worth asking just in case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks, Kylie&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 04:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Formula-for-Gamma-and-Lognormal-distributions/m-p/538881#M27075</guid>
      <dc:creator>gilsonk</dc:creator>
      <dc:date>2019-02-27T04:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Formula for Gamma and Lognormal distributions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Formula-for-Gamma-and-Lognormal-distributions/m-p/539416#M27086</link>
      <description>&lt;P&gt;I think that you may want to investigate the various distribution functions such as SDF,&amp;nbsp;PDF, CDF or LOG versions of those. The allow providing the distribution name and parameters to get values from the distribution.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 18:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Formula-for-Gamma-and-Lognormal-distributions/m-p/539416#M27086</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-28T18:03:44Z</dc:date>
    </item>
  </channel>
</rss>

