<?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: code for creating 3 groups based on 2 variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/code-for-creating-3-groups-based-on-2-variables/m-p/865210#M341659</link>
    <description>&lt;P&gt;A lot of people won't download files for security reasons.&amp;nbsp; You will make it much easier for people to help you if you post example data you HAVE as a DATA step with the CARDS statement (with 10-20 records, showing the different scenarios).&amp;nbsp; And also include the data you WANT to generate.&amp;nbsp; Also suggest including the code you have tried, and any problems with your code (wrong result, error message, etc.) .&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 13:51:48 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2023-03-20T13:51:48Z</dc:date>
    <item>
      <title>code for creating 3 groups based on 2 variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/code-for-creating-3-groups-based-on-2-variables/m-p/865181#M341652</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;I wand to construct 3 groups based on 2 variables (F_D and reporting_firm) , by CIK- that is I want to define each cik ID to 1 of the 3 groups:&lt;/P&gt;&lt;P&gt;Group1- every cik that has F_D =1&lt;STRONG&gt; before&lt;/STRONG&gt;&amp;nbsp;reporting_firm=1&lt;/P&gt;&lt;P&gt;Group2- every cik that has&amp;nbsp;F_D =1 and reporting_firm=0 for all cik years&lt;/P&gt;&lt;P&gt;Group-&amp;nbsp;every cik that has&amp;nbsp;F_D =0 &lt;STRONG&gt;before&amp;nbsp;&lt;/STRONG&gt;reporting_firm=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;HB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 12:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/code-for-creating-3-groups-based-on-2-variables/m-p/865181#M341652</guid>
      <dc:creator>HEB1</dc:creator>
      <dc:date>2023-03-20T12:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: code for creating 3 groups based on 2 variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/code-for-creating-3-groups-based-on-2-variables/m-p/865210#M341659</link>
      <description>&lt;P&gt;A lot of people won't download files for security reasons.&amp;nbsp; You will make it much easier for people to help you if you post example data you HAVE as a DATA step with the CARDS statement (with 10-20 records, showing the different scenarios).&amp;nbsp; And also include the data you WANT to generate.&amp;nbsp; Also suggest including the code you have tried, and any problems with your code (wrong result, error message, etc.) .&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 13:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/code-for-creating-3-groups-based-on-2-variables/m-p/865210#M341659</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-03-20T13:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: code for creating 3 groups based on 2 variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/code-for-creating-3-groups-based-on-2-variables/m-p/865214#M341662</link>
      <description>&lt;P&gt;What do you want for&lt;/P&gt;
&lt;P&gt;Group-&amp;nbsp;every cik that has&amp;nbsp;F_D =0 &lt;STRONG&gt;never &lt;/STRONG&gt;reporting_firm=1?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second reason for showing small example of the data is that you can manually show a second set with the desired result. I'm not sure what you expect a result to look like.&lt;/P&gt;
&lt;P&gt;is your "group" variable supposed to be numeric or character? Actually say "Group1"?&amp;nbsp; What is the name of the variable to be constructed&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 14:18:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/code-for-creating-3-groups-based-on-2-variables/m-p/865214#M341662</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-20T14:18:42Z</dc:date>
    </item>
  </channel>
</rss>

