<?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: How to Delete data related to an insufficient number of observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Delete-data-related-to-an-insufficient-number-of/m-p/649548#M194750</link>
    <description>&lt;P&gt;The Code worked perfectly&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see, the two accepts you are Talking About aren't issues for me though.&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2020 12:30:27 GMT</pubDate>
    <dc:creator>dimuly0</dc:creator>
    <dc:date>2020-05-21T12:30:27Z</dc:date>
    <item>
      <title>How to Delete data related to an insufficient number of observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Delete-data-related-to-an-insufficient-number-of/m-p/649241#M194612</link>
      <description>Hello dear SAS community,&lt;BR /&gt;&lt;BR /&gt;I‘m a fairly unexperienced user of SAS and would like to know how and if the following (data cleaning) procedure is possible:&lt;BR /&gt;&lt;BR /&gt;I am analyzing time series panel data for multiple companies‘ earnings. The issue is that the number of available observation years differs for the companies (total number of companies &amp;gt; 20000). Many of the companies have only 2-3 years of observations which is insufficient to run a grouped time series analysis.&lt;BR /&gt;&lt;BR /&gt;How can I exclude the companies (the rows) which hold, say, less than 10 observations (years)?&lt;BR /&gt;&lt;BR /&gt;Any help will be much appreciated!&lt;BR /&gt;&lt;BR /&gt;Thanks in advance and best regards</description>
      <pubDate>Wed, 20 May 2020 14:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Delete-data-related-to-an-insufficient-number-of/m-p/649241#M194612</guid>
      <dc:creator>dimuly0</dc:creator>
      <dc:date>2020-05-20T14:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Delete data related to an insufficient number of observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Delete-data-related-to-an-insufficient-number-of/m-p/649258#M194616</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select * from table1
where ID in (Select ID from table1 group by ID having count(ID)&amp;gt;10);
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That will ensure that each ID is in the data set more than 10 times. But....do those years need to be consecutive? Can a symbol or company name be 'reused' later on in your data set?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329916"&gt;@dimuly0&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hello dear SAS community,&lt;BR /&gt;&lt;BR /&gt;I‘m a fairly unexperienced user of SAS and would like to know how and if the following (data cleaning) procedure is possible:&lt;BR /&gt;&lt;BR /&gt;I am analyzing time series panel data for multiple companies‘ earnings. The issue is that the number of available observation years differs for the companies (total number of companies &amp;gt; 20000). Many of the companies have only 2-3 years of observations which is insufficient to run a grouped time series analysis.&lt;BR /&gt;&lt;BR /&gt;How can I exclude the companies (the rows) which hold, say, less than 10 observations (years)?&lt;BR /&gt;&lt;BR /&gt;Any help will be much appreciated!&lt;BR /&gt;&lt;BR /&gt;Thanks in advance and best regards&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 15:04:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Delete-data-related-to-an-insufficient-number-of/m-p/649258#M194616</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-05-20T15:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Delete data related to an insufficient number of observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Delete-data-related-to-an-insufficient-number-of/m-p/649276#M194621</link>
      <description>&lt;P&gt;Thank you very much &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;I will try this code.&lt;/P&gt;&lt;P&gt;I assume I have to replace the " * " as well as " ID " by the firm ID variable in my dataset, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The years Need to be consecutive and they are consecutively sorted in the dataset.&lt;/P&gt;&lt;P&gt;The deleted companies don't need to be reused later, I can simply delete them out of my dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 16:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Delete-data-related-to-an-insufficient-number-of/m-p/649276#M194621</guid>
      <dc:creator>dimuly0</dc:creator>
      <dc:date>2020-05-20T16:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Delete data related to an insufficient number of observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Delete-data-related-to-an-insufficient-number-of/m-p/649287#M194627</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329916"&gt;@dimuly0&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you very much &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;I will try this code.&lt;/P&gt;
&lt;P&gt;I assume I have to replace the " * " as well as " ID " by the firm ID variable in my dataset, right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, you would want the full data set with just the ID's selected though I suppose you could do it in two steps.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329916"&gt;@dimuly0&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The years Need to be consecutive and they are consecutively sorted in the dataset.&lt;/P&gt;
&lt;P&gt;The deleted companies don't need to be reused later, I can simply delete them out of my dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sometimes a new company can use an old ticker symbol is what I was thinking. So, fictional example, Sears used SRS for the last 50 years. They've now gone bankrupt. 10 years later there's a new company called Space Rocket Services using the same ticker symbol. If that's not an issue you can ignore it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code does not test for consecutive dates though, so if you are missing dates in the middle it will give you incorrect results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 16:31:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Delete-data-related-to-an-insufficient-number-of/m-p/649287#M194627</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-05-20T16:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Delete data related to an insufficient number of observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Delete-data-related-to-an-insufficient-number-of/m-p/649548#M194750</link>
      <description>&lt;P&gt;The Code worked perfectly&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see, the two accepts you are Talking About aren't issues for me though.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 12:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Delete-data-related-to-an-insufficient-number-of/m-p/649548#M194750</guid>
      <dc:creator>dimuly0</dc:creator>
      <dc:date>2020-05-21T12:30:27Z</dc:date>
    </item>
  </channel>
</rss>

