<?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 make a Covariate DOE with sampling in different levels of a categorical variable? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937892#M109307</link>
    <description>&lt;P&gt;In the covariate model, either use the coordinates system with factors X1 and X2, or use Cluster as factor. They represent the same information, but with a different granularity/detail for different objectives and use. Depending on your topic and objectives, you already might have an idea about which factors system (X1+X2 or Cluster) is the most interesting.&lt;/P&gt;
&lt;P&gt;I would prefer using X1+X2 as factors in a first intention, as they are the most precise (continuous factors), will require fewer degrees of freedom in the model than 8-levels categorical factor Cluster (which will require 7 Dfs vs. 5 Dfs for main effects, interaction and quadratic effects for the continuous X1 and X2 factors), and you can always go from coordinates to Cluster if you find an optimum, something interesting, or if you need the Cluster information for explanation purposes. The opposite is not true, you'll only have an area to investigate further with the coordinates if you have found one or several clusters of interest with your model.&lt;BR /&gt;&lt;BR /&gt;Hope this answer will help you,&lt;/P&gt;</description>
    <pubDate>Sat, 28 Mar 2026 09:55:16 GMT</pubDate>
    <dc:creator>Victor_G</dc:creator>
    <dc:date>2026-03-28T09:55:16Z</dc:date>
    <item>
      <title>How to make a Covariate DOE with sampling in different levels of a categorical variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937527#M109274</link>
      <description>&lt;P&gt;In attachment a data set with 500 combinations X1 and X2; 17 clustered in 17 categories.&lt;/P&gt;
&lt;P&gt;How, with covariates X1 and X2, to generate a 5x17 = 85 run covariate DOE so that from each cluster/category 5 samples are selected?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 16:09:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937527#M109274</guid>
      <dc:creator>frankderuyck</dc:creator>
      <dc:date>2026-03-26T16:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Covariate DOE with sampling in different levels of a categorical variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937549#M109276</link>
      <description>&lt;P&gt;Guess&amp;nbsp; I need to make Cluster hard to change?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 16:21:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937549#M109276</guid>
      <dc:creator>frankderuyck</dc:creator>
      <dc:date>2026-03-26T16:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Covariate DOE with sampling in different levels of a categorical variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937672#M109287</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/283"&gt;@frankderuyck&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Is the 5 samples/cluster a necessary condition?&lt;/P&gt;
&lt;P&gt;It seems your clusters can be separated easily based on X1-X2 coordinates, and the number of samples per cluster can vary from 16 to 60, so maybe an adaptative sampling based only on the continuous coordinates would be sufficient. Looking at the plot of the cluster points in the X1-X2 experimental space, it reminds me of the clustering process behind the Fast Flexible algorithm (that I described in this &lt;A href="https://community.jmp.com/t5/JMP-Blog/Exploring-space-filling-designs-part-1-Introduction-to-common/ba-p/906541" target="_self"&gt;blog post):&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d'écran 2026-03-27 083645.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/97258iC6D2376023A20DBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d'écran 2026-03-27 083645.png" alt="Capture d'écran 2026-03-27 083645.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So I tried a more simple way, without the condition 5 samples/cluster, to sample some experiments evenly in the X1-X2 covariates experimental space using the Fast Flexible algorithm:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open the &lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/spacefilling-designs.shtml?_gl=1*1mxm2gc*_up*MQ..*_ga*MTk1NjU4Nzg2My4xNzc0NTk3NDgz*_ga_BRNVBEC1RS*czE3NzQ1OTc0ODIkbzEkZzAkdDE3NzQ1OTc0ODIkajYwJGwwJGgw#" target="_blank" rel="noopener"&gt;Space-Filling Designs&lt;/A&gt; platform.&lt;/LI&gt;
&lt;LI&gt;In the red triangle, click on "Load design" and choose your X1 and X2 covariates.&lt;/LI&gt;
&lt;LI&gt;Specify a number of runs equal to 85 and click on Fast Flexible Design.&lt;/LI&gt;
&lt;LI&gt;Once the design is created, use Join tables to get the cluster number of the selected samples in the design.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;You'll get a good coverage of your covariate space but with a different sampling than you imagined:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d'écran 2026-03-27 085235.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/97260iBF067D5E22BF7053/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d'écran 2026-03-27 085235.png" alt="Capture d'écran 2026-03-27 085235.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Number of samples per cluster goes from 3 to 9, so it could be acceptable depending on your objectives.&lt;BR /&gt;Here is how the selected points (diamonds)&amp;nbsp;look like on the original full covariate set:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d'écran 2026-03-27 085909.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/97261i5EB071E14DE69D33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d'écran 2026-03-27 085909.png" alt="Capture d'écran 2026-03-27 085909.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please find attached the design created.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 18:57:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937672#M109287</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2026-03-27T18:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Covariate DOE with sampling in different levels of a categorical variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937675#M109288</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/283"&gt;@frankderuyck&lt;/a&gt;&amp;nbsp;I also thought about using Hard to change factors to have exactly 5 samples per cluster, but since X1-X2 coordinates are directly linked to the clusters and in the same covariate table, you'll have either all or none of the covariate factors as "Hard to change", which will prevent from having the kind of hierarchical structure you wanted to create (5 samples per cluster, and good repartition of X1-X2 coordinates inside each cluster). With covariate factors as hard to change factors, you'll get 5 times one sample per cluster.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the Custom design platform, simply selecting the covariate factors and entering them as "Easy to change", setting a main effects + interactions model with a run size of 85 allow you to get a design close to your needs:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;85 runs in total&lt;/LI&gt;
&lt;LI&gt;4 to 6 samples per cluster&lt;/LI&gt;
&lt;LI&gt;All 17 clusters are present in the design&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Repartition of the runs in the experimental space is less homogeneous compared to space filling design:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d'écran 2026-03-27 091012.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/97262iC601DCB9540C4E07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d'écran 2026-03-27 091012.png" alt="Capture d'écran 2026-03-27 091012.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please find attached this other option.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 09:40:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937675#M109288</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2026-03-27T09:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Covariate DOE with sampling in different levels of a categorical variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937680#M109289</link>
      <description>&lt;P&gt;Thanks Victor! I will try both&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 08:52:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937680#M109289</guid>
      <dc:creator>frankderuyck</dc:creator>
      <dc:date>2026-03-27T08:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Covariate DOE with sampling in different levels of a categorical variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937688#M109291</link>
      <description>&lt;P&gt;Usig hierarchical clustering I reduced to 8 clusters (17 is too much) and tried to sample 6 units/cluster: I am&amp;nbsp; interested - not only between - but also in within cluster variation. The custom DOE method gives me a more homogenuous sampling across clusters.&amp;nbsp; I specified a simple interaction model without X*cluster interactions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 10:02:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937688#M109291</guid>
      <dc:creator>frankderuyck</dc:creator>
      <dc:date>2026-03-27T10:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Covariate DOE with sampling in different levels of a categorical variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937795#M109297</link>
      <description>&lt;P&gt;This is a good idea. It avoids creating singular clusters with few samples, and should help balancing the number of samples per cluster in the design.&lt;/P&gt;
&lt;P&gt;The X*cluster interactions won't add any information in the model (as well as including both X's and cluster information, there is repetition of information), as the clusters already depend on X's, so we might expect multicollinearity if modeling a response with a model including X's, Clusters and X's*cluster interactions.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 18:43:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937795#M109297</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2026-03-27T18:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Covariate DOE with sampling in different levels of a categorical variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937889#M109306</link>
      <description>&lt;P&gt;You have a point Victor; so for covariate selection, in the DOE covariate model you propose to&amp;nbsp; include only 1 factor: X1 or X2 or Cluster?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2026 09:15:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937889#M109306</guid>
      <dc:creator>frankderuyck</dc:creator>
      <dc:date>2026-03-28T09:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Covariate DOE with sampling in different levels of a categorical variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937892#M109307</link>
      <description>&lt;P&gt;In the covariate model, either use the coordinates system with factors X1 and X2, or use Cluster as factor. They represent the same information, but with a different granularity/detail for different objectives and use. Depending on your topic and objectives, you already might have an idea about which factors system (X1+X2 or Cluster) is the most interesting.&lt;/P&gt;
&lt;P&gt;I would prefer using X1+X2 as factors in a first intention, as they are the most precise (continuous factors), will require fewer degrees of freedom in the model than 8-levels categorical factor Cluster (which will require 7 Dfs vs. 5 Dfs for main effects, interaction and quadratic effects for the continuous X1 and X2 factors), and you can always go from coordinates to Cluster if you find an optimum, something interesting, or if you need the Cluster information for explanation purposes. The opposite is not true, you'll only have an area to investigate further with the coordinates if you have found one or several clusters of interest with your model.&lt;BR /&gt;&lt;BR /&gt;Hope this answer will help you,&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2026 09:55:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-a-Covariate-DOE-with-sampling-in-different-levels-of/m-p/937892#M109307</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2026-03-28T09:55:16Z</dc:date>
    </item>
  </channel>
</rss>

