<?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 Need help with simple pattern discovery in Enterprise Miner in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Need-help-with-simple-pattern-discovery-in-Enterprise-Miner/m-p/291085#M4357</link>
    <description>&lt;P&gt;I am having trouble performing a “version” of pattern discovery with SAS Enterprise Miner.&amp;nbsp; I have a data set with the following basic structure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4526iCAA0D77F9C9B0511/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="Data.png" title="Data.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The customer (&lt;STRONG&gt;ID&lt;/STRONG&gt;) has 14 days (&lt;STRONG&gt;Sequence&lt;/STRONG&gt;) to perform one of 3 events X, Y, or Z (&lt;STRONG&gt;Event&lt;/STRONG&gt;), where one of the three events &lt;EM&gt;must&lt;/EM&gt; be performed on each sequence.&amp;nbsp; I would simply like to figure out the most likely outcomes, but i think there are too many combinations to code this out in base sas.&amp;nbsp; I’m hoping for a table that might look like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4528i3BEDB68D6FF290BC/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Table.png" title="Table.png" /&gt;&lt;/P&gt;&lt;P&gt;(as in, 15% of the observations follow the first one, 12% of observations follow the second, etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m somewhat inexperienced with SAS EM and its options (I do most of my work in EG).&amp;nbsp; I’ve been trying to figure this out with the Association Node (sequence option) and the Path Analysis Node, but they seem to produce results that are not quite what I need, which is to keep event occurrence strictly ordered 1 thru 14 (the results from these nodes don’t keep ‘chain item 1’ on sequence 1, ‘chain item 2’ on sequence 2, etc. - and the max chain items is only 10).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2016 21:21:27 GMT</pubDate>
    <dc:creator>wellj049</dc:creator>
    <dc:date>2016-08-11T21:21:27Z</dc:date>
    <item>
      <title>Need help with simple pattern discovery in Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Need-help-with-simple-pattern-discovery-in-Enterprise-Miner/m-p/291085#M4357</link>
      <description>&lt;P&gt;I am having trouble performing a “version” of pattern discovery with SAS Enterprise Miner.&amp;nbsp; I have a data set with the following basic structure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4526iCAA0D77F9C9B0511/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="Data.png" title="Data.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The customer (&lt;STRONG&gt;ID&lt;/STRONG&gt;) has 14 days (&lt;STRONG&gt;Sequence&lt;/STRONG&gt;) to perform one of 3 events X, Y, or Z (&lt;STRONG&gt;Event&lt;/STRONG&gt;), where one of the three events &lt;EM&gt;must&lt;/EM&gt; be performed on each sequence.&amp;nbsp; I would simply like to figure out the most likely outcomes, but i think there are too many combinations to code this out in base sas.&amp;nbsp; I’m hoping for a table that might look like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4528i3BEDB68D6FF290BC/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Table.png" title="Table.png" /&gt;&lt;/P&gt;&lt;P&gt;(as in, 15% of the observations follow the first one, 12% of observations follow the second, etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m somewhat inexperienced with SAS EM and its options (I do most of my work in EG).&amp;nbsp; I’ve been trying to figure this out with the Association Node (sequence option) and the Path Analysis Node, but they seem to produce results that are not quite what I need, which is to keep event occurrence strictly ordered 1 thru 14 (the results from these nodes don’t keep ‘chain item 1’ on sequence 1, ‘chain item 2’ on sequence 2, etc. - and the max chain items is only 10).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 21:21:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Need-help-with-simple-pattern-discovery-in-Enterprise-Miner/m-p/291085#M4357</guid>
      <dc:creator>wellj049</dc:creator>
      <dc:date>2016-08-11T21:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with simple pattern discovery in Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Need-help-with-simple-pattern-discovery-in-Enterprise-Miner/m-p/291087#M4358</link>
      <description>&lt;P&gt;If I understand what you want correctly, which I may not, you could do this without EM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Transpose your data (Task) from long to wide.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a calculated column that is the concatenation of all events, ie Catx(of event1-event14)&lt;/P&gt;
&lt;P&gt;Then run a frequency on that variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to keep your variables separate you can run a freq like below. You may need to play around with the freq options to get your exact percent calculation or do it in a second step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=flipped;
table event1*event2*event3*...Event14 / LIST OUTPCT;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Aug 2016 21:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Need-help-with-simple-pattern-discovery-in-Enterprise-Miner/m-p/291087#M4358</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-11T21:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with simple pattern discovery in Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Need-help-with-simple-pattern-discovery-in-Enterprise-Miner/m-p/291390#M4359</link>
      <description>&lt;P&gt;I had a strong feeling I was overcomplicating things.&amp;nbsp; Then Reeza came along and proved it.&amp;nbsp;&amp;nbsp; Your suggestion works perfectly.&amp;nbsp; Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 18:37:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Need-help-with-simple-pattern-discovery-in-Enterprise-Miner/m-p/291390#M4359</guid>
      <dc:creator>wellj049</dc:creator>
      <dc:date>2016-08-12T18:37:51Z</dc:date>
    </item>
  </channel>
</rss>

