<?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 code node (PLS question) in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/573081#M7892</link>
    <description>&lt;P&gt;thanks, that helps. Would you please suggest that how to append all of prediction results with the existing dataset? which function should I use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2019 13:19:19 GMT</pubDate>
    <dc:creator>Jonison</dc:creator>
    <dc:date>2019-07-12T13:19:19Z</dc:date>
    <item>
      <title>SAS code node (PLS question)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/572658#M7884</link>
      <description>&lt;P&gt;Hello, this gives me a headache&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to do multiple responses PLS, and use sas code node for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before 'sas code node' it is a 'transform variables' which includes all of specific data treatment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I edit the code editor, I can see all of data is within the .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I type below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%global xvars yvars;&lt;BR /&gt;%let xvars = BLK1&amp;nbsp;BLK2 BLK3 BLK4 BLK5....; (Long variable list)&amp;nbsp;&lt;BR /&gt;%let yvars = y1 y2 y3 y4; (BLK1.... and y1... are all included in EM_IMPORT DATA.&lt;BR /&gt;PROC PLS CV=ONE MISSING=AVG METHOD=PLS NOCENTER NOSCALE NOCVSTDIZE NFAC=6 DATA=&amp;amp;EM_IMPORT_DATA;&lt;BR /&gt;model yvars = xvars;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;in the log, it shows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Variable YVARS not found.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;7848 run;&lt;/P&gt;&lt;P&gt;ERROR: No MODEL specified&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to define the variables included in EM_IMPORT DATA as xvars and yvars due to the number of vairables to be used by PLS algorithm,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your kind help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 10:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/572658#M7884</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2019-07-11T10:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code node (PLS question)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/572666#M7885</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model &amp;amp;yvars=&amp;amp;xvars;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Although no macros are needed here, unless the problem is much more complicated than you describe (which may be the case). Code with no macros:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model y1 y2 y3 y4 = BLK1 BLK2 BLK3 BLK4 BLK5....; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You may also need a CLASS statement if any of your X-variables are categorical.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 12:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/572666#M7885</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-11T12:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code node (PLS question)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/572794#M7886</link>
      <description>&lt;P&gt;Thanks for your kind reply. That works.&lt;/P&gt;&lt;P&gt;can I ask how to use the OUTPUT statement?&lt;/P&gt;&lt;P&gt;The help document is a bit confusing to me, how can I output predict y1, y2, y3, y4 separately and passing this to next node?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:41:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/572794#M7886</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2019-07-11T15:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code node (PLS question)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/572796#M7887</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277798"&gt;@Jonison&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for your kind reply. That works.&lt;/P&gt;
&lt;P&gt;can I ask how to use the OUTPUT statement?&lt;/P&gt;
&lt;P&gt;The help document is a bit confusing to me, how can I output predict y1, y2, y3, y4 separately and passing this to next node?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;output out=datasetname predicted=pred_y1 pred_y2 pred_y3 pred_y4;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/572796#M7887</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-11T15:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code node (PLS question)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/573019#M7890</link>
      <description>&lt;P&gt;thanks for your kind help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I typed 'output out=&amp;amp;EM_EXPORT_TRAIN predicted=pred_STD_FP_1_5 pred_STD_FP_3_4 pred_STD_SX_1_5 pred_STD_SX_3_4 pred_STD_FP_SX_FPM_Ratio;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and when run code: shows ERROR: Unable to create EMWS2.EMCODE_TRAIN.DATA because EMWS2.EMCODE_TRAIN.VIEW already exists&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I would like to make predicted results shown in the emport table of this node. How could I do that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 09:35:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/573019#M7890</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2019-07-12T09:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code node (PLS question)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/573053#M7891</link>
      <description>&lt;P&gt;In a SAS library, you can't have a view and a data set with the same name. Since you already have a view by that name, you have to name the data set something else, or first delete the view.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 12:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/573053#M7891</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-12T12:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code node (PLS question)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/573081#M7892</link>
      <description>&lt;P&gt;thanks, that helps. Would you please suggest that how to append all of prediction results with the existing dataset? which function should I use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 13:19:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/573081#M7892</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2019-07-12T13:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code node (PLS question)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/573099#M7893</link>
      <description>&lt;P&gt;PROC APPEND&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 13:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-code-node-PLS-question/m-p/573099#M7893</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-12T13:55:48Z</dc:date>
    </item>
  </channel>
</rss>

