<?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: For several firms I have several people (directors) for 6 different years. in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/For-several-firms-I-have-several-people-directors-for-6/m-p/160753#M8377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you basically have to include the firmID in the by statements, extend the control string and compare for the right pattern(s) at the end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 10:53:38 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2014-07-01T10:53:38Z</dc:date>
    <item>
      <title>For several firms I have several people (directors) for 6 different years.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/For-several-firms-I-have-several-people-directors-for-6/m-p/160749#M8373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem in SAS which is the following:&lt;/P&gt;&lt;P&gt;For several firms I have several people (directors) for 6 different years.&lt;/P&gt;&lt;P&gt;I wish to pick one person from each firm, who has all six years of observations and perform a regression analysis on these people. &lt;/P&gt;&lt;P&gt;So I need help to get one person from each firm with all sex years of observation. &lt;/P&gt;&lt;P&gt;I have a firmID, DirectorID and a Year variable (from 2002-2004 and from 2006-2008)&lt;/P&gt;&lt;P&gt;I you need more detail on the problem please let me know!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 12:44:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/For-several-firms-I-have-several-people-directors-for-6/m-p/160749#M8373</guid>
      <dc:creator>jbanghoj</dc:creator>
      <dc:date>2014-06-30T12:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: For several firms I have several people (directors) for 6 different years.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/For-several-firms-I-have-several-people-directors-for-6/m-p/160750#M8374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sort data=have (keep=director year) out=inter nodupkey;&lt;/P&gt;&lt;P&gt;by director year;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want (keep=director);&lt;/P&gt;&lt;P&gt;set inter;&lt;/P&gt;&lt;P&gt;by director;&lt;/P&gt;&lt;P&gt;retain control;&lt;/P&gt;&lt;P&gt;if first.director then control = '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '; * six blanks;&lt;/P&gt;&lt;P&gt;substr(control,year-&amp;amp;start,1) = 'X';&lt;/P&gt;&lt;P&gt;if last.director and control = 'XXXXXX' then output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set macro variable start to a suitable start year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 13:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/For-several-firms-I-have-several-people-directors-for-6/m-p/160750#M8374</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-06-30T13:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: For several firms I have several people (directors) for 6 different years.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/For-several-firms-I-have-several-people-directors-for-6/m-p/160751#M8375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not see how this will help me pick one director from each firm as firmID is deleted from the sample. &lt;/P&gt;&lt;P&gt;How do I set the macro variable start to a suitable start year?&lt;/P&gt;&lt;P&gt;I have observations from the years 2002-2004 and 2006-2008 - 6 years in total. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you once again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 09:09:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/For-several-firms-I-have-several-people-directors-for-6/m-p/160751#M8375</guid>
      <dc:creator>jbanghoj</dc:creator>
      <dc:date>2014-07-01T09:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: For several firms I have several people (directors) for 6 different years.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/For-several-firms-I-have-several-people-directors-for-6/m-p/160752#M8376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I suggest you post some test data and required output.&amp;nbsp; Its quite difficult to guess the circumstances.&amp;nbsp; At a guess you could get those directors with six years by:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIRECTORID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :MYLIST separated by '","'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distinct DIRECTORID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(YEAR) as CNT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HAVE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CNT = 6;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;This list could then be used to filter tha dataset,&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where directorid in ("&amp;amp;MYLIST.");&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 09:20:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/For-several-firms-I-have-several-people-directors-for-6/m-p/160752#M8376</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-01T09:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: For several firms I have several people (directors) for 6 different years.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/For-several-firms-I-have-several-people-directors-for-6/m-p/160753#M8377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you basically have to include the firmID in the by statements, extend the control string and compare for the right pattern(s) at the end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 10:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/For-several-firms-I-have-several-people-directors-for-6/m-p/160753#M8377</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-07-01T10:53:38Z</dc:date>
    </item>
  </channel>
</rss>

