<?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 incorporate shape, scale and location parameters using RAND(&amp;quot;LOGNORMAL&amp;quot;) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271118#M14271</link>
    <description>&lt;P&gt;Yes I will, thank you! I didn't think about using the pdf function.&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2016 21:19:55 GMT</pubDate>
    <dc:creator>jonesk48</dc:creator>
    <dc:date>2016-05-17T21:19:55Z</dc:date>
    <item>
      <title>How to incorporate shape, scale and location parameters using RAND("LOGNORMAL")</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271108#M14268</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am starting to do more simulations and have a general question regarding simulating a lognormal distribution. &amp;nbsp;I have existing data that looks like the following (I've fitted a lognormal curve to the data). I would like to simulate more data using the MLE estimated shape, scale and location parameters for the exisiting data. &amp;nbsp;I noticed the RAND function does not support location, shape or scale for the lognormal distribution. How can I incorporate these parameters so that I can simulate data to look like my original data? I thought I could do Y = location parameter + scale parameter*X, where X =RAND("LOGNORMAL"). Am I on the right track here? Any help appreciated!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3211i5D606A2FEB947B4B/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Histogram56.png" title="Histogram56.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 20:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271108#M14268</guid>
      <dc:creator>jonesk48</dc:creator>
      <dc:date>2016-05-17T20:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate shape, scale and location parameters using RAND("LOGNORMAL")</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271113#M14269</link>
      <description>&lt;P&gt;Just for clarity, the embedded picture is from my acutal data. I would like to simulate more data that looks like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 20:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271113#M14269</guid>
      <dc:creator>jonesk48</dc:creator>
      <dc:date>2016-05-17T20:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate shape, scale and location parameters using RAND("LOGNORMAL")</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271115#M14270</link>
      <description>&lt;P&gt;Look at the PDF('LOGNORMAL') function&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 21:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271115#M14270</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-17T21:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate shape, scale and location parameters using RAND("LOGNORMAL")</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271118#M14271</link>
      <description>&lt;P&gt;Yes I will, thank you! I didn't think about using the pdf function.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 21:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271118#M14271</guid>
      <dc:creator>jonesk48</dc:creator>
      <dc:date>2016-05-17T21:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate shape, scale and location parameters using RAND("LOGNORMAL")</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271148#M14272</link>
      <description>&lt;P&gt;Chapter 7 of Wicklin (2013) &lt;EM&gt;Simulating Data with SAS &lt;/EM&gt;has a section on "Adding Location and Scale Parameters" (p. 107-109).&lt;/P&gt;
&lt;P&gt;For the lognormal function it says:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="LEFT"&gt;&lt;FONT face="NimbusRomNo9L-Regu" size="3"&gt;The RAND("Normal", mu, sigma)&amp;nbsp;function generates&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="MT2MIT" size="3"&gt;X ~&lt;/FONT&gt;&lt;FONT face="MT2SYT" size="3"&gt;&amp;#24; &lt;/FONT&gt;&lt;FONT face="MT2MIT" size="3"&gt;N(mu, sigma)&lt;/FONT&gt;&lt;FONT face="NimbusRomNo9L-Regu" size="3"&gt;. The random variable Y = &lt;/FONT&gt;&lt;FONT face="SFRM1095" size="3"&gt;exp&lt;/FONT&gt;&lt;FONT face="MT2MIT" size="3"&gt;(X) &lt;/FONT&gt;&lt;FONT face="NimbusRomNo9L-Regu" size="3"&gt;is&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="NimbusRomNo9L-Regu" size="3"&gt;&lt;FONT face="NimbusRomNo9L-Regu" size="3"&gt;lognormally distributed with parameters &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="MT2MIT" size="3"&gt;&lt;FONT face="MT2MIT" size="3"&gt;&amp;#22; mu &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="NimbusRomNo9L-Regu" size="3"&gt;&lt;FONT face="NimbusRomNo9L-Regu" size="3"&gt;and sigma&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="MT2MIT" size="3"&gt;&lt;FONT face="MT2MIT" size="3"&gt;&amp;#27;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="NimbusRomNo9L-Regu" size="3"&gt;&lt;FONT face="NimbusRomNo9L-Regu" size="3"&gt;..... &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="NimbusRomNo9L-Regu" size="3"&gt;Notice that the location and scale parameters are added &lt;/FONT&gt;&lt;FONT face="NimbusRomNo9L-ReguItal" size="3"&gt;before &lt;/FONT&gt;&lt;FONT face="NimbusRomNo9L-Regu" size="3"&gt;the&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;exponential transformation is applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add a threshold parameter by generating theta+Y.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For an example in teh DATA step, see &lt;A href="http://blogs.sas.com/content/iml/2014/06/04/simulate-lognormal-data-with-specified-mean-and-variance.html" target="_self"&gt;"Simulate lognormal data with specified mean and variance."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 01:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271148#M14272</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-18T01:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate shape, scale and location parameters using RAND("LOGNORMAL")</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271149#M14273</link>
      <description>&lt;P&gt;Rick's blog&amp;nbsp;might give you some help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2014/06/04/simulate-lognormal-data-with-specified-mean-and-variance.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2014/06/04/simulate-lognormal-data-with-specified-mean-and-variance.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 01:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271149#M14273</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-05-18T01:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate shape, scale and location parameters using RAND("LOGNORMAL")</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271287#M14279</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the feedback! &amp;nbsp;I understand now, and the link you provided with the example helps greatly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 12:42:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271287#M14279</guid>
      <dc:creator>jonesk48</dc:creator>
      <dc:date>2016-05-18T12:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to incorporate shape, scale and location parameters using RAND("LOGNORMAL")</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271289#M14280</link>
      <description>&lt;P&gt;Thank you! This link is very helpful, Rick also referred to the same content on his blog. I appreciate your feedback!&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 12:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-incorporate-shape-scale-and-location-parameters-using/m-p/271289#M14280</guid>
      <dc:creator>jonesk48</dc:creator>
      <dc:date>2016-05-18T12:43:34Z</dc:date>
    </item>
  </channel>
</rss>

