<?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 Finding &amp;quot;consistency&amp;quot; or multiple observations in a dataset... in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Finding-quot-consistency-quot-or-multiple-observations-in-a/m-p/111620#M30938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dataset with multiple observations per person.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For each person in the dataset for more than one year, how many years of the total that we have data for are they showing up?&lt;/P&gt;&lt;P&gt;2. Sort this somehow so I know the people who are showing up most.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Feb 2013 16:43:51 GMT</pubDate>
    <dc:creator>oncearunner</dc:creator>
    <dc:date>2013-02-16T16:43:51Z</dc:date>
    <item>
      <title>Finding "consistency" or multiple observations in a dataset...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Finding-quot-consistency-quot-or-multiple-observations-in-a/m-p/111620#M30938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dataset with multiple observations per person.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For each person in the dataset for more than one year, how many years of the total that we have data for are they showing up?&lt;/P&gt;&lt;P&gt;2. Sort this somehow so I know the people who are showing up most.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2013 16:43:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Finding-quot-consistency-quot-or-multiple-observations-in-a/m-p/111620#M30938</guid>
      <dc:creator>oncearunner</dc:creator>
      <dc:date>2013-02-16T16:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Finding "consistency" or multiple observations in a dataset...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Finding-quot-consistency-quot-or-multiple-observations-in-a/m-p/111621#M30939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try these :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;/* Long shape dataset: person identified by ID, numeric variable : X */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;proc sql;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;create table want as&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;select ID, count(X) as n&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;from myLongData&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;group by ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;order by desc n;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;/* Wide shape dataset: person identified by ID, numeric variables : X2001,...,X2011 */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;data want(keep=ID n);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;set myWideData;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;n = n(of X2001-X2011);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;proc sort data=want; by n descending; run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2013 19:39:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Finding-quot-consistency-quot-or-multiple-observations-in-a/m-p/111621#M30939</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-02-16T19:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Finding "consistency" or multiple observations in a dataset...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Finding-quot-consistency-quot-or-multiple-observations-in-a/m-p/111622#M30940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I could get the long data set code to work. I really appreciate it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Feb 2013 04:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Finding-quot-consistency-quot-or-multiple-observations-in-a/m-p/111622#M30940</guid>
      <dc:creator>oncearunner</dc:creator>
      <dc:date>2013-02-17T04:14:49Z</dc:date>
    </item>
  </channel>
</rss>

