<?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: Sas Enterprise Miner: Multiple/Nested Grouping Nodes in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Sas-Enterprise-Miner-Multiple-Nested-Grouping-Nodes/m-p/864538#M10454</link>
    <description>&lt;P&gt;If I understand your scenario correctly, a&amp;nbsp;single Group Processing node should be sufficient to do what you are asking.&amp;nbsp; I will use a simple example that uses one of our demo data set (SAMPSIO.HMEQ)&amp;nbsp; to explain:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider the simple &lt;EM&gt;diagram/flow&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dom_Latour_2-1678972951665.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81634iDBB602B2B7A1956F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dom_Latour_2-1678972951665.png" alt="Dom_Latour_2-1678972951665.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The metadata in the Variables tab of the IDS node contains 2 target variables: BAD and VALUE and one segment variable REASON.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dom_Latour_6-1678974161186.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81641i59E2274C4179B7D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dom_Latour_6-1678974161186.png" alt="Dom_Latour_6-1678974161186.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In the Start Groups node, set the Mode property, under the General Group, to "&lt;EM&gt;Stratify&lt;/EM&gt;" and the Target Group property to "&lt;EM&gt;Yes&lt;/EM&gt;".&amp;nbsp; This indicates to the Start Groups node that it should loop over all target/group combinations.&amp;nbsp; A segment variable is considered, by default, to be a stratification variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dom_Latour_3-1678973188744.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81636i9C59767CC8A31DF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dom_Latour_3-1678973188744.png" alt="Dom_Latour_3-1678973188744.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you run from the End Groups node (or one of its successors in the flow), the Decision tree node will run in this example, 6 times, because there are two targets, BAD and VALUE, specified and the segment variable has 3 strata (&lt;EM&gt;blank&lt;/EM&gt;, &lt;EM&gt;DebtCon&lt;/EM&gt;, &lt;EM&gt;HomeImp&lt;/EM&gt;).&amp;nbsp; You can see this when the flow has completed and you examine the results of the End Groups node.&amp;nbsp; It contains among others:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a Summary report of each loop, which show that indeed every target was modeled for each stratum&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dom_Latour_7-1678974365593.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81642iD8D8602BEC5D3F69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dom_Latour_7-1678974365593.png" alt="Dom_Latour_7-1678974365593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Under the View menu, you can access various results for each loop and each target&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dom_Latour_5-1678973640328.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81638i12ED5553E235A437/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dom_Latour_5-1678973640328.png" alt="Dom_Latour_5-1678973640328.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Dom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 13:54:13 GMT</pubDate>
    <dc:creator>Dom_Latour</dc:creator>
    <dc:date>2023-03-16T13:54:13Z</dc:date>
    <item>
      <title>Sas Enterprise Miner: Multiple/Nested Grouping Nodes</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Sas-Enterprise-Miner-Multiple-Nested-Grouping-Nodes/m-p/863289#M10452</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to analyse my dataset by groups in the SAS Enterprise Miner. I would like to do separately in every stratum of my dataset&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;(identified by a segmenting variable) and at the same time for every target variable that I have (I have many binary target variables in my dataset). In other words I want to build separate models for every target variable (out of many) in every stratum in one flow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SAS EM won’t let me use two or more nested Start/END Group Processing in one flow (I tried one start group node set to “Stratify” and followed by another set to “Target” in the Mode property&amp;nbsp; + two END Group Nodes at the end; screenshot below)&lt;/P&gt;&lt;P&gt;Could you provide a hint how to do it properly.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DarekB_0-1678395003731.png" style="width: 794px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81279i51CEA1479AFDDACC/image-dimensions/794x131?v=v2" width="794" height="131" role="button" title="DarekB_0-1678395003731.png" alt="DarekB_0-1678395003731.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;segment&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;target1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;target2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;target3&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;input1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;input2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;input3&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;3.546002385&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0.500653822&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2.000653822&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P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t;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;3.986324948&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0.000460164&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0.500460164&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 09 Mar 2023 20:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Sas-Enterprise-Miner-Multiple-Nested-Grouping-Nodes/m-p/863289#M10452</guid>
      <dc:creator>DarekB</dc:creator>
      <dc:date>2023-03-09T20:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Enterprise Miner: Multiple/Nested Grouping Nodes</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Sas-Enterprise-Miner-Multiple-Nested-Grouping-Nodes/m-p/864538#M10454</link>
      <description>&lt;P&gt;If I understand your scenario correctly, a&amp;nbsp;single Group Processing node should be sufficient to do what you are asking.&amp;nbsp; I will use a simple example that uses one of our demo data set (SAMPSIO.HMEQ)&amp;nbsp; to explain:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider the simple &lt;EM&gt;diagram/flow&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dom_Latour_2-1678972951665.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81634iDBB602B2B7A1956F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dom_Latour_2-1678972951665.png" alt="Dom_Latour_2-1678972951665.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The metadata in the Variables tab of the IDS node contains 2 target variables: BAD and VALUE and one segment variable REASON.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dom_Latour_6-1678974161186.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81641i59E2274C4179B7D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dom_Latour_6-1678974161186.png" alt="Dom_Latour_6-1678974161186.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In the Start Groups node, set the Mode property, under the General Group, to "&lt;EM&gt;Stratify&lt;/EM&gt;" and the Target Group property to "&lt;EM&gt;Yes&lt;/EM&gt;".&amp;nbsp; This indicates to the Start Groups node that it should loop over all target/group combinations.&amp;nbsp; A segment variable is considered, by default, to be a stratification variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dom_Latour_3-1678973188744.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81636i9C59767CC8A31DF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dom_Latour_3-1678973188744.png" alt="Dom_Latour_3-1678973188744.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you run from the End Groups node (or one of its successors in the flow), the Decision tree node will run in this example, 6 times, because there are two targets, BAD and VALUE, specified and the segment variable has 3 strata (&lt;EM&gt;blank&lt;/EM&gt;, &lt;EM&gt;DebtCon&lt;/EM&gt;, &lt;EM&gt;HomeImp&lt;/EM&gt;).&amp;nbsp; You can see this when the flow has completed and you examine the results of the End Groups node.&amp;nbsp; It contains among others:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a Summary report of each loop, which show that indeed every target was modeled for each stratum&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dom_Latour_7-1678974365593.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81642iD8D8602BEC5D3F69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dom_Latour_7-1678974365593.png" alt="Dom_Latour_7-1678974365593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Under the View menu, you can access various results for each loop and each target&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dom_Latour_5-1678973640328.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81638i12ED5553E235A437/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dom_Latour_5-1678973640328.png" alt="Dom_Latour_5-1678973640328.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Dom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 13:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Sas-Enterprise-Miner-Multiple-Nested-Grouping-Nodes/m-p/864538#M10454</guid>
      <dc:creator>Dom_Latour</dc:creator>
      <dc:date>2023-03-16T13:54:13Z</dc:date>
    </item>
  </channel>
</rss>

