<?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 creation of dummy 2 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy-2/m-p/621636#M182764</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have noticed, there is another column of audit year which looks like below. I want to create a dummy, where year=audit_year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-undefined"&gt;&lt;CODE class="yiv3189631474 yiv3189631474language-sas language-undefined"&gt;Firm ID  Year    Audit_year        Dummy (what I want)&lt;BR /&gt;11      1990       .                   0
11      1991       .                   0 
11      1992   1993                    0
11      1993       .                   1
11      1994   1995                    0
11      1995       .                   1  
11      1996       .                   0
12      2001       .                   0
12      2002   2003                    0
12      2003      .                    1
12      2004      .                    0
12     2005       .                    0
12     2006       .                    0
12     2007       .                    0
12     2008       .                    0
12     2009       .                    0&lt;BR /&gt;&lt;BR /&gt;In&amp;nbsp;the&amp;nbsp;latter&amp;nbsp;table,&amp;nbsp;audit&amp;nbsp;years&amp;nbsp;are&amp;nbsp;one&amp;nbsp;year&amp;nbsp;ahead&amp;nbsp;of&amp;nbsp;YEAR.&amp;nbsp;Please&amp;nbsp;help&amp;nbsp;with&amp;nbsp;respect&amp;nbsp;to&amp;nbsp;the&amp;nbsp;codes&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Amanjot&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Feb 2020 14:35:09 GMT</pubDate>
    <dc:creator>amanjot_42</dc:creator>
    <dc:date>2020-02-01T14:35:09Z</dc:date>
    <item>
      <title>creation of dummy 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy-2/m-p/621636#M182764</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have noticed, there is another column of audit year which looks like below. I want to create a dummy, where year=audit_year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-undefined"&gt;&lt;CODE class="yiv3189631474 yiv3189631474language-sas language-undefined"&gt;Firm ID  Year    Audit_year        Dummy (what I want)&lt;BR /&gt;11      1990       .                   0
11      1991       .                   0 
11      1992   1993                    0
11      1993       .                   1
11      1994   1995                    0
11      1995       .                   1  
11      1996       .                   0
12      2001       .                   0
12      2002   2003                    0
12      2003      .                    1
12      2004      .                    0
12     2005       .                    0
12     2006       .                    0
12     2007       .                    0
12     2008       .                    0
12     2009       .                    0&lt;BR /&gt;&lt;BR /&gt;In&amp;nbsp;the&amp;nbsp;latter&amp;nbsp;table,&amp;nbsp;audit&amp;nbsp;years&amp;nbsp;are&amp;nbsp;one&amp;nbsp;year&amp;nbsp;ahead&amp;nbsp;of&amp;nbsp;YEAR.&amp;nbsp;Please&amp;nbsp;help&amp;nbsp;with&amp;nbsp;respect&amp;nbsp;to&amp;nbsp;the&amp;nbsp;codes&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Amanjot&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2020 14:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy-2/m-p/621636#M182764</guid>
      <dc:creator>amanjot_42</dc:creator>
      <dc:date>2020-02-01T14:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: creation of dummy 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy-2/m-p/621637#M182765</link>
      <description>&lt;P&gt;So you want dummy=1 if Audit_Year is not missing in the previous obs?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2020 14:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-of-dummy-2/m-p/621637#M182765</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-01T14:36:32Z</dc:date>
    </item>
  </channel>
</rss>

