<?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: Dummy Variable Creation Macro in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433587#M6664</link>
    <description>&lt;P&gt;Note that SAS will do this automatically in some PROCS via the CLASS statement, otherwise, I find this covers most ways to create dummy variables:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-dummy-variables-Categorical-Variables/ta-p/308484" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-dummy-variables-Categorical-Variables/ta-p/308484&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a multitude of ways to do this.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2018 16:04:55 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-02-02T16:04:55Z</dc:date>
    <item>
      <title>Dummy Variable Creation Macro</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433387#M6646</link>
      <description>&lt;P&gt;Hi, I am looking for a macro which needs to do some tasks as mentioned below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should create dummy variables like we have "Dummies" package in R which will create dummy variables for all categorical variables based on some conditions like in some&amp;nbsp;variables we have categories like more than 20 or 30 etc. and for those type of variables it should skip&amp;nbsp;and drop original variables after creating dummy variables....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone have this macro, please share with us...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 05:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433387#M6646</guid>
      <dc:creator>dsp1</dc:creator>
      <dc:date>2018-02-02T05:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy Variable Creation Macro</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433391#M6647</link>
      <description>&lt;P&gt;I don't know R ... maybe posting what you have and what you want as datasets will make it easier to help you. And also post the code you have already written to solve your problem.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 06:04:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433391#M6647</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-02-02T06:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy Variable Creation Macro</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433413#M6652</link>
      <description>&lt;P&gt;In SAS you probably want to use a CLASS-statement. It handles categorical data for proc reg, logistic, glm ..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And note that R and SAS are 2 different programming languages. In SAS you can add those statements either to a proc, or you need a data-step to create them yourself.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 09:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433413#M6652</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2018-02-02T09:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy Variable Creation Macro</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433415#M6653</link>
      <description>&lt;P&gt;This such a simple task that a macro would be overkill, both in terms of writing and in terms of using it.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 07:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433415#M6653</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-02T07:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy Variable Creation Macro</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433431#M6656</link>
      <description>&lt;P&gt;And what have you done?&amp;nbsp; As in your previous posts, this is not a contract work request forum, it is a Q&amp;amp;A forum.&amp;nbsp; If you have specific questions, then pose the question using descriptive text, with example test data in the form of a datastep, and what you want to see out.&amp;nbsp; Post code that you have tried, and logs of any errors/warnings.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 09:12:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433431#M6656</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-02T09:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy Variable Creation Macro</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433508#M6660</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/02/24/create-a-design-matrix-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/02/24/create-a-design-matrix-in-sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 12:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433508#M6660</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-02-02T12:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy Variable Creation Macro</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433516#M6663</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/188792"&gt;@dsp1&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I am looking for a macro which needs to do some tasks as mentioned below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should create dummy variables like we have "Dummies" package in R which will create dummy variables for all categorical variables based on some conditions like in some&amp;nbsp;variables we have categories like more than 20 or 30 etc. and for those type of variables it should skip&amp;nbsp;and drop original variables after creating dummy variables....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If anyone have this macro, please share with us...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/188792"&gt;@dsp1&lt;/a&gt;&amp;nbsp;you could save yourself a lot of time by just doing searches here in this forum or in Google.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a long thread that covers lots of good information about creating dummy variables.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-dummy-variables-How-can-i-change-my-code/m-p/404308#M66929" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/How-can-i-create-dummy-variables-How-can-i-change-my-code/m-p/404308#M66929&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 13:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433516#M6663</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-02-02T13:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dummy Variable Creation Macro</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433587#M6664</link>
      <description>&lt;P&gt;Note that SAS will do this automatically in some PROCS via the CLASS statement, otherwise, I find this covers most ways to create dummy variables:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-dummy-variables-Categorical-Variables/ta-p/308484" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-dummy-variables-Categorical-Variables/ta-p/308484&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a multitude of ways to do this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 16:04:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Dummy-Variable-Creation-Macro/m-p/433587#M6664</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-02T16:04:55Z</dc:date>
    </item>
  </channel>
</rss>

