<?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: how to pivot data in enterprise miner? in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/how-to-pivot-data-in-enterprise-miner/m-p/215623#M3117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Eminer is doing predictive analytics on prepared data. Preparing data is better to do with Eguide running SAS-base code.&amp;nbsp; Yes you could define basic code nodes in Eminer as you could bake eggs on an Ipad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2015 18:42:05 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2015-05-15T18:42:05Z</dc:date>
    <item>
      <title>how to pivot data in enterprise miner?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/how-to-pivot-data-in-enterprise-miner/m-p/215622#M3116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;im new to enterprise miner;&lt;/P&gt;&lt;P&gt;id like to know if this is posible to achieve the following in enterprise miner:&lt;/P&gt;&lt;P&gt;source data format:&lt;/P&gt;&lt;P&gt;policy_id&amp;nbsp; policy_type customer_id&lt;/P&gt;&lt;P&gt;1 house 1&lt;/P&gt;&lt;P&gt;2 vehicle 1&lt;/P&gt;&lt;P&gt;3 life 1&lt;/P&gt;&lt;P&gt;4 house 2&lt;/P&gt;&lt;P&gt;5 vehicle 2&lt;/P&gt;&lt;P&gt;6 life 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;desired layout&lt;/P&gt;&lt;P&gt;customer_id no_of_policies_house no_of_policies_vehicle no_of_policices_life&lt;/P&gt;&lt;P&gt;1 1 1 1&lt;/P&gt;&lt;P&gt;2 1 1 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;if yes, how can this be achieved?&lt;/P&gt;&lt;P&gt;i apprieciate any tips&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 15:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/how-to-pivot-data-in-enterprise-miner/m-p/215622#M3116</guid>
      <dc:creator>userMB</dc:creator>
      <dc:date>2015-05-15T15:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to pivot data in enterprise miner?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/how-to-pivot-data-in-enterprise-miner/m-p/215623#M3117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Eminer is doing predictive analytics on prepared data. Preparing data is better to do with Eguide running SAS-base code.&amp;nbsp; Yes you could define basic code nodes in Eminer as you could bake eggs on an Ipad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 18:42:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/how-to-pivot-data-in-enterprise-miner/m-p/215623#M3117</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-05-15T18:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to pivot data in enterprise miner?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/how-to-pivot-data-in-enterprise-miner/m-p/215624#M3118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey MB,&lt;/P&gt;&lt;P&gt;I don't think there is a way to transpose your data automatically in Enterprise Miner. Same as Jaap, I would prefer to do it in base SAS or Enterprise Guide.&lt;/P&gt;&lt;P&gt;How complex is this SAS transpose program that we need to write? Do you have a finite number of policy_type (house, vehicle, life), or your SAS program has to catch that? Are your records in order (by customer id)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the transposed data set you want I would use a SAS data step with arrays.&lt;/P&gt;&lt;P&gt;This paper will get you started:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://support.sas.com/resources/papers/proceedings13/082-2013.pdf"&gt;Sharpening your skills in reshaping data: proc transpose vs array processing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you run into trouble, the guys on this community are the bomb!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A _jive_internal="true" href="https://communities.sas.com/community/support-communities/sas_macro_facility_data_step_and_sas_language_elements"&gt;SAS support community: SAS Macro, Data Step, and SAS Language Elements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This book is a fantastic read to start doing complex, efficient SAS programs in no time.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.sas.com/store/prodBK_59224_en.html"&gt;Carpenter's Complete Guide to the SAS Macro Language&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;-Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 14:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/how-to-pivot-data-in-enterprise-miner/m-p/215624#M3118</guid>
      <dc:creator>M_Maldonado</dc:creator>
      <dc:date>2015-05-18T14:55:47Z</dc:date>
    </item>
  </channel>
</rss>

