<?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 Recoding to wide format in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Recoding-to-wide-format/m-p/642549#M30741</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have 'data1' which is the original data. 'data3' is the output which I would like to have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In data1 I would like to split CRI and mets.&lt;/P&gt;&lt;P&gt;CRI to CRI_1, CRI_2, CRI_3, CRI_4, CRI_5 and CRI_other&lt;BR /&gt;If CRI has 1, CRI_1 will be 1, else 0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Similarly, I want to split mets into mets_0001 mets_brain mets_lymph_node mets_lung&lt;BR /&gt;If mets is no, No, or ‘’ then mets_0001=0, else 1&lt;BR /&gt;If you look at mets, we have brain, lymph node, lung&lt;BR /&gt;So, if mets has brain in it, then mets_brain=1, else 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data1 and data3 are attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
    <pubDate>Fri, 24 Apr 2020 12:22:58 GMT</pubDate>
    <dc:creator>sandrube</dc:creator>
    <dc:date>2020-04-24T12:22:58Z</dc:date>
    <item>
      <title>Recoding to wide format</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Recoding-to-wide-format/m-p/642549#M30741</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have 'data1' which is the original data. 'data3' is the output which I would like to have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In data1 I would like to split CRI and mets.&lt;/P&gt;&lt;P&gt;CRI to CRI_1, CRI_2, CRI_3, CRI_4, CRI_5 and CRI_other&lt;BR /&gt;If CRI has 1, CRI_1 will be 1, else 0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Similarly, I want to split mets into mets_0001 mets_brain mets_lymph_node mets_lung&lt;BR /&gt;If mets is no, No, or ‘’ then mets_0001=0, else 1&lt;BR /&gt;If you look at mets, we have brain, lymph node, lung&lt;BR /&gt;So, if mets has brain in it, then mets_brain=1, else 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data1 and data3 are attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 12:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Recoding-to-wide-format/m-p/642549#M30741</guid>
      <dc:creator>sandrube</dc:creator>
      <dc:date>2020-04-24T12:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding to wide format</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Recoding-to-wide-format/m-p/642900#M30773</link>
      <description>&lt;P&gt;Can you show what you tried?&amp;nbsp; Also can you just post simple example input/output datasets as data step code instead of as binary dataset files?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is not clear what is your grouping variable. Or how you are assigning values of CRI to a specific one of the many new varaibles.&amp;nbsp; Are you just doing it by the order they appear? Or is there some additional variable with values like 1,2,3,4 that tell which target variable name to use?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 16:47:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Recoding-to-wide-format/m-p/642900#M30773</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-25T16:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding to wide format</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Recoding-to-wide-format/m-p/642921#M30774</link>
      <description>&lt;P&gt;Look at the %TRANSPOSE macro&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/2419-2018.pdf" target="_blank" rel="noopener"&gt;https://www.sas.com/content/dam/SAS/en_ca/User%20Group%20Presentations/TASS/Tabachneck-FlipTranspose.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 18:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Recoding-to-wide-format/m-p/642921#M30774</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-25T18:00:05Z</dc:date>
    </item>
  </channel>
</rss>

