<?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: Encoding of categorical variables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Encoding-of-categorical-variables/m-p/889484#M105158</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/43914"&gt;@Anja_W&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like simple linear contrasts might be the way to do what you're asking. Here's a short video describing the most basic use of them in Fit Model. Contrasts are, by far, my favorite way to make those specific comparisons in the context of a larger model (without any recoding of the original variables) and jmp makes specifying them quite easy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=YcFmp1KkLkY" target="_blank"&gt;https://www.youtube.com/watch?v=YcFmp1KkLkY&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jul 2025 18:13:00 GMT</pubDate>
    <dc:creator>jules</dc:creator>
    <dc:date>2025-07-25T18:13:00Z</dc:date>
    <item>
      <title>Encoding of categorical variables</title>
      <link>https://community.jmp.com/t5/Discussions/Encoding-of-categorical-variables/m-p/635327#M83350</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm interested in an &lt;STRONG&gt;*easy*&lt;/STRONG&gt; recoding of categorical variables in JMP. Depending on the variables I want to do this to be able to specify which levels should be compared to each other. If I include all levels in the model I want to get p-values for exactly the differences I want to see or I want to do a model selection and just include certain differences of levels. In these cases the result depends on the specific encoding of the categorical variable.&lt;/P&gt;&lt;P&gt;In some cases I want a dummy encoding or Reverse Helmert etc. I know how to do this by hand, but it would be nice if there is a more convenient way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already found this, but it just covers dummy encoding:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/In-JMP-how-do-you-adjust-the-parameterization-of-categorical/td-p/19172" target="_blank"&gt;Solved: In JMP, how do you adjust the parameterization of categorical variables in a reg... - JMP User Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be highly appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 21:15:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Encoding-of-categorical-variables/m-p/635327#M83350</guid>
      <dc:creator>Anja_W</dc:creator>
      <dc:date>2023-06-08T21:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding of categorical variables</title>
      <link>https://community.jmp.com/t5/Discussions/Encoding-of-categorical-variables/m-p/635356#M83352</link>
      <description>&lt;P&gt;Not sure if this is helpful...but you can make any comparison of interest via Custom Test. Unless I'm missing something, from the sound of your needs there is no need to recode.&lt;/P&gt;&lt;P&gt;Here is a recent discussion.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Linear-and-quadratic-contrasts-with-unequally-spaced-treatments/m-p/626210/highlight/true#M82503" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Linear-and-quadratic-contrasts-with-unequally-spaced-treatments/td-p/624288/page/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is JMP help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.0/?os=win&amp;amp;source=application#page/jmp/custom-test.shtml" target="_blank"&gt;Custom Test (jmp.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 09:13:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Encoding-of-categorical-variables/m-p/635356#M83352</guid>
      <dc:creator>MRB3855</dc:creator>
      <dc:date>2023-05-25T09:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding of categorical variables</title>
      <link>https://community.jmp.com/t5/Discussions/Encoding-of-categorical-variables/m-p/889415#M105151</link>
      <description>&lt;P&gt;Thank you very much for your answer and apologies that I only come back to you now. This sounds like a very good option if I only have the categorical factor. Since I'm working with DoEs I usually have more than just this one categorical factor. Additionally, I have several continuous numerical factors, their quadratic effects and twofold interactions. So I would like to go via the Standard Least Squares Platform.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 14:10:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Encoding-of-categorical-variables/m-p/889415#M105151</guid>
      <dc:creator>AnjaW</dc:creator>
      <dc:date>2025-07-25T14:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding of categorical variables</title>
      <link>https://community.jmp.com/t5/Discussions/Encoding-of-categorical-variables/m-p/889484#M105158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/43914"&gt;@Anja_W&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like simple linear contrasts might be the way to do what you're asking. Here's a short video describing the most basic use of them in Fit Model. Contrasts are, by far, my favorite way to make those specific comparisons in the context of a larger model (without any recoding of the original variables) and jmp makes specifying them quite easy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=YcFmp1KkLkY" target="_blank"&gt;https://www.youtube.com/watch?v=YcFmp1KkLkY&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 18:13:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Encoding-of-categorical-variables/m-p/889484#M105158</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2025-07-25T18:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding of categorical variables</title>
      <link>https://community.jmp.com/t5/Discussions/Encoding-of-categorical-variables/m-p/889548#M105161</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/43914"&gt;@Anja_W&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;If you're using categorical factors in DoE, the Gram-Schmidt Orthogonalization procedure is done by default on categorical factors to transform any k-levels categorical factor into k-1 continuous independant and orthonormal factors (vectors). More infos can be found here : &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://en.m.wikipedia.org/wiki/Gram%E2%80%93Schmidt_proces" target="_self"&gt;Gram–Schmidt process - Wikipedia&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://math.libretexts.org/Bookshelves/Linear_Algebra/Book%3A_Linear_Algebra_(Schilling_Nachtergaele_and_Lankham)/09%3A_Inner_product_spaces/9.05%3A_The_Gram-Schmidt_Orthogonalization_procedure" target="_self"&gt;9.5: The Gram-Schmidt Orthogonalization procedure - Mathematics LibreTexts&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The Gram-Schmidt Orthogonalization procedure is needed to make sure the k-1 independant vectors related to k-levels categorical factor are orthonormal (= one unit length). This "scaling" ensures that the lengths of all factors in your design are the same, so the comparison of effects during model building is done on the same basis, there are no bias due to high cardinality of categorical factors that would create very high vectors length and make these factors potentially more (or less) important than they are.&lt;BR /&gt;&lt;BR /&gt;In order to get access to this factor encoding, you can check "&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/save-x-matrix.shtml#ww319488" target="_self"&gt;Save X Matrix&lt;/A&gt;" when creating your design the first time, or launch the script "&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/output-options.shtml" target="_self"&gt;DoE Dialog&lt;/A&gt;" to get access to the same design creation you have and from then, check the "Save X Matrix" option when (re-)generating the same design. You can modify slightly the script so that the X Matrix appear in a JMP datatable format.&lt;BR /&gt;You can see more info on this closely related topic : &lt;LI-MESSAGE title="DoE Color map on correlations for multi-level categorical factors" uid="875902" url="https://community.jmp.com/t5/Discussions/DoE-Color-map-on-correlations-for-multi-level-categorical/m-p/875902#U875902" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this answer may help you,&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jul 2025 08:48:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Encoding-of-categorical-variables/m-p/889548#M105161</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2025-07-26T08:48:48Z</dc:date>
    </item>
  </channel>
</rss>

