<?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: procsurveyselect in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/procsurveyselect/m-p/421834#M2901</link>
    <description>&lt;P&gt;if you have a id variable which has unique value (e.x. NAME) , try this one :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect data=sashelp.class out=training samprate=0.7 seed=12345678;
run;

proc sql;
create table validate as
 select *
  from sashelp.class
   where name not in (select name from training);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 17 Dec 2017 10:26:40 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-12-17T10:26:40Z</dc:date>
    <item>
      <title>procsurveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/procsurveyselect/m-p/421775#M2898</link>
      <description>&lt;P&gt;Hi, i have created the model, but i want to validate it. I want to validation for which i am using the 70% data for sampling &amp;amp; rest 30% of data for validation by using the proc survey select.&amp;nbsp;&amp;nbsp;What is the code for downloading the 30% of data for validation in proc surveyselect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveyselect data= raw_data method=srs rep=2 samprate=0.7 seed=1234 out=one20 ;&lt;BR /&gt;id _all_ ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please specify how to use this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 12:42:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/procsurveyselect/m-p/421775#M2898</guid>
      <dc:creator>ankur_1989</dc:creator>
      <dc:date>2017-12-16T12:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: procsurveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/procsurveyselect/m-p/421776#M2899</link>
      <description>&lt;P&gt;do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect data = sashelp.cars noprint
                  samprate = .7
                  out = cars_sample
                  seed = 12345 outall;
run;

data sampling;
   set cars_sample;
   where Selected=1;
run;

data validation;
   set cars_sample;
   where Selected=0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Dec 2017 12:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/procsurveyselect/m-p/421776#M2899</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-12-16T12:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: procsurveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/procsurveyselect/m-p/421806#M2900</link>
      <description>&lt;P&gt;Or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sampling validation;
set cars_sample;
if selected then output sampling;
else output validation;
drop selected;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Dec 2017 23:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/procsurveyselect/m-p/421806#M2900</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-12-16T23:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: procsurveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/procsurveyselect/m-p/421834#M2901</link>
      <description>&lt;P&gt;if you have a id variable which has unique value (e.x. NAME) , try this one :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect data=sashelp.class out=training samprate=0.7 seed=12345678;
run;

proc sql;
create table validate as
 select *
  from sashelp.class
   where name not in (select name from training);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Dec 2017 10:26:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/procsurveyselect/m-p/421834#M2901</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-12-17T10:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: procsurveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/procsurveyselect/m-p/422169#M2902</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect data = sashelp.cars noprint
                  samprate = .7
                  out = cars_sample
                  seed = 12345 outall;
run;

data sampling;
   set cars_sample;
   where Selected=1;
run;

data validation;
   set cars_sample;
   where Selected=0;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;shorter&lt;/P&gt;
&lt;PRE&gt;data sampling validation;
   set cars_sample;
   if Selected=1 then output sampling;
   else output validation;
run;
&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Dec 2017 00:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/procsurveyselect/m-p/422169#M2902</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-19T00:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: procsurveyselect</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/procsurveyselect/m-p/422170#M2903</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/182883"&gt;@ankur_1989&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc surveyselect data= raw_data method=srs rep=2 samprate=0.7 seed=1234 out=one20 ;&lt;BR /&gt;id _all_ ;&lt;BR /&gt;run ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please specify how to use this.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would ask why you have the rep=2 in your code. It has a strong likelihood of duplicating some records in the selected sample which will not do what you expect in terms of training/validation sets.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 00:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/procsurveyselect/m-p/422170#M2903</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-19T00:02:47Z</dc:date>
    </item>
  </channel>
</rss>

