<?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 Generating Generalized Gamma Distribution using JMP scripts in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Generating-Generalized-Gamma-Distribution-using-JMP-scripts/m-p/3913#M3913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Matt and MS for showing a way to generate random numbers from&lt;/P&gt;&lt;P&gt;generalized gamma distribution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-ASVP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2011 18:20:51 GMT</pubDate>
    <dc:creator>asvp</dc:creator>
    <dc:date>2011-10-27T18:20:51Z</dc:date>
    <item>
      <title>Generating Generalized Gamma Distribution using JMP scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-Generalized-Gamma-Distribution-using-JMP-scripts/m-p/3910#M3910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a function that would allow generating random numbers&lt;/P&gt;&lt;P&gt;from a generalized gamma distribution? Scripting guide has&lt;/P&gt;&lt;P&gt;function random gamma for generating random numbers from&lt;/P&gt;&lt;P&gt;Gamma distribution but I don't see anything for generalized gamma&lt;/P&gt;&lt;P&gt;distribution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-ASVP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 18:46:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-Generalized-Gamma-Distribution-using-JMP-scripts/m-p/3910#M3910</guid>
      <dc:creator>asvp</dc:creator>
      <dc:date>2011-10-26T18:46:57Z</dc:date>
    </item>
    <item>
      <title>Generating Generalized Gamma Distribution using JMP scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-Generalized-Gamma-Distribution-using-JMP-scripts/m-p/3911#M3911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can get random numbers for a three-parameter generalized gamma distribution using the builtin generators. If it's possible I would also like to know how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, JMP 9&amp;nbsp; can get random numbers from R. See JSL example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #009800;"&gt;// Function that returns random numbers from &lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #009800;"&gt;// generalized gamma distribution generated &lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #009800;"&gt;// by R package VGAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;rgengamma &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;Function&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;STRONG&gt;{&lt;/STRONG&gt;n &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; b &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; d &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; k &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #2600eb;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;R Init&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #2600eb;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;R Submit&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a70096;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #a70096;"&gt;library(VGAM)&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #a70096;"&gt;rggam &amp;lt;- rgengamma(100,1,2,3)&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&lt;SPAN style="color: #a70096;"&gt;"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp; rggam &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;R Get&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; rggam &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #2600eb;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;R Term&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&amp;nbsp; rggam&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #009800;"&gt;// Example of how touse the function to populate a &lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #009800;"&gt;// data table with n=100 random numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #a70096;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2600eb;"&gt;New Table&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;"Generalized Gamma"&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2600eb;"&gt;New Column&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;"Random"&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;"&gt;&lt;SPAN style="color: #2600eb;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #a70096;"&gt;"Random"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; setvalues&lt;STRONG&gt;(&lt;/STRONG&gt; rgengamma&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 00:46:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-Generalized-Gamma-Distribution-using-JMP-scripts/m-p/3911#M3911</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2011-10-27T00:46:09Z</dc:date>
    </item>
    <item>
      <title>Generating Generalized Gamma Distribution using JMP scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-Generalized-Gamma-Distribution-using-JMP-scripts/m-p/3912#M3912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MS gave us a clue.&amp;nbsp; From the R prompt:&lt;/P&gt;&lt;P&gt;&amp;gt;library(VGAM)&lt;/P&gt;&lt;P&gt;&amp;gt;rgengamma&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&amp;gt;?rgengamma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reveals that the rgengamma returns a modified base R rgamma function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y = rgamma(n, k)&lt;/P&gt;&lt;P&gt;scale*y^(1/d)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In JMP, we can also use a modification of the basic "Random Gamma" function, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Data Table() &amp;lt;&amp;lt; New Column( "JMP GenGamma",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Formula( 1*Random Gamma( 1 )^(1/2) ) );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ﻿Current Data Table() &amp;lt;&amp;lt; Run Formulas;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Of course, one will have to fiddle with the parameters to get a match)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matching random number generators, anyone - perhaps by fixing seeds?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;-Matt&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 17:40:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-Generalized-Gamma-Distribution-using-JMP-scripts/m-p/3912#M3912</guid>
      <dc:creator>mattf</dc:creator>
      <dc:date>2011-10-27T17:40:49Z</dc:date>
    </item>
    <item>
      <title>Generating Generalized Gamma Distribution using JMP scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Generating-Generalized-Gamma-Distribution-using-JMP-scripts/m-p/3913#M3913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Matt and MS for showing a way to generate random numbers from&lt;/P&gt;&lt;P&gt;generalized gamma distribution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-ASVP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 18:20:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generating-Generalized-Gamma-Distribution-using-JMP-scripts/m-p/3913#M3913</guid>
      <dc:creator>asvp</dc:creator>
      <dc:date>2011-10-27T18:20:51Z</dc:date>
    </item>
  </channel>
</rss>

