<?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: Combining values of multiple columns into one column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Combining-values-of-multiple-columns-into-one-column/m-p/7805#M7799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to re-code the 1's into names, you would make new columns that have the re-coded values for yourself, then simply merge all the data together using cat, ||, etc.. There are many ways to concatenate in sas..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example, see the (untested) code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data answer(drop=Variable1new--Variable4New);&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;if Variable1=1 then Variable1New="YOUR TEXT";&lt;/P&gt;&lt;P&gt;if Variable2=1 then Variable2New="YOUR TEXT";&lt;/P&gt;&lt;P&gt;if Variable3=1 then Variable3New="YOUR TEXT";&lt;/P&gt;&lt;P&gt;if Variable4=1 then Variable4New="YOUR TEXT";&lt;/P&gt;&lt;P&gt;FinalVariable=Catx(',', of Variable1New--Variable4New);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look into the catx function since I don't have it memorized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2013 20:20:28 GMT</pubDate>
    <dc:creator>anotherdream</dc:creator>
    <dc:date>2013-12-02T20:20:28Z</dc:date>
    <item>
      <title>Combining values of multiple columns into one column</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-values-of-multiple-columns-into-one-column/m-p/7803#M7797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data set where I would like to merge four columns&amp;nbsp; into one column, so that&lt;/P&gt;&lt;P&gt;the values of the four columns are displayed in one column. However, I have no clue how to do that.&lt;/P&gt;&lt;P&gt;I have four conditions, which respondents have been exposed to depending on the day of the month&lt;/P&gt;&lt;P&gt;they are born. If a respondent has been exposed to Condition 1 it shows a 1 and the same for&lt;/P&gt;&lt;P&gt;conditions 2,3, and 4. How can I easily recode the 1's of each column into names and then merge the&lt;/P&gt;&lt;P&gt;four columns into one column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4584_Screen Shot 2013-11-30 at 11.53.23.png" style="width: 398px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/282i539B9E9BDD596356/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4584_Screen Shot 2013-11-30 at 11.53.23.png" alt="4584_Screen Shot 2013-11-30 at 11.53.23.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 20:29:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-values-of-multiple-columns-into-one-column/m-p/7803#M7797</guid>
      <dc:creator>nikolaj</dc:creator>
      <dc:date>2016-10-18T20:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Combining values of multiple columns into one column</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-values-of-multiple-columns-into-one-column/m-p/7804#M7798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Combining columns is not hard - you can use a column formula.&amp;nbsp; However I'm having difficulty understanding exactly what you want to do.&amp;nbsp; Can you provide a little more data, and what you want the final output to look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 14:53:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-values-of-multiple-columns-into-one-column/m-p/7804#M7798</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2013-12-02T14:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Combining values of multiple columns into one column</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-values-of-multiple-columns-into-one-column/m-p/7805#M7799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to re-code the 1's into names, you would make new columns that have the re-coded values for yourself, then simply merge all the data together using cat, ||, etc.. There are many ways to concatenate in sas..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example, see the (untested) code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data answer(drop=Variable1new--Variable4New);&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;if Variable1=1 then Variable1New="YOUR TEXT";&lt;/P&gt;&lt;P&gt;if Variable2=1 then Variable2New="YOUR TEXT";&lt;/P&gt;&lt;P&gt;if Variable3=1 then Variable3New="YOUR TEXT";&lt;/P&gt;&lt;P&gt;if Variable4=1 then Variable4New="YOUR TEXT";&lt;/P&gt;&lt;P&gt;FinalVariable=Catx(',', of Variable1New--Variable4New);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look into the catx function since I don't have it memorized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 20:20:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-values-of-multiple-columns-into-one-column/m-p/7805#M7799</guid>
      <dc:creator>anotherdream</dc:creator>
      <dc:date>2013-12-02T20:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Combining values of multiple columns into one column</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-values-of-multiple-columns-into-one-column/m-p/7806#M7800</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;How can I easily recode the 1's of each column into names and then merge the&amp;nbsp;four columns into one column?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You've asked a two-part question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) How do I recode the 1's into names? For this you can use &lt;A href="https://www.jmp.com/support/help/13/Recode_Data.shtml#791384" target="_blank"&gt;Recode&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DxcP476FSnQE&amp;amp;type=text%2Fhtml&amp;amp;schema=google&amp;amp;display_name=YouTube&amp;amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FxcP476FSnQE" width="400" height="225" scrolling="no" title="YouTube embed" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) How do I merge four columns into one column? For this you need a &lt;A href="http://www.jmp.com/support/help/13-2/Formula_Editor.shtml#" target="_blank"&gt;Formula&lt;/A&gt;, using the &lt;A href="http://www.jmp.com/support/help/13-2/Character_Functions.shtml#193150" target="_blank"&gt;Concat&lt;/A&gt; function or operator.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMPScreenSnapz120.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7440i6F5D5C4FCD130302/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMPScreenSnapz120.png" alt="JMPScreenSnapz120.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 18:26:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-values-of-multiple-columns-into-one-column/m-p/7806#M7800</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-09-07T18:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Combining values of multiple columns into one column</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-values-of-multiple-columns-into-one-column/m-p/7807#M7801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your responses. I figured it out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question: When I run a test for variance homogeneity I get a Welch's test after the levene's test, brown-forsythe etc. Can someone explain what exactly the Welch's test shows?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Dec 2013 17:13:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-values-of-multiple-columns-into-one-column/m-p/7807#M7801</guid>
      <dc:creator>nikolaj</dc:creator>
      <dc:date>2013-12-14T17:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Combining values of multiple columns into one column</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-values-of-multiple-columns-into-one-column/m-p/281033#M54429</link>
      <description>&lt;P&gt;Welch is a t-test for instances where the homogeneity of variance assumption is violated. most ppl would prefer to use a non-parametric test for this.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 10:24:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-values-of-multiple-columns-into-one-column/m-p/281033#M54429</guid>
      <dc:creator>ezorlo</dc:creator>
      <dc:date>2020-07-22T10:24:01Z</dc:date>
    </item>
  </channel>
</rss>

