<?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: Repeated Measures Data - how often they frequent same location in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Repeated-Measures-Data-how-often-they-frequent-same-location/m-p/359780#M10823</link>
    <description>&lt;P&gt;Give Summary Tables in Enterprise Guide a try. Set Name and Location as your Classification variables, and on the table builder get it looking like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="SAS Table 1.png" alt="SAS Table 1.png" src="https://communities.sas.com/t5/image/serverpage/image-id/8951i257BAFAC04B15966/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you run it, you should see a table with the correct numbers. Then in the Results tab, have EG save it to a dataset. The dataset should look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="SAS Table 2.png" alt="SAS Table 2.png" src="https://communities.sas.com/t5/image/serverpage/image-id/8952i394F134E248469F2/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2017 19:40:14 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2017-05-18T19:40:14Z</dc:date>
    <item>
      <title>Repeated Measures Data - how often they frequent same location</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Repeated-Measures-Data-how-often-they-frequent-same-location/m-p/359761#M10819</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to see if each person had visited different location for each observation and if there was a location they frequently visited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data looks like this (along with other variables like date, description of the visit...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name &amp;nbsp;Location&lt;/P&gt;&lt;P&gt;Name1 &amp;nbsp;location_A&lt;/P&gt;&lt;P&gt;Name1 &amp;nbsp;location_B&lt;/P&gt;&lt;P&gt;Name1&lt;SPAN&gt; &amp;nbsp;location_C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Name2&lt;SPAN&gt; &amp;nbsp;location_D&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Name2&lt;SPAN&gt; &amp;nbsp;location_D&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Name2&lt;SPAN&gt; &amp;nbsp;location_D&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Name2&lt;SPAN&gt; &amp;nbsp;location_E&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Name3&lt;SPAN&gt; &amp;nbsp;location_F&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Name3&lt;SPAN&gt; &amp;nbsp;location_G&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I would like to know if the people in my data set usually go to the same place (in the case of Name2 that went to location_B 75% of the time) or not (in the case of Name1 that went to three different places three different times). &amp;nbsp;Is there any good way to see this with a SAS&amp;nbsp;code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know it's not a good data question, but I thought I would ask the experts anyways.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 18:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Repeated-Measures-Data-how-often-they-frequent-same-location/m-p/359761#M10819</guid>
      <dc:creator>ppphcyv</dc:creator>
      <dc:date>2017-05-18T18:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated Measures Data - how often they frequent same location</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Repeated-Measures-Data-how-often-they-frequent-same-location/m-p/359780#M10823</link>
      <description>&lt;P&gt;Give Summary Tables in Enterprise Guide a try. Set Name and Location as your Classification variables, and on the table builder get it looking like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="SAS Table 1.png" alt="SAS Table 1.png" src="https://communities.sas.com/t5/image/serverpage/image-id/8951i257BAFAC04B15966/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you run it, you should see a table with the correct numbers. Then in the Results tab, have EG save it to a dataset. The dataset should look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="SAS Table 2.png" alt="SAS Table 2.png" src="https://communities.sas.com/t5/image/serverpage/image-id/8952i394F134E248469F2/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 19:40:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Repeated-Measures-Data-how-often-they-frequent-same-location/m-p/359780#M10823</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-05-18T19:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated Measures Data - how often they frequent same location</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Repeated-Measures-Data-how-often-they-frequent-same-location/m-p/359794#M10824</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;Thank you for your solution. &amp;nbsp;This is what I would normally do - but I failed to mention that my data contains at least 700,000 people, each with 5-20 visits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any good solution for such data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 19:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Repeated-Measures-Data-how-often-they-frequent-same-location/m-p/359794#M10824</guid>
      <dc:creator>ppphcyv</dc:creator>
      <dc:date>2017-05-18T19:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated Measures Data - how often they frequent same location</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Repeated-Measures-Data-how-often-they-frequent-same-location/m-p/359811#M10826</link>
      <description>&lt;P&gt;Here's a quick and dirty report that might be good enough:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=have;&lt;/P&gt;
&lt;P&gt;tables name * location / missing list;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, maybe not for 700K people.&amp;nbsp; What would you consider to be an acceptable report for that?&amp;nbsp; This program will print something for each NAME, which might be too much.&amp;nbsp; But if that's not a good solution, then what is?&amp;nbsp; If you can design the report, somebody can certainly program it.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 20:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Repeated-Measures-Data-how-often-they-frequent-same-location/m-p/359811#M10826</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-05-18T20:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated Measures Data - how often they frequent same location</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Repeated-Measures-Data-how-often-they-frequent-same-location/m-p/359827#M10827</link>
      <description>&lt;P&gt;I wouldn't get too concerned...SAS plays in the big boy leagues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just turn off all of your report output options in EG. I spun up some test data that I think matches your profile (8 million records), and the Summary Tables step ran in about 30 seconds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 21:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Repeated-Measures-Data-how-often-they-frequent-same-location/m-p/359827#M10827</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-05-18T21:19:32Z</dc:date>
    </item>
  </channel>
</rss>

