<?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: Processing by Group in Enterprise Miner in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Processing-by-Group-in-Enterprise-Miner/m-p/459438#M6953</link>
    <description>&lt;P&gt;I'm sorry to hear the group processing is so slow - not sure why that would be.&amp;nbsp; But you should be able to fairly easily compare your PROC REG model using a SAS Code node in EM and feed that into a Model Comparison node to compare with your other EM models.&lt;/P&gt;
&lt;P&gt;Just be sure to include this line in your PROC REG call so it generates the needed flow score code to enable the assessment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;code file="&amp;amp;EM_FILE_EMFLOWSCORECODE";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And set&amp;nbsp;the Tool Type property for the SAS Code node to "Model".&amp;nbsp; Then you can connect that to a Model Comparison node along with your other EM models.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is some sample code I used in SAS Code node (assuming you have an interval target):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=&amp;amp;em_import_data out=temp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;by &amp;lt;Your-by-var&amp;gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc reg data=temp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;model %em_target = %em_interval_input;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;by &lt;SPAN&gt;&amp;lt;Your-by-var&amp;gt;&lt;/SPAN&gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;code file="&amp;amp;EM_FILE_EMFLOWSCORECODE";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 May 2018 17:40:02 GMT</pubDate>
    <dc:creator>WendyCzika</dc:creator>
    <dc:date>2018-05-02T17:40:02Z</dc:date>
    <item>
      <title>Processing by Group in Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Processing-by-Group-in-Enterprise-Miner/m-p/455758#M6909</link>
      <description>&lt;P&gt;I have a proc reg that I run in EG. In that proc reg, I use a BY statement to generate coefficient estimates that are used to score additional data.&amp;nbsp; That proc reg runs very quickly either in EM (in a code node) or EG. I want to replicate that functionality in EM so I can compare that model to other models in EM. When I try and replicate that process using Start Groups &amp;amp; End Groups, the amount of time required to loop through my Stratas is prohibitive (read as ridiculously slowwwww). Is there another way to run by processing in EM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 20:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Processing-by-Group-in-Enterprise-Miner/m-p/455758#M6909</guid>
      <dc:creator>JeffN</dc:creator>
      <dc:date>2018-04-19T20:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Processing by Group in Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Processing-by-Group-in-Enterprise-Miner/m-p/459438#M6953</link>
      <description>&lt;P&gt;I'm sorry to hear the group processing is so slow - not sure why that would be.&amp;nbsp; But you should be able to fairly easily compare your PROC REG model using a SAS Code node in EM and feed that into a Model Comparison node to compare with your other EM models.&lt;/P&gt;
&lt;P&gt;Just be sure to include this line in your PROC REG call so it generates the needed flow score code to enable the assessment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;code file="&amp;amp;EM_FILE_EMFLOWSCORECODE";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And set&amp;nbsp;the Tool Type property for the SAS Code node to "Model".&amp;nbsp; Then you can connect that to a Model Comparison node along with your other EM models.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is some sample code I used in SAS Code node (assuming you have an interval target):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=&amp;amp;em_import_data out=temp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;by &amp;lt;Your-by-var&amp;gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc reg data=temp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;model %em_target = %em_interval_input;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;by &lt;SPAN&gt;&amp;lt;Your-by-var&amp;gt;&lt;/SPAN&gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;code file="&amp;amp;EM_FILE_EMFLOWSCORECODE";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 17:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Processing-by-Group-in-Enterprise-Miner/m-p/459438#M6953</guid>
      <dc:creator>WendyCzika</dc:creator>
      <dc:date>2018-05-02T17:40:02Z</dc:date>
    </item>
  </channel>
</rss>

