<?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: How to create dummy variable in SAS Enterprise Miner? in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-dummy-variable-in-SAS-Enterprise-Miner/m-p/554570#M7786</link>
    <description>&lt;P&gt;You can do this using a Code Node&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/emxndg/64759/HTML/default/viewer.htm#n1t582v60um7p9n1h9d169o0dd8e.htm" target="_blank" rel="noopener"&gt;https://support.sas.com/documentation/cdl/en/emxndg/64759/HTML/default/viewer.htm#n1t582v60um7p9n1h9d169o0dd8e.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if there is an easier way.&lt;/P&gt;</description>
    <pubDate>Sun, 28 Apr 2019 12:13:23 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-04-28T12:13:23Z</dc:date>
    <item>
      <title>How to create dummy variable in SAS Enterprise Miner?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-dummy-variable-in-SAS-Enterprise-Miner/m-p/554454#M7781</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS Enterprise Miner. I have a column "Gender" which has Male and Female. I just wanted to create dummy variable in Miner.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want to assign Male =1 and Female = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can create in SAS guide using Proc class function. But I do not know how to create in SAS Enterprise Miner. Please advise&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhiip&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 05:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-dummy-variable-in-SAS-Enterprise-Miner/m-p/554454#M7781</guid>
      <dc:creator>sdhilip</dc:creator>
      <dc:date>2019-04-27T05:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dummy variable in SAS Enterprise Miner?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-dummy-variable-in-SAS-Enterprise-Miner/m-p/554480#M7782</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id gender $8.;
cards;
1 Female
2 female
3 male
4 f
5 Male
6 mAle
7 eddy
;
data want;
	set have;
	if upcase(substr(gender,1,1))="F" then my_val = 0;
	else if upcase(substr(gender,1,1))="M" then my_val = 1;
	else my_val = .; /* catch the errors */
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Apr 2019 15:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-dummy-variable-in-SAS-Enterprise-Miner/m-p/554480#M7782</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-04-27T15:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dummy variable in SAS Enterprise Miner?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-dummy-variable-in-SAS-Enterprise-Miner/m-p/554511#M7783</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122002"&gt;@VDD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. But how to create this code in SAS Enterprise miner?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 20:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-dummy-variable-in-SAS-Enterprise-Miner/m-p/554511#M7783</guid>
      <dc:creator>sdhilip</dc:creator>
      <dc:date>2019-04-27T20:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dummy variable in SAS Enterprise Miner?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-dummy-variable-in-SAS-Enterprise-Miner/m-p/554523#M7784</link>
      <description>&lt;P&gt;In Enterprise Miner, use the Transform Variable node.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=emref&amp;amp;docsetTarget=n0f3ix7imzm4xrn1773i0xuq47mj.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=emref&amp;amp;docsetTarget=n0f3ix7imzm4xrn1773i0xuq47mj.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 21:46:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-dummy-variable-in-SAS-Enterprise-Miner/m-p/554523#M7784</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-27T21:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dummy variable in SAS Enterprise Miner?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-dummy-variable-in-SAS-Enterprise-Miner/m-p/554543#M7785</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp; Thanks I will try with transform variables. I have one more issue with handling missing values in miner&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have a column Age which has 19% missing value. Also, it has a column name called travelled class. I need to assign mean in place of missing value according to the class. For example, If people travelled in the first class I then I need to assign 37. If it is the second class then it is 29 and 24 if people travelled in third class.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to do in impute but it doesn't have an option to fill three values in the 'Age' column. Any suggestion about how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 01:31:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-dummy-variable-in-SAS-Enterprise-Miner/m-p/554543#M7785</guid>
      <dc:creator>sdhilip</dc:creator>
      <dc:date>2019-04-28T01:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dummy variable in SAS Enterprise Miner?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-dummy-variable-in-SAS-Enterprise-Miner/m-p/554570#M7786</link>
      <description>&lt;P&gt;You can do this using a Code Node&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/emxndg/64759/HTML/default/viewer.htm#n1t582v60um7p9n1h9d169o0dd8e.htm" target="_blank" rel="noopener"&gt;https://support.sas.com/documentation/cdl/en/emxndg/64759/HTML/default/viewer.htm#n1t582v60um7p9n1h9d169o0dd8e.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if there is an easier way.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 12:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-dummy-variable-in-SAS-Enterprise-Miner/m-p/554570#M7786</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-28T12:13:23Z</dc:date>
    </item>
  </channel>
</rss>

