<?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 How to only exclude ID's with subsequent unwanted observations in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-only-exclude-ID-s-with-subsequent-unwanted-observations/m-p/538475#M16610</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need help with&amp;nbsp;coding a longitudinal dataset.&lt;/P&gt;&lt;P&gt;I want to exclude individuals from a long format dataset which have different levels of the covariate over time, i.e., if they present a hospital type observations&amp;nbsp;in one occasion as PFF system and in one another as DIRECT system, they should be excluded. if on all occasions they are only PFF or only DIRECT they should stay in the dataset. Thus, I can only&amp;nbsp;keep those who do not cross between systems over time. The covariate is binary, PFF/DIREC.&lt;/P&gt;&lt;P&gt;Look forward to hearing from you.&lt;/P&gt;&lt;P&gt;TA&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 22:25:31 GMT</pubDate>
    <dc:creator>tomas-andriotti</dc:creator>
    <dc:date>2019-02-25T22:25:31Z</dc:date>
    <item>
      <title>How to only exclude ID's with subsequent unwanted observations</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-only-exclude-ID-s-with-subsequent-unwanted-observations/m-p/538475#M16610</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need help with&amp;nbsp;coding a longitudinal dataset.&lt;/P&gt;&lt;P&gt;I want to exclude individuals from a long format dataset which have different levels of the covariate over time, i.e., if they present a hospital type observations&amp;nbsp;in one occasion as PFF system and in one another as DIRECT system, they should be excluded. if on all occasions they are only PFF or only DIRECT they should stay in the dataset. Thus, I can only&amp;nbsp;keep those who do not cross between systems over time. The covariate is binary, PFF/DIREC.&lt;/P&gt;&lt;P&gt;Look forward to hearing from you.&lt;/P&gt;&lt;P&gt;TA&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 22:25:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-only-exclude-ID-s-with-subsequent-unwanted-observations/m-p/538475#M16610</guid>
      <dc:creator>tomas-andriotti</dc:creator>
      <dc:date>2019-02-25T22:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to only exclude ID's with subsequent unwanted observations</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-only-exclude-ID-s-with-subsequent-unwanted-observations/m-p/538557#M16611</link>
      <description>&lt;P&gt;Try something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select * 
from have
group by patientID
having count(distinct hospitalType) &amp;lt;= 1;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Feb 2019 05:39:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-only-exclude-ID-s-with-subsequent-unwanted-observations/m-p/538557#M16611</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-02-26T05:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to only exclude ID's with subsequent unwanted observations</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-only-exclude-ID-s-with-subsequent-unwanted-observations/m-p/539916#M16629</link>
      <description>&lt;P&gt;thank you !&amp;nbsp;very helpful&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 17:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-only-exclude-ID-s-with-subsequent-unwanted-observations/m-p/539916#M16629</guid>
      <dc:creator>tomas-andriotti</dc:creator>
      <dc:date>2019-03-03T17:43:05Z</dc:date>
    </item>
  </channel>
</rss>

