<?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: fix for two values in a single cell in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360551#M61006</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/24723"&gt;@Earendur&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Perhaps someone with more relevant experience in the specific field can give you a more concrete answer.&lt;/P&gt;
&lt;P&gt;The way i think of thinks like this when i come across such situations is first i need to estimate the scale of the situation. How many cases have two mutations? are there any of three or more? are there many different combinations? or perhaps a specific one is typical for pairs?&lt;/P&gt;
&lt;P&gt;You can use the text explorer on the mutation column to see the distribution of all individual and combinations.&lt;/P&gt;
&lt;P&gt;Once done with that, you need to make sure to define the unit of analysis correctly and whether the observations are independent, repeated or nested?&lt;/P&gt;
&lt;P&gt;Any answer you may have to any of the questions my help you establish the correct data structure for your analysis.&lt;/P&gt;
&lt;P&gt;Will you be using the mutation as an independent or dependent variable? Could the unit of analysis be the mutation? or has to be the patient? if it is the patient, the second mutation may be another row in the data that may require adjusting for non independent observations. if there are too many mutation categories, perhaps you want to aggregate them in a meaningful way and that will also include the combinations.&lt;/P&gt;
&lt;P&gt;hope this helps at least a little,&lt;/P&gt;
&lt;P&gt;ron&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, 18 Feb 2021 19:55:24 GMT</pubDate>
    <dc:creator>ron_horne</dc:creator>
    <dc:date>2021-02-18T19:55:24Z</dc:date>
    <item>
      <title>fix for two values in a single cell</title>
      <link>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360484#M61002</link>
      <description>&lt;P&gt;What is the best way to fix having two values in the same cell?&lt;/P&gt;&lt;P&gt;Each row is assigned to a specific patient and the columns are genes with possible mutations. The problem is a couple patients have more than one mutation in the same gene, see the attached image. How do I best tell JMP that these are two separate values? I've tried making two rows with the same patient ID but I'm afraid that will cause the program to count other mutations twice. Thank you.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-02-18 at 1.27.19 PM.png" style="width: 477px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30436iDE22BA56F1A8CFC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-02-18 at 1.27.19 PM.png" alt="Screen Shot 2021-02-18 at 1.27.19 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:26:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360484#M61002</guid>
      <dc:creator>Earendur</dc:creator>
      <dc:date>2023-06-10T23:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: fix for two values in a single cell</title>
      <link>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360533#M61003</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/24723"&gt;@Earendur&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You should probably create two columns named something like Mutation 1 and Mutation 2 or Mutation N if there are N such mutations, then you can use a column formula with the formula using&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Word(n, s, delim)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Where n would be the first word for the first mutation and so on, and s is the existing mutation column. The delim that you'd use is ", " since the mutations are separated by a comma and then a space. That should get you what you want.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiedrichSchmidt_0-1613677240070.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30437iF61940AC465B9D5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiedrichSchmidt_0-1613677240070.png" alt="DiedrichSchmidt_0-1613677240070.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: I should also add that the other rows where there's only one mutation will show up only in the first Word(1, s) column and the second in the second and so on. There will be empty rows for Mutation 2 column if there's only one mutation in the gene.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 19:46:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360533#M61003</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2021-02-18T19:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: fix for two values in a single cell</title>
      <link>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360548#M61005</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;&amp;nbsp;, that makes sense.&lt;/P&gt;&lt;P&gt;If I make two columns, how do I tell JMP that I want it to consider Mut1...MutN together when doing analyses?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 19:47:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360548#M61005</guid>
      <dc:creator>Earendur</dc:creator>
      <dc:date>2021-02-18T19:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: fix for two values in a single cell</title>
      <link>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360551#M61006</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/24723"&gt;@Earendur&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Perhaps someone with more relevant experience in the specific field can give you a more concrete answer.&lt;/P&gt;
&lt;P&gt;The way i think of thinks like this when i come across such situations is first i need to estimate the scale of the situation. How many cases have two mutations? are there any of three or more? are there many different combinations? or perhaps a specific one is typical for pairs?&lt;/P&gt;
&lt;P&gt;You can use the text explorer on the mutation column to see the distribution of all individual and combinations.&lt;/P&gt;
&lt;P&gt;Once done with that, you need to make sure to define the unit of analysis correctly and whether the observations are independent, repeated or nested?&lt;/P&gt;
&lt;P&gt;Any answer you may have to any of the questions my help you establish the correct data structure for your analysis.&lt;/P&gt;
&lt;P&gt;Will you be using the mutation as an independent or dependent variable? Could the unit of analysis be the mutation? or has to be the patient? if it is the patient, the second mutation may be another row in the data that may require adjusting for non independent observations. if there are too many mutation categories, perhaps you want to aggregate them in a meaningful way and that will also include the combinations.&lt;/P&gt;
&lt;P&gt;hope this helps at least a little,&lt;/P&gt;
&lt;P&gt;ron&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, 18 Feb 2021 19:55:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360551#M61006</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-02-18T19:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: fix for two values in a single cell</title>
      <link>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360554#M61007</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/24723"&gt;@Earendur&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Are you using standard JMP -- I can't give any advice about JMP Clinical or Genomics, just JMP and JMP Pro with regard to analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But, you can do a standard analysis, see the made up table I created and the Fit Least Squares script. In general, you would cast the mutation columns as X factors and whatever your Y response is and run the platform. Depending on what you're doing, you could do an ANOVA or logistic fit or contingency, etc. You could even do a Scatterplot Matrix (Graph &amp;gt; Scatterplot) with character and numeric columns for visualization purposes, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 19:57:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360554#M61007</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2021-02-18T19:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: fix for two values in a single cell</title>
      <link>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360563#M61008</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using standard JMP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the sample table. The "Fit Group" you made is very similar to what I am trying to achieve, I just need all mutation variants "A-Z" to show up on the same graph, not in two separate graphs.&lt;/P&gt;&lt;P&gt;When I do that with the "Mut" column it thinks "A, B" and "A, D" etc. are single mutations and doesn't assign them into the individual "A" "B" and "D" categories along the x-axis.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 20:17:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360563#M61008</guid>
      <dc:creator>Earendur</dc:creator>
      <dc:date>2021-02-18T20:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: fix for two values in a single cell</title>
      <link>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360602#M61009</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/24723"&gt;@Earendur&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you use the Mut 1 and Mut 2 columns, JMP will never put them in the same graph for the ANOVA analysis. You could however graph them together in Graph Builder. It'll group them, but nest the X-axis in a nice graphical way, but doesn't really do much for a proper analysis that you might be after.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiedrichSchmidt_0-1613680301681.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30438i1A90D8792577125A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiedrichSchmidt_0-1613680301681.png" alt="DiedrichSchmidt_0-1613680301681.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; JMP treats the "A, B", "A, D", and "G, I" mutations as a single "factor" if you do a one-way with the Mut and Y columns. If certain mutations always occur as specific pairs (like with DNA pairs), then you would not want to split out the mutations into separate columns (I'd think), as the unique pairing is what is special, not each one individually so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; JMP is doing the right thing in each case. A one-way/ANOVA might not be the right analysis you're after either -- you might be better off with a logistic analysis or doing a least squares fit to the data. (I added more rows by copy/pasting the Mut column at the end of the table.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiedrichSchmidt_1-1613681080996.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30439i2CBC1E5FEE9CCC4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiedrichSchmidt_1-1613681080996.png" alt="DiedrichSchmidt_1-1613681080996.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; A lot of this comes back to what&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;&amp;nbsp;was saying about how to structure your data for the right kind of analysis that you are trying to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 20:47:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360602#M61009</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2021-02-18T20:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: fix for two values in a single cell</title>
      <link>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360645#M61014</link>
      <description>&lt;P&gt;I think a solution depends on exactly what you want to do with the data but the situation you find yourself in is why JMP has &lt;A href="https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/properties-that-control-how-columns-are-used-in-platforms.shtml#ww504497" target="_self"&gt;Multiple Response&lt;/A&gt;&amp;nbsp;as a &lt;A href="https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/about-modeling-types.shtml#ww425236" target="_self"&gt;Modeling Type&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-02-18_18-59-43.627.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30447iE44C1CDCFA506535/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2021-02-18_18-59-43.627.png" alt="2021-02-18_18-59-43.627.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This choice will treat each comma separated value in the column as an individual value. It works well in Distribution, the Data Filter, Categorical and some other places. It works in Graph Builder in JMP 16.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Multiple Response values frequently come up in surveys where a respondent is given the chance to choose more than one answer to a question (e.g., what magazines do you subscribe to?).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tell us more about how you want to use the values there and maybe we can make more suggestions.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 00:03:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360645#M61014</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2021-02-19T00:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: fix for two values in a single cell</title>
      <link>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360784#M61031</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6878"&gt;@Jeff_Perkinson&lt;/a&gt;&amp;nbsp;that is exactly what I am looking for!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get the multiple response column to work as my X factor in the Fit Y by X? I've tried to read up about multiple response but can't find an answer. Or is there a different platform I should be running?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 15:38:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/360784#M61031</guid>
      <dc:creator>Earendur</dc:creator>
      <dc:date>2021-02-19T15:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: fix for two values in a single cell</title>
      <link>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/361099#M61055</link>
      <description>&lt;P&gt;The feature multiple response was new to me, too, so thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6878"&gt;@Jeff_Perkinson&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;If you type it into scripting index, you will find enclosed script, that can tell how to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think also, it is best to separate features in different columns first, then you are most flexible to investigate on them and combine them as you need (there is also a nice way to combine columns in JMP).&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 );
dt = Open( "$SAMPLE_DATA/Quality Control/Failure3MultipleField.jmp" );
obj = dt &amp;lt;&amp;lt; Categorical(
	X( :clean, :date ),
	Multiple Response( :Failure1, :Failure2, :Failure3 ),
	Frequency Chart( 0 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Feb 2021 09:53:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/fix-for-two-values-in-a-single-cell/m-p/361099#M61055</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2021-02-20T09:53:29Z</dc:date>
    </item>
  </channel>
</rss>

