<?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 use a variable in JSL to set the levels of a DOE factor? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-a-variable-in-JSL-to-set-the-levels-of-a-DOE-factor/m-p/671885#M85980</link>
    <description>&lt;P&gt;Here is an example I created interactively with a Continous factor and a Discrete Numeric factor.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;levels = {1, 2, 3};

obj = DOE(
	Custom Design,
	{Add Response( Maximize, "Y", ., ., . ),
	Add Factor( Continuous, -1, 1, "X1", 0 )}
);

Eval(
	Substitute(
		Expr( obj &amp;lt;&amp;lt; Add Factor( Discrete Numeric, LLL, "X2", 0 ) ),
		Expr( LLL ),
		levels
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Aug 2023 18:13:05 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2023-08-28T18:13:05Z</dc:date>
    <item>
      <title>How to use a variable in JSL to set the levels of a DOE factor?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-a-variable-in-JSL-to-set-the-levels-of-a-DOE-factor/m-p/671452#M85945</link>
      <description>&lt;P&gt;I'm trying to add a factor to a DOE using a variable instead of hard coding the levels. The end goal is to provide the user with a simple interface set the levels for one of the factors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code doesn't work and the factor just ends up with L1 and L2 as levels.&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 );

levels = List(1,2,3);

d = DOE(
	Custom Design,
	Add factor(Discrete Numeric, levels)
);
d &amp;lt;&amp;lt; Make Design;
d &amp;lt;&amp;lt; Make Table;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Aug 2023 13:16:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-a-variable-in-JSL-to-set-the-levels-of-a-DOE-factor/m-p/671452#M85945</guid>
      <dc:creator>ChrisMuenzer</dc:creator>
      <dc:date>2023-08-26T13:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a variable in JSL to set the levels of a DOE factor?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-a-variable-in-JSL-to-set-the-levels-of-a-DOE-factor/m-p/671885#M85980</link>
      <description>&lt;P&gt;Here is an example I created interactively with a Continous factor and a Discrete Numeric factor.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;levels = {1, 2, 3};

obj = DOE(
	Custom Design,
	{Add Response( Maximize, "Y", ., ., . ),
	Add Factor( Continuous, -1, 1, "X1", 0 )}
);

Eval(
	Substitute(
		Expr( obj &amp;lt;&amp;lt; Add Factor( Discrete Numeric, LLL, "X2", 0 ) ),
		Expr( LLL ),
		levels
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Aug 2023 18:13:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-a-variable-in-JSL-to-set-the-levels-of-a-DOE-factor/m-p/671885#M85980</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-08-28T18:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a variable in JSL to set the levels of a DOE factor?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-a-variable-in-JSL-to-set-the-levels-of-a-DOE-factor/m-p/805923#M98432</link>
      <description>&lt;P&gt;Hello~&lt;/P&gt;&lt;P&gt;According to&amp;nbsp; the example that you created, how to use variables for the "levels", and then add a "Categorical" factor to obj?&lt;BR /&gt;For example:&lt;BR /&gt;value = "11";&lt;BR /&gt;value = "21";&lt;BR /&gt;value = "31";&lt;BR /&gt;levels = {value1, value2, value3};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 02:30:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-a-variable-in-JSL-to-set-the-levels-of-a-DOE-factor/m-p/805923#M98432</guid>
      <dc:creator>GL970879</dc:creator>
      <dc:date>2024-10-16T02:30:33Z</dc:date>
    </item>
  </channel>
</rss>

