<?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 SAS enterprise miner combine parameter estimates from multiple models in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-enterprise-miner-combine-parameter-estimates-from-multiple/m-p/431763#M6798</link>
    <description>&lt;P&gt;I put this under 'General' because I don't think Enterprise Miner can do this without a SAS Code node:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a HPGLM Node running with one dataset where I get one set of parameter estimates, then I'm using the residuals from that output to be the dependent variable with a different dataset where I will have an additional HPGLM Node.&amp;nbsp; I need to be able to combine the parameter estimates from both models and then be able to use that to score a new/existing dataset.&amp;nbsp; So I need:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; How to combine the PE's from one model into two (not an ensemble model)&lt;/P&gt;&lt;P&gt;2. Use that to score additional data&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd prefer to do this within the capacity of EM but I realize that probably isn't possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing this to validate an existing process from a consultant so I'm not looking for different ways to do the entire modeling process (although I realize there are probably several).&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2018 12:47:37 GMT</pubDate>
    <dc:creator>elsolo21</dc:creator>
    <dc:date>2018-01-29T12:47:37Z</dc:date>
    <item>
      <title>SAS enterprise miner combine parameter estimates from multiple models</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-enterprise-miner-combine-parameter-estimates-from-multiple/m-p/431763#M6798</link>
      <description>&lt;P&gt;I put this under 'General' because I don't think Enterprise Miner can do this without a SAS Code node:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a HPGLM Node running with one dataset where I get one set of parameter estimates, then I'm using the residuals from that output to be the dependent variable with a different dataset where I will have an additional HPGLM Node.&amp;nbsp; I need to be able to combine the parameter estimates from both models and then be able to use that to score a new/existing dataset.&amp;nbsp; So I need:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; How to combine the PE's from one model into two (not an ensemble model)&lt;/P&gt;&lt;P&gt;2. Use that to score additional data&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd prefer to do this within the capacity of EM but I realize that probably isn't possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing this to validate an existing process from a consultant so I'm not looking for different ways to do the entire modeling process (although I realize there are probably several).&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 12:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-enterprise-miner-combine-parameter-estimates-from-multiple/m-p/431763#M6798</guid>
      <dc:creator>elsolo21</dc:creator>
      <dc:date>2018-01-29T12:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS enterprise miner combine parameter estimates from multiple models</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-enterprise-miner-combine-parameter-estimates-from-multiple/m-p/445958#M6809</link>
      <description>&lt;P&gt;Hello elsolo21-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One point that is not clear is how you plan to map each residual of one data set to the observations in a different data set so that you can use the residuals as the dependent variable in the different data set running an additional HPGLM node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another point is how you plan to calculate "combine the parameter estimates".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One interpretation of what you might mean is this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- Connect an HP GLM node to your flow.&amp;nbsp; Run the HP GLM node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- Add a Metadata node after the HP GLM node.&amp;nbsp; &amp;nbsp;Click the Train property.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;In the Variables window that opens, modify the Hide and New Role columns&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;for each of the variables that you want to change.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Change the New Role of your existing target to Rejected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Change the R_&lt;EM&gt;name&lt;/EM&gt;&amp;nbsp;variable (the residual variable) New Role to Target.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- Connect an HP GLM node after the Metadata node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- Run the HP GLM node.&amp;nbsp; It uses the previous residuals as the target.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- After the HP GLM node, connect a SAS Code node.&amp;nbsp; (It does not have to be&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;connected, but if it is connected, then you can run the whole flow from this node,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;for convenience).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Select the Code Editor property.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Enter code like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proc print data=&amp;amp;EM_LIB..hpglm_paramests;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;proc print data=&amp;amp;EM_LIB..hpglm2_paramests;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Close the window.&amp;nbsp; Run the node.&amp;nbsp; View the results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The general name of the HP GLM node data set that contains the parameter estimates is HPGLM&lt;EM&gt;n&lt;/EM&gt;_PARAMESTS, where &lt;EM&gt;n&lt;/EM&gt;, if present, refers to the nth HP GLM node.&amp;nbsp; Look at the Node ID in the property panel of each HP GLM node to verify the name (HPGLM, HPGLM2, and so on).&amp;nbsp; The point is that in that SAS Code node, you can reference those data sets to perform your combination calculation, and create a data set that contains your calculated parameter estimates.&amp;nbsp; It is not clear how you want to apply those parameter estimates to yet another data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above is not what you intend, then what to advise depends on what additional information you can provide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 19:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-enterprise-miner-combine-parameter-estimates-from-multiple/m-p/445958#M6809</guid>
      <dc:creator>MikeStockstill</dc:creator>
      <dc:date>2018-03-15T19:07:05Z</dc:date>
    </item>
  </channel>
</rss>

