<?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 generate a data set distributed according to a specified life distribution in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-generate-a-data-set-distributed-according-to-a-specified/m-p/327533#M57679</link>
    <description>&lt;P&gt;Since you need it to be repeatable, I would suggest using JSL.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;random reset(55);
Y = J(100,1);
for (i=1,i&amp;lt;=100,i++,Y[i]=random weibull(3.5,15000));
dt = as table(Y);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You may want to check out the random function category in the JMP Scripting Index:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peng_liu_0-1603907872669.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27832i83F576BF07CB61E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="peng_liu_0-1603907872669.png" alt="peng_liu_0-1603907872669.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You may also want to check out how to work with formula column directly if your hands are not tied to a fixed seed:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/create-a-formula.shtml" target="_blank"&gt;https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/create-a-formula.shtml&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2020 18:01:21 GMT</pubDate>
    <dc:creator>peng_liu</dc:creator>
    <dc:date>2020-10-28T18:01:21Z</dc:date>
    <item>
      <title>How to generate a data set distributed according to a specified life distribution</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-generate-a-data-set-distributed-according-to-a-specified/m-p/327493#M57677</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Is there a way to do a&amp;nbsp; Monte Carlo simulation to generate a single data set containing values that are distributed according to a specified life distribution such as Weibull or Normal? I also want this to be&amp;nbsp;&lt;/SPAN&gt;repeatable by specifying a starting see.&amp;nbsp; How can I achieve this in JMP? A formula or a JMP script would suffice.&amp;nbsp; For example, I want to create a dataset that follows a Weibull distribution with beta of 3.5 and eta of 15,000.&amp;nbsp; Appreciate the help.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:21:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-generate-a-data-set-distributed-according-to-a-specified/m-p/327493#M57677</guid>
      <dc:creator>Velagandula</dc:creator>
      <dc:date>2023-06-10T23:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a data set distributed according to a specified life distribution</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-generate-a-data-set-distributed-according-to-a-specified/m-p/327533#M57679</link>
      <description>&lt;P&gt;Since you need it to be repeatable, I would suggest using JSL.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;random reset(55);
Y = J(100,1);
for (i=1,i&amp;lt;=100,i++,Y[i]=random weibull(3.5,15000));
dt = as table(Y);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You may want to check out the random function category in the JMP Scripting Index:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peng_liu_0-1603907872669.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27832i83F576BF07CB61E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="peng_liu_0-1603907872669.png" alt="peng_liu_0-1603907872669.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You may also want to check out how to work with formula column directly if your hands are not tied to a fixed seed:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/create-a-formula.shtml" target="_blank"&gt;https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/create-a-formula.shtml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 18:01:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-generate-a-data-set-distributed-according-to-a-specified/m-p/327533#M57679</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2020-10-28T18:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a data set distributed according to a specified life distribution</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-generate-a-data-set-distributed-according-to-a-specified/m-p/327543#M57680</link>
      <description>&lt;P&gt;Here is a list of the Random Number functions that can be used to generate data of specific distributions.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="random.PNG" style="width: 358px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27834i638B6D33E84FDD16/image-size/large?v=v2&amp;amp;px=999" role="button" title="random.PNG" alt="random.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The Random Reset() function can be used to set the initial seed to whatever value one wants.&lt;/P&gt;
&lt;P&gt;Several of the JMP Platforms allow for simulation, such as the Distribution Platform.&amp;nbsp; You can read about it in the Basic Analysis document found in the JMP Documentation Library available under the Help pull down menu&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 18:15:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-generate-a-data-set-distributed-according-to-a-specified/m-p/327543#M57680</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-10-28T18:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a data set distributed according to a specified life distribution</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-generate-a-data-set-distributed-according-to-a-specified/m-p/327544#M57681</link>
      <description>Thank you so much for such quick response and help! This is exactly what I was looking for.</description>
      <pubDate>Wed, 28 Oct 2020 18:15:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-generate-a-data-set-distributed-according-to-a-specified/m-p/327544#M57681</guid>
      <dc:creator>Velagandula</dc:creator>
      <dc:date>2020-10-28T18:15:47Z</dc:date>
    </item>
  </channel>
</rss>

