<?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 Ignoring observations in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Ignoring-observations/m-p/42607#M11080</link>
    <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
Apologies if this is a repeat but can't find the answer searching.  &lt;BR /&gt;
&lt;BR /&gt;
I'm very new to SAS and have inherited a large data set to analyse.  &lt;BR /&gt;
&lt;BR /&gt;
The data is medication records in an Excel sheet.  1000 patients, with up to 15 years data for each.&lt;BR /&gt;
&lt;BR /&gt;
Some data which should have been collected is missing - this is labelled '.'  &lt;BR /&gt;
&lt;BR /&gt;
However, some data is not recorded 'deliberately' eg because the patient died / was discharged.  These observations are labeled '88'.  &lt;BR /&gt;
&lt;BR /&gt;
In the analysis I need to account for data which should have been collected, but the '88' values need to be ignored.  &lt;BR /&gt;
&lt;BR /&gt;
Does anyone have any suggestions as to how I can tell SAS not to include these observations in any analysis?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks, &lt;BR /&gt;
Jim</description>
    <pubDate>Fri, 01 Apr 2011 16:21:32 GMT</pubDate>
    <dc:creator>Jimbo</dc:creator>
    <dc:date>2011-04-01T16:21:32Z</dc:date>
    <item>
      <title>Ignoring observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Ignoring-observations/m-p/42607#M11080</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
Apologies if this is a repeat but can't find the answer searching.  &lt;BR /&gt;
&lt;BR /&gt;
I'm very new to SAS and have inherited a large data set to analyse.  &lt;BR /&gt;
&lt;BR /&gt;
The data is medication records in an Excel sheet.  1000 patients, with up to 15 years data for each.&lt;BR /&gt;
&lt;BR /&gt;
Some data which should have been collected is missing - this is labelled '.'  &lt;BR /&gt;
&lt;BR /&gt;
However, some data is not recorded 'deliberately' eg because the patient died / was discharged.  These observations are labeled '88'.  &lt;BR /&gt;
&lt;BR /&gt;
In the analysis I need to account for data which should have been collected, but the '88' values need to be ignored.  &lt;BR /&gt;
&lt;BR /&gt;
Does anyone have any suggestions as to how I can tell SAS not to include these observations in any analysis?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks, &lt;BR /&gt;
Jim</description>
      <pubDate>Fri, 01 Apr 2011 16:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Ignoring-observations/m-p/42607#M11080</guid>
      <dc:creator>Jimbo</dc:creator>
      <dc:date>2011-04-01T16:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Ignoring-observations/m-p/42608#M11081</link>
      <description>Type of analysis to be performed would be helpful in answering as some approaches may not work every where.&lt;BR /&gt;
&lt;BR /&gt;
With that in mind filtering the data in the analysis procedure is a start.&lt;BR /&gt;
&lt;BR /&gt;
proc xxxxx data=&lt;YOUR dataset=""&gt; (where=(&lt;YOUR variable=""&gt; ne 88));&lt;BR /&gt;
&lt;BR /&gt;
Some procedures allow analysis of the missing data (the '.') using an option usually MISSING. For example&lt;BR /&gt;
&lt;BR /&gt;
proc freq data=&lt;YOUR dataset=""&gt; (where=(&lt;YOUR variable=""&gt; ne 88));&lt;BR /&gt;
   table &lt;YOUR variable=""&gt;/missing;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
will treat missing levels as a valid category and report counts and percents as such.&lt;/YOUR&gt;&lt;/YOUR&gt;&lt;/YOUR&gt;&lt;/YOUR&gt;&lt;/YOUR&gt;</description>
      <pubDate>Fri, 01 Apr 2011 16:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Ignoring-observations/m-p/42608#M11081</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-04-01T16:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring observations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Ignoring-observations/m-p/42609#M11082</link>
      <description>Thanks very much!  &lt;BR /&gt;
&lt;BR /&gt;
I'm (planning on!) performing a survival analysis - blood pressure control to time defined end point.  &lt;BR /&gt;
&lt;BR /&gt;
I'll give the code a try now.  Many thanks again, &lt;BR /&gt;
&lt;BR /&gt;
Jim</description>
      <pubDate>Fri, 01 Apr 2011 16:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Ignoring-observations/m-p/42609#M11082</guid>
      <dc:creator>Jimbo</dc:creator>
      <dc:date>2011-04-01T16:38:19Z</dc:date>
    </item>
  </channel>
</rss>

