<?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: random sample of repeated measures data in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/random-sample-of-repeated-measures-data/m-p/567083#M11440</link>
    <description>&lt;P&gt;Thanks -- that worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2019 22:07:19 GMT</pubDate>
    <dc:creator>agewell150</dc:creator>
    <dc:date>2019-06-18T22:07:19Z</dc:date>
    <item>
      <title>random sample of repeated measures data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/random-sample-of-repeated-measures-data/m-p/567063#M11431</link>
      <description>&lt;P&gt;I have a large longitudinal dataset and would like to use surveyselect to randomly select a subsample of 5%.&lt;/P&gt;&lt;P&gt;The catch is that I need to select all measures for each client ID, these vary from 1 to 10 measurement occasions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After an extensive online search I have not been able to find an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the syntax I have been working with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveyselect data = have out= want&lt;BR /&gt;method=srs samprate=.05&lt;BR /&gt;by ID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Insights would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 20:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/random-sample-of-repeated-measures-data/m-p/567063#M11431</guid>
      <dc:creator>agewell150</dc:creator>
      <dc:date>2019-06-18T20:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: random sample of repeated measures data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/random-sample-of-repeated-measures-data/m-p/567074#M11437</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/268244"&gt;@agewell150&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replace the BY statement (which PROC SURVEYSELECT treats like a STRATA statement) with a &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveyselect_syntax05.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank" rel="noopener"&gt;CLUSTER statement&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cluster ID;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(and insert the missing semicolon after "...=.05" to terminate the PROC SURVEYSELECT statement).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: I would also recommend using the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveyselect_syntax01.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.surveyselect.selectseed" target="_blank" rel="noopener"&gt;SEED= option&lt;/A&gt; of the PROC SURVEYSELECT statement so that you can replicate your results.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 21:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/random-sample-of-repeated-measures-data/m-p/567074#M11437</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-06-18T21:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: random sample of repeated measures data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/random-sample-of-repeated-measures-data/m-p/567083#M11440</link>
      <description>&lt;P&gt;Thanks -- that worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 22:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/random-sample-of-repeated-measures-data/m-p/567083#M11440</guid>
      <dc:creator>agewell150</dc:creator>
      <dc:date>2019-06-18T22:07:19Z</dc:date>
    </item>
  </channel>
</rss>

