<?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 create dummy variables, using one as reference in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-dummy-variables-using-one-as-reference/m-p/283592#M57757</link>
    <description>&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;based on what I have learned, to create dummy variables, needs to create n-1 level of variables.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;however, now I need to create as one variable with several levels. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;for example, for agegroup&amp;nbsp;I need to have one as a reference, with each level higher being 1,2,and 3.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;I remember that I used Stata to create similiar dummy variables, but do not know how to do that with SAS.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Can anybody give advice, or provide reference?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Thanks.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2016 19:30:41 GMT</pubDate>
    <dc:creator>Bal23</dc:creator>
    <dc:date>2016-07-11T19:30:41Z</dc:date>
    <item>
      <title>create dummy variables, using one as reference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-dummy-variables-using-one-as-reference/m-p/283592#M57757</link>
      <description>&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;based on what I have learned, to create dummy variables, needs to create n-1 level of variables.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;however, now I need to create as one variable with several levels. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;for example, for agegroup&amp;nbsp;I need to have one as a reference, with each level higher being 1,2,and 3.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;I remember that I used Stata to create similiar dummy variables, but do not know how to do that with SAS.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Can anybody give advice, or provide reference?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Thanks.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 19:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-dummy-variables-using-one-as-reference/m-p/283592#M57757</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-07-11T19:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: create dummy variables, using one as reference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-dummy-variables-using-one-as-reference/m-p/283605#M57760</link>
      <description>&lt;P&gt;Rick Wicklins blog&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2016/02/22/create-dummy-variables-in-sas.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2016/02/22/create-dummy-variables-in-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS UCLA&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.ats.ucla.edu/stat/sas/faq/dumvars.htm" target="_blank"&gt;http://www.ats.ucla.edu/stat/sas/faq/dumvars.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My post - on here ...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-create-dummy-variables-Categorical-Variables/m-p/258702" target="_blank"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-create-dummy-variables-Categorical-Variables/m-p/258702&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Last, but not least, several proc support the CLASS statement where SAS will deal with creating the dummy variables. Some Procs allow you to specify the reference level and parameterization type, but others don't so make sure to read the docs for the proc you're using.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 20:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-dummy-variables-using-one-as-reference/m-p/283605#M57760</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-11T20:07:11Z</dc:date>
    </item>
  </channel>
</rss>

