<?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: Use of the ifmin function in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Use-of-the-ifmin-function/m-p/13218#M12478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; That's a big help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 12:36:27 GMT</pubDate>
    <dc:creator>mrvos0</dc:creator>
    <dc:date>2015-07-09T12:36:27Z</dc:date>
    <item>
      <title>Use of the ifmin function</title>
      <link>https://community.jmp.com/t5/Discussions/Use-of-the-ifmin-function/m-p/13214#M12474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;I am running a Monte Carlo simulation using the JMP profiler.&amp;nbsp; I need to prevent one of the random Gamma distributions I'm using from returning a number greater than 120.&amp;nbsp; To do, I was trying to create an expression using the ifmin function so that the function returns the value of the Gamma distribution if the value is less than 120 and the function returns 120 if the value is greater than 120.&amp;nbsp; This is basically trying to create a truncated distribution similar to the way a truncated normal distribution is created.&amp;nbsp; Unfortunately, I've been unsuccessful in getting the ifmin function to work and have not been able to find any examples of the use of the function to use as a template. Can anyone give me some guidance on getting ifmin to work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Here's what I've tried:&amp;nbsp; IfMin( Random 20*Gamma(10), 120, 120 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;All I get is 120 back from the function. If I change the order, I get the random Gamma back with lot of vaules greater than 120. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 21:31:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Use-of-the-ifmin-function/m-p/13214#M12474</guid>
      <dc:creator>mrvos0</dc:creator>
      <dc:date>2015-07-08T21:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use of the ifmin function</title>
      <link>https://community.jmp.com/t5/Discussions/Use-of-the-ifmin-function/m-p/13215#M12475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;min&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal;"&gt;20&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;*&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;Random Gamma&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal;"&gt;10&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal;"&gt;120&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 01:55:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Use-of-the-ifmin-function/m-p/13215#M12475</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2015-07-09T01:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Use of the ifmin function</title>
      <link>https://community.jmp.com/t5/Discussions/Use-of-the-ifmin-function/m-p/13216#M12476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And in general, if you want help with a function, try 'Help &amp;gt; Scripting Index', which gives the syntax and often an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, for 'IfMin()':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #032ce4;"&gt;Names Default To Here&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;TomScore &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;45&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;JonScore &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;47&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;TimScore &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;46&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;lowestScorer &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;IfMin&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&amp;nbsp; TomScore&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;"Tom"&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&amp;nbsp; JonScore&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;"Jon"&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&amp;nbsp; TimScore&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;"Tim"&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;"Noone"&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier;"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 08:02:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Use-of-the-ifmin-function/m-p/13216#M12476</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2015-07-09T08:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use of the ifmin function</title>
      <link>https://community.jmp.com/t5/Discussions/Use-of-the-ifmin-function/m-p/13217#M12477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works perfect!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 12:35:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Use-of-the-ifmin-function/m-p/13217#M12477</guid>
      <dc:creator>mrvos0</dc:creator>
      <dc:date>2015-07-09T12:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Use of the ifmin function</title>
      <link>https://community.jmp.com/t5/Discussions/Use-of-the-ifmin-function/m-p/13218#M12478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; That's a big help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 12:36:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Use-of-the-ifmin-function/m-p/13218#M12478</guid>
      <dc:creator>mrvos0</dc:creator>
      <dc:date>2015-07-09T12:36:27Z</dc:date>
    </item>
  </channel>
</rss>

