<?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 Deal with hierachical (nested) factors in DOE custom design platorm in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Deal-with-hierachical-nested-factors-in-DOE-custom-design/m-p/829670#M101204</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to build a design using the DOE custom design platform. I have three categorical factors (G, L, and Z) to consider, with one nested within another. Ultimately, the model I want to run is Y = G + L[Z] + Z + e. However, my primary goal is to ensure that the number of replications of G is balanced within Z, and that the number of runs is balanced across my L factor.&lt;/P&gt;&lt;P&gt;By using the "Disallowed Combinations" option, I managed to get something close to my desired outcome. For example, this script produces results that are fairly close to what I want:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DOE(
	Custom Design,
	{Add Response( Maximize, "Y", ., ., . ),
	Add Factor(
		Categorical,
		{"L1", "L2", "L3", "L4", "L5", "L6", "L7", "L8", "L9", "L10"},
		"L",
		0
	), Add Factor(
		Categorical,
		{"V1", "V2", "V3", "V4", "V5", "V6",
		"V7", "V8", "V9", "V10", "V11", "V12",
		"V13", "V14", "V15", "V16", "V17", "V18",
		"V19", "V20", "V21", "V22", "V23", "V24",
		"V25", "V26", "V27", "V28", "V29", "V30",
		"V31", "V32"},
		"G",
		0
	), Add Factor( Categorical, {"Z1", "Z2"}, "Z", 0 ),
	Set Random Seed( 1289561612 ), Number of Starts( 360 ), Add Term( {1, 0} ),
	Add Term( {1, 1} ), Add Term( {2, 1} ), Add Potential Term( {3, 1} ),
	Set Sample Size( 360), Disallowed Combinations(
		Z == "Z1" &amp;amp; (L == "L6" | L == "L7" |
		L == "L8" | L == "L9" | L == "L10") |
		Z == "Z2" &amp;amp; (L == "L1" | L == "L2" |
		L == "L3" | L == "L4" | L == "L5")
	), Simulate Responses( 0 ), Save X Matrix( 0 ), Make Design}
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Nevertheless, this is far from perfect because the number of levels for &lt;STRONG&gt;L&lt;/STRONG&gt;, &lt;STRONG&gt;Z&lt;/STRONG&gt;, and &lt;STRONG&gt;G&lt;/STRONG&gt; can vary significantly depanding on the designs I have to create and and I have many!&amp;nbsp; This approach is not straightforward to automate through scripting.&lt;/P&gt;&lt;P&gt;Moreover, the number of replications per &lt;STRONG&gt;Z&lt;/STRONG&gt; level for my &lt;STRONG&gt;G&lt;/STRONG&gt; factor is not perfectly balanced, as shown in the following summary of my results table:&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="johanna_younous_1-1738236063000.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72359i7FD4924C1E7CD50C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johanna_younous_1-1738236063000.png" alt="johanna_younous_1-1738236063000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thought is welcome :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using JMP16&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2025 11:30:36 GMT</pubDate>
    <dc:creator>johanna_younous</dc:creator>
    <dc:date>2025-01-30T11:30:36Z</dc:date>
    <item>
      <title>Deal with hierachical (nested) factors in DOE custom design platorm</title>
      <link>https://community.jmp.com/t5/Discussions/Deal-with-hierachical-nested-factors-in-DOE-custom-design/m-p/829670#M101204</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to build a design using the DOE custom design platform. I have three categorical factors (G, L, and Z) to consider, with one nested within another. Ultimately, the model I want to run is Y = G + L[Z] + Z + e. However, my primary goal is to ensure that the number of replications of G is balanced within Z, and that the number of runs is balanced across my L factor.&lt;/P&gt;&lt;P&gt;By using the "Disallowed Combinations" option, I managed to get something close to my desired outcome. For example, this script produces results that are fairly close to what I want:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DOE(
	Custom Design,
	{Add Response( Maximize, "Y", ., ., . ),
	Add Factor(
		Categorical,
		{"L1", "L2", "L3", "L4", "L5", "L6", "L7", "L8", "L9", "L10"},
		"L",
		0
	), Add Factor(
		Categorical,
		{"V1", "V2", "V3", "V4", "V5", "V6",
		"V7", "V8", "V9", "V10", "V11", "V12",
		"V13", "V14", "V15", "V16", "V17", "V18",
		"V19", "V20", "V21", "V22", "V23", "V24",
		"V25", "V26", "V27", "V28", "V29", "V30",
		"V31", "V32"},
		"G",
		0
	), Add Factor( Categorical, {"Z1", "Z2"}, "Z", 0 ),
	Set Random Seed( 1289561612 ), Number of Starts( 360 ), Add Term( {1, 0} ),
	Add Term( {1, 1} ), Add Term( {2, 1} ), Add Potential Term( {3, 1} ),
	Set Sample Size( 360), Disallowed Combinations(
		Z == "Z1" &amp;amp; (L == "L6" | L == "L7" |
		L == "L8" | L == "L9" | L == "L10") |
		Z == "Z2" &amp;amp; (L == "L1" | L == "L2" |
		L == "L3" | L == "L4" | L == "L5")
	), Simulate Responses( 0 ), Save X Matrix( 0 ), Make Design}
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Nevertheless, this is far from perfect because the number of levels for &lt;STRONG&gt;L&lt;/STRONG&gt;, &lt;STRONG&gt;Z&lt;/STRONG&gt;, and &lt;STRONG&gt;G&lt;/STRONG&gt; can vary significantly depanding on the designs I have to create and and I have many!&amp;nbsp; This approach is not straightforward to automate through scripting.&lt;/P&gt;&lt;P&gt;Moreover, the number of replications per &lt;STRONG&gt;Z&lt;/STRONG&gt; level for my &lt;STRONG&gt;G&lt;/STRONG&gt; factor is not perfectly balanced, as shown in the following summary of my results table:&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="johanna_younous_1-1738236063000.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72359i7FD4924C1E7CD50C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johanna_younous_1-1738236063000.png" alt="johanna_younous_1-1738236063000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thought is welcome :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using JMP16&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 11:30:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deal-with-hierachical-nested-factors-in-DOE-custom-design/m-p/829670#M101204</guid>
      <dc:creator>johanna_younous</dc:creator>
      <dc:date>2025-01-30T11:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deal with hierachical (nested) factors in DOE custom design platorm</title>
      <link>https://community.jmp.com/t5/Discussions/Deal-with-hierachical-nested-factors-in-DOE-custom-design/m-p/829729#M101209</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4166"&gt;@johanna_younous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I may not answer directly your questions but I have some remarks/comments :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;What is your objective ? Pick a winner or an understanding and modelization of the link between factors and response(s) ?&lt;BR /&gt;In the second case, I'm wondering if you couldn't get an understanding of this link with fewer levels for factor G for example (32 levels are a lot !). Also, depending on what the factors represent, could you use one or several numerical factors related to the categorical factors ? For example, using measurements of the specific categorical levels of the factors as numerical covariates in the design ?&lt;BR /&gt;Some options and inspiration for this idea :&amp;nbsp;&lt;LI-MESSAGE title="Re: Increase efficiency and model applicability..." uid="37507" url="https://community.jmp.com/t5/Discovery-Summit-Europe-2017/Increase-Efficiency-and-Model-Applicability-Domain-When-Testing/m-p/37507#U37507" 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;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;About the imbalance of your design, I don't see any specific imbalance in factors levels when launching the same script as you have :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1738251985172.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72364i473871F7F52CBCB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1738251985172.png" alt="Victor_G_0-1738251985172.png" /&gt;&lt;/span&gt;
&lt;P&gt;(I attached the design datatable generated for comparison if needed).&lt;BR /&gt;What is exactly the problem you're seeing ?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;For automation, I'm wondering if it wouldn't be easier to use a Candidate Set approach :
&lt;OL&gt;
&lt;LI&gt;Create automatically a dataset with all combinations (Classical Full Factorial DoE),&lt;/LI&gt;
&lt;LI&gt;Remove infeasible combinations by scripting rules,&lt;/LI&gt;
&lt;LI&gt;Use this candidate set to create a design.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;More info about the Candidate set approach here :&amp;nbsp;&lt;LI-MESSAGE title="Candidate Set Designs: Tailoring DOE Constraints to the Problem (2021-EU-30MP-784)" uid="756629" url="https://community.jmp.com/t5/Abstracts/Candidate-Set-Designs-Tailoring-DOE-Constraints-to-the-Problem/m-p/756629#U756629" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-occasion-thread lia-fa-icon lia-fa-occasion lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this answer may help you,&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 16:05:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deal-with-hierachical-nested-factors-in-DOE-custom-design/m-p/829729#M101209</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2025-01-30T16:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Deal with hierachical (nested) factors in DOE custom design platorm</title>
      <link>https://community.jmp.com/t5/Discussions/Deal-with-hierachical-nested-factors-in-DOE-custom-design/m-p/829745#M101210</link>
      <description>&lt;P&gt;Hello, thank you for this answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;in fact the purpose is to order properly all my levels of G , and in the end to select the better ones. 32 levels is quite a low number of level to me in fact ! There is no direct nor easy way to associate numbers to those factors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tryed to illustrate the ubalancing with the picture but I may not be clear, sorry about that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I get as with another run where I increased the number of runs .&lt;/P&gt;&lt;P&gt;Problem of balance comes from the number of replication fo my G levels within Z. Here is what I have :&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johanna_younous_2-1738254381968.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72368i79FC12F071A3CE2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johanna_younous_2-1738254381968.png" alt="johanna_younous_2-1738254381968.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this is what I would like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johanna_younous_3-1738254506306.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72369i8BE6FDE183DA80E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johanna_younous_3-1738254506306.png" alt="johanna_younous_3-1738254506306.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the candidate approach, I'll dig on that .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I though this problematic would be easier to solve to be fair :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 16:33:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deal-with-hierachical-nested-factors-in-DOE-custom-design/m-p/829745#M101210</guid>
      <dc:creator>johanna_younous</dc:creator>
      <dc:date>2025-01-30T16:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Deal with hierachical (nested) factors in DOE custom design platorm</title>
      <link>https://community.jmp.com/t5/Discussions/Deal-with-hierachical-nested-factors-in-DOE-custom-design/m-p/829904#M101227</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4166"&gt;@johanna_younous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the need behind exact balancing between levels ? Did you try to create the design manually ? How does it compare to your scripted design ?&lt;/P&gt;
&lt;P&gt;I'm not sure the slight unbalance here is something to worry about, you can do the designs comparison with the&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/18.1/#page/jmp/compare-designs.shtml" target="_blank"&gt;Compare Designs&lt;/A&gt;&amp;nbsp;platform.&lt;/P&gt;
&lt;P&gt;Anyway, the use of the Candidate approach could be a nice alternative here, so that the constraints are already in the points choice, instead of specyfying the constraints in design generation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 07:44:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Deal-with-hierachical-nested-factors-in-DOE-custom-design/m-p/829904#M101227</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2025-01-31T07:44:07Z</dc:date>
    </item>
  </channel>
</rss>

