<?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: Create random sample from a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-random-sample-from-a-dataset/m-p/713586#M220169</link>
    <description>&lt;P&gt;Specifically, this selects 100 rows WITHOUT REPLACEMENT. That is, the rows are unique.&amp;nbsp; In some applications, you might need other sampling schemes, such as selection WITH replacement. The SURVEYSELECT procedure is a general way to select rows from a data set. It supports many different sampling schemes: with replacement, without replacement, stratified sampling, and more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/01/29/sample-with-replacement-in-sas.html" target="_self"&gt;See this article for a discussion and an example of ways to sample with replacement in SAS.&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jan 2021 11:13:22 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2021-01-23T11:13:22Z</dc:date>
    <item>
      <title>Create random sample from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-random-sample-from-a-dataset/m-p/713557#M220156</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It is a simple way to get random 100 row from your dataset.&lt;/P&gt;
&lt;P&gt;HHCFX&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql outobs=100;
create table WANT as select * from HAVE order by ranuni(0);quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 04:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-random-sample-from-a-dataset/m-p/713557#M220156</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2021-01-23T04:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create random sample from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-random-sample-from-a-dataset/m-p/713558#M220157</link>
      <description>&lt;P&gt;proc sql outobs=100; create table random as select * from a order by ranuni(0);quit;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 04:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-random-sample-from-a-dataset/m-p/713558#M220157</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2021-01-23T04:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create random sample from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-random-sample-from-a-dataset/m-p/713586#M220169</link>
      <description>&lt;P&gt;Specifically, this selects 100 rows WITHOUT REPLACEMENT. That is, the rows are unique.&amp;nbsp; In some applications, you might need other sampling schemes, such as selection WITH replacement. The SURVEYSELECT procedure is a general way to select rows from a data set. It supports many different sampling schemes: with replacement, without replacement, stratified sampling, and more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/01/29/sample-with-replacement-in-sas.html" target="_self"&gt;See this article for a discussion and an example of ways to sample with replacement in SAS.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 11:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-random-sample-from-a-dataset/m-p/713586#M220169</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-01-23T11:13:22Z</dc:date>
    </item>
  </channel>
</rss>

