<?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: Bootstrap sampling from a long formatted file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Bootstrap-sampling-from-a-long-formatted-file/m-p/246083#M268578</link>
    <description>&lt;P&gt;Have you already tried to use proc transpose to reformat the file into rows?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2016 13:20:24 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-01-26T13:20:24Z</dc:date>
    <item>
      <title>Bootstrap sampling from a long formatted file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bootstrap-sampling-from-a-long-formatted-file/m-p/246082#M268577</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a long formatted file, in which every subject has more than one row. For each row, I have several variables, two of them are "ID" and "Visit". Each subject has 5 visits. I have 50 subjects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make a random sampling with replacement, in order to get a larger file, with 100 subjects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is, when I use PROC SURVEYSELECT (which is straightforward), SAS chooses rows, not subjects. I want SAS to sample a subject, and to keep all his rows, rather than randomly selecting rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can it be done ? I am pretty much lost here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 13:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bootstrap-sampling-from-a-long-formatted-file/m-p/246082#M268577</guid>
      <dc:creator>BlueNose</dc:creator>
      <dc:date>2016-01-26T13:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrap sampling from a long formatted file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bootstrap-sampling-from-a-long-formatted-file/m-p/246083#M268578</link>
      <description>&lt;P&gt;Have you already tried to use proc transpose to reformat the file into rows?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 13:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bootstrap-sampling-from-a-long-formatted-file/m-p/246083#M268578</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-01-26T13:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrap sampling from a long formatted file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bootstrap-sampling-from-a-long-formatted-file/m-p/246084#M268579</link>
      <description>No. I have too many variables per visit (10 variables * 5 visits will give 50 variables wide).</description>
      <pubDate>Tue, 26 Jan 2016 13:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bootstrap-sampling-from-a-long-formatted-file/m-p/246084#M268579</guid>
      <dc:creator>BlueNose</dc:creator>
      <dc:date>2016-01-26T13:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrap sampling from a long formatted file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bootstrap-sampling-from-a-long-formatted-file/m-p/246085#M268580</link>
      <description>&lt;P&gt;I have an idea. Can I save the number of times each subject is selected, and then build different datsets for subjects with number of hits of up to 1, up to 2, etc... and then append these datasets ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 13:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bootstrap-sampling-from-a-long-formatted-file/m-p/246085#M268580</guid>
      <dc:creator>BlueNose</dc:creator>
      <dc:date>2016-01-26T13:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrap sampling from a long formatted file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bootstrap-sampling-from-a-long-formatted-file/m-p/246087#M268581</link>
      <description>&lt;UL class="AAstatementblock" type="none"&gt;
&lt;LI&gt;
&lt;P&gt;&lt;SPAN class="AAstatement"&gt;SAMPLINGUNIT | CLUSTER&lt;/SPAN&gt; &lt;SPAN class="AAstatementoptional"&gt;variables &amp;lt; / options &amp;gt; &lt;/SPAN&gt;;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 26 Jan 2016 13:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bootstrap-sampling-from-a-long-formatted-file/m-p/246087#M268581</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-01-26T13:31:35Z</dc:date>
    </item>
  </channel>
</rss>

