<?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: deleting observations in Dataset based on a category in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/deleting-observations-in-Dataset-based-on-a-category/m-p/513808#M138493</link>
    <description>&lt;P&gt;Have you tried to subset the 0-5 age, using where statement, into a separate data-set&lt;/P&gt;
&lt;P&gt;to be used for the regression?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data age0_5;
  set have (where=(sc_age le 5); /* or between 0 and 5 - to exclude missing */
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Nov 2018 08:14:32 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2018-11-16T08:14:32Z</dc:date>
    <item>
      <title>deleting observations in Dataset based on a category</title>
      <link>https://communities.sas.com/t5/SAS-Programming/deleting-observations-in-Dataset-based-on-a-category/m-p/513803#M138488</link>
      <description>&lt;P&gt;Please i have a dataset in which i want to keep only people who are aged from 0-5. The data set have list of people up to 17 years but i just want to create a dataset of only kids that are aged 0-5 and for the data-set to retain all the variables. The age variable is is sc_age.&lt;/P&gt;&lt;P&gt;I initially tried using the "where" statement in the larger data step to specify the category but it was not helpful as i will want to run a logistic regression later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please how do i go about this and any help will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 08:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/deleting-observations-in-Dataset-based-on-a-category/m-p/513803#M138488</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2018-11-16T08:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: deleting observations in Dataset based on a category</title>
      <link>https://communities.sas.com/t5/SAS-Programming/deleting-observations-in-Dataset-based-on-a-category/m-p/513807#M138492</link>
      <description>&lt;P&gt;Since I cant see your data, this code is untested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   set have;
   where age between 0 and 5;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Nov 2018 08:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/deleting-observations-in-Dataset-based-on-a-category/m-p/513807#M138492</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-11-16T08:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: deleting observations in Dataset based on a category</title>
      <link>https://communities.sas.com/t5/SAS-Programming/deleting-observations-in-Dataset-based-on-a-category/m-p/513808#M138493</link>
      <description>&lt;P&gt;Have you tried to subset the 0-5 age, using where statement, into a separate data-set&lt;/P&gt;
&lt;P&gt;to be used for the regression?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data age0_5;
  set have (where=(sc_age le 5); /* or between 0 and 5 - to exclude missing */
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Nov 2018 08:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/deleting-observations-in-Dataset-based-on-a-category/m-p/513808#M138493</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-11-16T08:14:32Z</dc:date>
    </item>
  </channel>
</rss>

