<?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 set the response limits using a variable in a JMP script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-set-the-response-limits-using-a-variable-in-a-JMP-script/m-p/466546#M71037</link>
    <description>&lt;P&gt;The desirability values in this example appear to be for matching a target response, not maximizing a response.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 13:27:09 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2022-03-03T13:27:09Z</dc:date>
    <item>
      <title>How to set the response limits using a variable in a JMP script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-response-limits-using-a-variable-in-a-JMP-script/m-p/466468#M71030</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to use a JMP script to automatically set the desirability for a JMP column, based on the statistics of the column itself. I would like to do this because I have multiple metrics and I would like to combine them in a single desirability metric using the JMP profiler platform.&amp;nbsp;I am a JMP 16.1 user.&lt;/P&gt;&lt;P&gt;Unfortunately the following code does not work - the response limits are set but the value is missing:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;median = Col Quantile( :"A", 0.5);
limit1 = Col Quantile( :"A", 0.95);
limit2 = Col Quantile( :"A", 0.05);

low_limit = if(limit1&amp;lt;limit2, limit1, limit2);
upper_limit = if(limit1&amp;gt;limit2, limit1, limit2);

Data Table( "TS_Table" ):"A"n &amp;lt;&amp;lt;
Set Property(
	"Response Limits",
	{Goal( Maximize ), Lower( low_limit, 0.05 ), Middle( median, 1 ),
	Upper( up_limit, 0.05 ), Importance( 2 ), Show Limits( 1 )}
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If I replace the variables with the an actual value, the setting of the response limits works fine.&lt;/P&gt;&lt;P&gt;Am I doing something wrong when I evaluate the variables in the set Property function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Davide&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:45:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-response-limits-using-a-variable-in-a-JMP-script/m-p/466468#M71030</guid>
      <dc:creator>DavideGrossi</dc:creator>
      <dc:date>2023-06-10T23:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the response limits using a variable in a JMP script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-response-limits-using-a-variable-in-a-JMP-script/m-p/466542#M71036</link>
      <description>&lt;P&gt;&lt;LI-MESSAGE title="Insert one expression into another using Eval Insert, Eval Expr, Parse, and Substitute" uid="48998" url="https://community.jmp.com/t5/JSL-Cookbook/Insert-one-expression-into-another-using-Eval-Insert-Eval-Expr/m-p/48998#U48998" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;will most likely be able to help you with this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

low_limit = 50;
high_limit = 100;

Eval(Eval Expr(Column(dt, "height") &amp;lt;&amp;lt; Set Property(
	"Response Limits",
	{Goal(Maximize), Lower(Expr(low_limit), 0.05), Middle(median, 1), Upper(Expr(high_limit), 0.05), Importance(2),
	Show Limits(1)}
)));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Mar 2022 13:15:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-response-limits-using-a-variable-in-a-JMP-script/m-p/466542#M71036</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-03-03T13:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the response limits using a variable in a JMP script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-response-limits-using-a-variable-in-a-JMP-script/m-p/466546#M71037</link>
      <description>&lt;P&gt;The desirability values in this example appear to be for matching a target response, not maximizing a response.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 13:27:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-response-limits-using-a-variable-in-a-JMP-script/m-p/466546#M71037</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-03-03T13:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the response limits using a variable in a JMP script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-response-limits-using-a-variable-in-a-JMP-script/m-p/467520#M71162</link>
      <description>&lt;P&gt;Perfect, thank you for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 13:47:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-response-limits-using-a-variable-in-a-JMP-script/m-p/467520#M71162</guid>
      <dc:creator>DavideGrossi</dc:creator>
      <dc:date>2022-03-07T13:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the response limits using a variable in a JMP script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-response-limits-using-a-variable-in-a-JMP-script/m-p/467521#M71163</link>
      <description>&lt;P&gt;Thank you for pointing that out, Mark&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 13:48:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-response-limits-using-a-variable-in-a-JMP-script/m-p/467521#M71163</guid>
      <dc:creator>DavideGrossi</dc:creator>
      <dc:date>2022-03-07T13:48:31Z</dc:date>
    </item>
  </channel>
</rss>

