<?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: Filtering data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Filtering-data/m-p/862259#M340575</link>
    <description>&lt;P&gt;If you want to count the number of not taken drugs, do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;notreatment = (advil_dose = 0) + (motrin_dose = 0);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 04 Mar 2023 06:27:45 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-03-04T06:27:45Z</dc:date>
    <item>
      <title>Filtering data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-data/m-p/862257#M340573</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create a new variable for patients who received neither treatment in my data. In total, 385 patients did not receive any drug.&lt;/P&gt;
&lt;P&gt;Here is a sample code(it is wrong), and I need help. Thank you!&lt;/P&gt;
&lt;P&gt;/*Creating a new variable for nontreatment*/&lt;BR /&gt;Data new;&lt;BR /&gt;set have; &lt;BR /&gt;if advil_dose= 0 then notreatment= 1 and if motrin_dose= 0 then notreatment= 2;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 05:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-data/m-p/862257#M340573</guid>
      <dc:creator>Rou</dc:creator>
      <dc:date>2023-03-04T05:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-data/m-p/862259#M340575</link>
      <description>&lt;P&gt;If you want to count the number of not taken drugs, do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;notreatment = (advil_dose = 0) + (motrin_dose = 0);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Mar 2023 06:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-data/m-p/862259#M340575</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-04T06:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-data/m-p/862261#M340577</link>
      <description>&lt;P&gt;Thanks for your response, Kurt. I am not looking for a count of the no-drug subgroup instead, I want to create a new variable called notreatment.&lt;/P&gt;
&lt;P&gt;If&amp;nbsp;advil_dose = 0 then notreatment = 1 and if motrin_dose = 0 then no treatment= 2. I am not sure how to do this correctly in SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 07:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-data/m-p/862261#M340577</guid>
      <dc:creator>Rou</dc:creator>
      <dc:date>2023-03-04T07:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-data/m-p/862262#M340578</link>
      <description>&lt;P&gt;What if both are zero? Which one should take precedence?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 07:11:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-data/m-p/862262#M340578</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-04T07:11:54Z</dc:date>
    </item>
  </channel>
</rss>

