<?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: step in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/step/m-p/673419#M86093</link>
    <description>&lt;P&gt;I think JMP Help's Scripting Guide gives much better idea of the function than scripting index&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/step-function.shtml#ww427995" target="_blank" rel="noopener"&gt; Scripting Guide &amp;gt; JSL Building Blocks &amp;gt; Conditional Functions &amp;gt; Step Function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 16:16:09 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-09-01T16:16:09Z</dc:date>
    <item>
      <title>step</title>
      <link>https://community.jmp.com/t5/Discussions/step/m-p/673207#M86082</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;step&lt;/STRONG&gt;&amp;nbsp;function looks useful :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1693555860881.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56146iD048781F581B64AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1693555860881.png" alt="hogi_1-1693555860881.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;some things which I noticed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Don't use string values&amp;nbsp; as yi - although it seems to be "allowed":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1693555667660.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56145iE9BD23F3CFF4E49C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1693555667660.png" alt="hogi_0-1693555667660.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Description - add-on:&lt;BR /&gt;Returns the yi argument corresponding to the largest xi which satisfies xi less than or equal to the x argument&lt;/P&gt;&lt;P&gt;- but only:&amp;nbsp;&lt;STRONG&gt;IF there is another xi that is larger than x&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) None of the yi values must be empty.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt &amp;lt;&amp;lt; New Column( "binning1",Character,	"Nominal",	Formula( Step( :weight, 0, "low", 90, "mid", 140, "high", 1000, "max" ) ));

dt &amp;lt;&amp;lt; New Column( "binning2",Numeric,"Nominal",	Format( "Best", 9 ),Formula( Step( :weight, 0, 0, 90, 1, 140, 2 ) ));
	
dt &amp;lt;&amp;lt; New Column( "binning3",Numeric,	"Nominal",	Format( "Best", 9 ),Formula( Step( :weight, 0, 0, 90, 1, 140, 2, 1000, . ) ));

dt &amp;lt;&amp;lt; New Column( "binning_final",	Numeric,	"Nominal",	Format( "Best", 9 ),	Formula( Step( :weight, 0, 0, 90, 1, 140, 2, 1000, -1 ) ));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Sep 2023 08:18:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/step/m-p/673207#M86082</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-09-01T08:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: step</title>
      <link>https://community.jmp.com/t5/Discussions/step/m-p/673412#M86092</link>
      <description>&lt;P&gt;Interesting.&amp;nbsp; Step() seems to always choose the first string option, if one is given.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Show( Step( 500, 0, 1, 90, 2, 140, 3, 1000, "max" ) );	//"max"
Show( Step( 500, 0, 1, 90, 2, 140, "high", 1000, "max" ) );	//"high"
Show( Step( 500, 0, 1, 90, "mid", 140, 3, 1000, "max" ) );	//"mid"&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Sep 2023 15:43:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/step/m-p/673412#M86092</guid>
      <dc:creator>mmarchandTSI</dc:creator>
      <dc:date>2023-09-01T15:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: step</title>
      <link>https://community.jmp.com/t5/Discussions/step/m-p/673419#M86093</link>
      <description>&lt;P&gt;I think JMP Help's Scripting Guide gives much better idea of the function than scripting index&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/step-function.shtml#ww427995" target="_blank" rel="noopener"&gt; Scripting Guide &amp;gt; JSL Building Blocks &amp;gt; Conditional Functions &amp;gt; Step Function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 16:16:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/step/m-p/673419#M86093</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-01T16:16:09Z</dc:date>
    </item>
  </channel>
</rss>

