<?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: Unused levels appearing in Odds Ratio output after recoding a categorical variable in JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Unused-levels-appearing-in-Odds-Ratio-output-after-recoding-a/m-p/912526#M107223</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am not 100% sure of what you are asking, but your nested If statement seems odd (I speculate that you may not need the second If statement).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the formula below what you are trying to achieve?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If (:Preferred drainage == "1", "0", :Preferred drainage == "2", "1", "");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Assuming that all the values in the Preferred Drainage column are 1 or 2, you should not have empty (i.e., "") results from your formula.&lt;/P&gt;
&lt;P&gt;Let us know.&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
    <pubDate>Tue, 11 Nov 2025 05:56:33 GMT</pubDate>
    <dc:creator>Thierry_S</dc:creator>
    <dc:date>2025-11-11T05:56:33Z</dc:date>
    <item>
      <title>Unused levels appearing in Odds Ratio output after recoding a categorical variable in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Unused-levels-appearing-in-Odds-Ratio-output-after-recoding-a/m-p/912456#M107212</link>
      <description>&lt;P data-start="55" data-end="297"&gt;After recoding a categorical variable (either with 'recode' or If) in &lt;STRONG data-start="96" data-end="103"&gt;JMP 18 pro&lt;/STRONG&gt;, the old category &lt;STRONG data-start="122" data-end="134"&gt;“Either”&lt;/STRONG&gt; still appears in the results — especially in the &lt;STRONG data-start="184" data-end="198"&gt;Odds Ratio&lt;/STRONG&gt; output of a logistic regression — even though no rows in the new column contain that value anymore.&lt;/P&gt;
&lt;P data-start="299" data-end="474"&gt;It seems JMP continues to recognize “Either” as an existing level of the variable, and there is no visible option to actually delete or remove it from the column properties.&lt;/P&gt;
&lt;P data-start="476" data-end="585" data-is-last-node="" data-is-only-node=""&gt;How can I completely remove or drop this unused category so that it no longer appears in the analysis output?&lt;/P&gt;
&lt;P data-start="476" data-end="585" data-is-last-node="" data-is-only-node=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="476" data-end="585" data-is-last-node="" data-is-only-node=""&gt;formula ex.&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;If( :Preferred drainage == "1",&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; "0",&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; If( :Preferred drainage == "2",&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; "1",&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; ""&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;)&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Nov 2025 17:41:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Unused-levels-appearing-in-Odds-Ratio-output-after-recoding-a/m-p/912456#M107212</guid>
      <dc:creator>RMSEElephant848</dc:creator>
      <dc:date>2025-11-10T17:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unused levels appearing in Odds Ratio output after recoding a categorical variable in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Unused-levels-appearing-in-Odds-Ratio-output-after-recoding-a/m-p/912526#M107223</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am not 100% sure of what you are asking, but your nested If statement seems odd (I speculate that you may not need the second If statement).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the formula below what you are trying to achieve?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If (:Preferred drainage == "1", "0", :Preferred drainage == "2", "1", "");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Assuming that all the values in the Preferred Drainage column are 1 or 2, you should not have empty (i.e., "") results from your formula.&lt;/P&gt;
&lt;P&gt;Let us know.&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 05:56:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Unused-levels-appearing-in-Odds-Ratio-output-after-recoding-a/m-p/912526#M107223</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2025-11-11T05:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unused levels appearing in Odds Ratio output after recoding a categorical variable in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Unused-levels-appearing-in-Odds-Ratio-output-after-recoding-a/m-p/912737#M107246</link>
      <description>&lt;P&gt;Hi TS — Thanks for your reply.&lt;/P&gt;
&lt;P&gt;quick clarification:&lt;/P&gt;
&lt;P&gt;The original column is character with Value Labels:&lt;/P&gt;
&lt;P&gt;1="Stent", 2="Nephrostomy", 3="Either".&lt;/P&gt;
&lt;P&gt;I created a &lt;STRONG&gt;new&lt;/STRONG&gt; binary column with the nested formula and using 'recode'&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Rows with the original value 3 become "" and I exclude them from the model.&lt;/LI&gt;
&lt;LI&gt;I run &lt;STRONG&gt;logistic regression&lt;/STRONG&gt; on the new column only (event = "1").&lt;BR /&gt;Yet, in the &lt;STRONG&gt;Odds Ratio&lt;/STRONG&gt; report I still see comparisons that reference &lt;STRONG&gt;"Either"&lt;/STRONG&gt; as if a third level exists.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Could Value Labels from the &lt;STRONG&gt;original&lt;/STRONG&gt; column be carried over somehow to the &lt;STRONG&gt;new&lt;/STRONG&gt; column (or into the platform), causing “Either” to appear in the OR report?&lt;BR /&gt;What’s the correct way to ensure the OR output only reflects the two levels and does not list “Either”?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 08:01:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Unused-levels-appearing-in-Odds-Ratio-output-after-recoding-a/m-p/912737#M107246</guid>
      <dc:creator>RMSEElephant848</dc:creator>
      <dc:date>2025-11-12T08:01:54Z</dc:date>
    </item>
  </channel>
</rss>

