<?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: Bootstrapping SAS EG vs SAS Viya in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931880#M10842</link>
    <description>&lt;P&gt;Indeed.&lt;/P&gt;
&lt;P&gt;Just a reminder ... so you (and others) are aware.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;resample.bootstrap&lt;/STRONG&gt; is not a SAS-supplied action. It's a custom action programmed by the owner of the GitHub - repository.&lt;/P&gt;
&lt;P&gt;So, you also need the code to define the action in your SAS Viya environment.&lt;/P&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 11:12:45 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2024-06-12T11:12:45Z</dc:date>
    <item>
      <title>Bootstrapping SAS EG vs SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931454#M10834</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm currently waiting to get access for sas viya but I have a test case scenario to compare between sas eg and sas viya and just want to verify the sas viya code. For bootstrapping in sas eg I have this code&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc surveyselect data=data​

out=BootSamples noprint​

seed=25 ​

reps=2000   ​

method=urs​

samprate=1​

outhits;​

run;&lt;/PRE&gt;
&lt;P&gt;Am I right that this would be the equivalent code in sas viya or am i missing something?&lt;/P&gt;
&lt;PRE&gt;/* Start CAS session and load data into CAS */
cas mysess sessopts=(caslib='casuser');
libname mylib cas sessref=mysess;

/* Load example data */
proc casutil;
    load data=data casout="sample" replace;
run;

/* Perform bootstrap resampling using the sampling action set */
proc cas;
    action sampling.srs result=r /
        table={caslib='casuser', name='sample'}
        output={casout={caslib='casuser', name='BootSamples', replace=true}}
        samppct=100 /* Sampling rate of 100% for bootstrap */
        method='URS' /* Unrestricted random sampling with replacement */
        seed=25 /* Seed for reproducibility */
        reps=2000; /* Number of bootstrap replicates */
        selection={name='Freq', includeFreq=true}; /* Include frequency counts in the output */
quit;

/* Fetch and display some of the bootstrap samples (Optional) */
proc cas;
    table.fetch / table={caslib='casuser', name='BootSamples'} to=10;
quit;

/* End CAS session */
cas mysess terminate;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 20:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931454#M10834</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2024-06-09T20:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrapping SAS EG vs SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931472#M10835</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Method='URS' in sampling.srs action is not an existing parameter. Where did you get that from?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See :&lt;/P&gt;
&lt;P&gt;Home &amp;gt; Analytics &amp;gt; SAS Data Science &amp;gt; CAS Bootstrapping&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Science/CAS-Bootstrapping/m-p/931229#M10828" target="_blank"&gt;https://communities.sas.com/t5/SAS-Data-Science/CAS-Bootstrapping/m-p/931229#M10828&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 22:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931472#M10835</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-06-09T22:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrapping SAS EG vs SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931474#M10836</link>
      <description>&lt;P&gt;Thanks for the link &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;.So if I understand correctly if I'm using sas viya 4 I should use method = SRS instead?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 23:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931474#M10836</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2024-06-09T23:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrapping SAS EG vs SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931539#M10837</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;is this code more appropriate?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Perform bootstrap resampling using the sampling action set */
proc cas;
    action loadActionSet / actionSet='sampling';
quit;

proc cas;
    action sampling.srs result=r /
        table={caslib='casuser', name='sample'}
        output={casOut={caslib='casuser', name='BootSamples', replace=true}}
        samppct=100 /* Sampling rate of 100% for bootstrap */
        replace=True /* Sampling with replacement */
        seed=25 /* Seed for reproducibility */
        reps=2000; /* Number of bootstrap replicates */
        selection={name='Freq', includeFreq=true}; /* Include frequency counts in the output */
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am unable to test it on sas viya currently but would really appreciate if I can verify it is a more accurate reflection of sas viya 4 functionality so I can compare and contrast with sas 9.4&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 12:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931539#M10837</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2024-06-10T12:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrapping SAS EG vs SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931541#M10838</link>
      <description>&lt;P&gt;The code is NOT correct.&lt;/P&gt;
&lt;P&gt;The below sampling.srs parameters do not exist:&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;        replace=True /* Sampling with replacement */
        reps=2000; /* Number of bootstrap replicates */&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here are a few links to get you started.&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://github.com/statmike/Resampling-Methods-in-SAS-Viya" target="_blank"&gt;https://github.com/statmike/Resampling-Methods-in-SAS-Viya&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;: Fast, easy resampling methods using the SAS Viya CAS Engine (bootstrap, double-Bootstrap, jackknife)&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Bootstrap Resampling At Scale: Part 1 (of 3) dd. 03 March 2020&lt;BR /&gt;&lt;A href="https://statmike.com/blog/sgf2020p1" target="_blank" rel="nofollow noopener noreferrer"&gt;https://statmike.com/blog/sgf2020p1&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Bootstrap Resampling At Scale: Part 2 (of 3) dd. 04 March 2020&lt;BR /&gt;&lt;A href="https://statmike.com/blog/sgf2020p2" target="_blank" rel="nofollow noopener noreferrer"&gt;https://statmike.com/blog/sgf2020p2&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Bootstrap Resampling At Scale: Part 3 (of 3) dd. 05 March 2020&lt;BR /&gt;&lt;A href="https://statmike.com/blog/sgf2020p3" target="_blank" rel="nofollow noopener noreferrer"&gt;https://statmike.com/blog/sgf2020p3&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;Please learn about the APPLYROWORDER procedure-option (e.g. PROC PARTITION) and the&amp;nbsp;ADDROWID data set option, as you will need these to ensure reproducibility.&lt;BR /&gt;&lt;BR /&gt;Last but not least , PROC SURVEYSELECT runs on the compute server (SPRE) in SAS Viya 4 ... you can still use this SAS/STAT procedure (it's just not CAS-enabled).&lt;BR /&gt;You can turn to the CAS engine (distributed computing) for the remainder of your calculations.&lt;BR /&gt;&lt;BR /&gt;Koen&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 12:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931541#M10838</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-06-10T12:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrapping SAS EG vs SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931669#M10839</link>
      <description>&lt;P&gt;This is basically the code that I need. Thanks for your help&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Initialize CAS Session */
cas mysess sessopts=(caslib='casuser');
libname mylib cas sessref=mysess;

/* Load Dataset into CAS */
proc casutil;
    load data=sashelp.cars casout="sample" replace;
quit;

/* Load and Define Action Set */
proc cas;
    builtins.actionSetFromTable / table={caslib="Public" name="resampleActionSet.sashdat"} name="resample";
quit;

/* Bootstrap in CAS with Timing */
%let _time1=%sysfunc(time());

proc cas;
    resample.bootstrap / 
        intable='sample' 
        B=200 
        seed=12345 
        Bpct=1 
        case='ID' 
        strata='none' 
        strata_table='none';
    datastep.runcode result=t / code='data sample_bs; set sample_bs; host=_hostname_; threadid=_threadid_; run;';
    simple.crossTab / table={name="sample_bs" where="bag=1"} row="bsid" col="host" aggregator="N";
    simple.crossTab / table={name="sample_bs" where="bag=1"} row="bsid" col="threadid" aggregator="N";
run;

%let _time2=%sysfunc(time());
%let elapsed = %sysevalf(&amp;amp;_time2 - &amp;amp;_time1);
%let minutes = %sysfunc(floor(%sysevalf(&amp;amp;elapsed/60)));
%let seconds = %sysevalf(&amp;amp;elapsed - (&amp;amp;minutes*60));
%put CAS Bootstrap Time: &amp;amp;minutes minutes &amp;amp;seconds seconds;

/* Clear CAS Session */
*cas mysess clear;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 09:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931669#M10839</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2024-06-11T09:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrapping SAS EG vs SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931880#M10842</link>
      <description>&lt;P&gt;Indeed.&lt;/P&gt;
&lt;P&gt;Just a reminder ... so you (and others) are aware.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;resample.bootstrap&lt;/STRONG&gt; is not a SAS-supplied action. It's a custom action programmed by the owner of the GitHub - repository.&lt;/P&gt;
&lt;P&gt;So, you also need the code to define the action in your SAS Viya environment.&lt;/P&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 11:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/931880#M10842</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-06-12T11:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrapping SAS EG vs SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/932531#M10843</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;Just to clarify the&amp;nbsp;resampleActionSet action was already available in the public cas library file without having to download or clone directly from the github repository?. Is that correct?. I guess what I need to understand how is sas viya able to use the&amp;nbsp;.sashdat file to load from github repository? Hope I'm making sense. I know when I run this code&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Load and Define Action Set */
proc cas;
    builtins.actionSetFromTable / table={caslib="Public" name="resampleActionSet.sashdat"} name="resample";
quit;

/* List Available Action Sets */
proc cas;
    action builtins.actionSetInfo;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am able to see resample and that it is user defined&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smackerz1988_0-1718464453991.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/97488iB5B2FC7AEC439D38/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smackerz1988_0-1718464453991.png" alt="smackerz1988_0-1718464453991.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 15:14:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/932531#M10843</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2024-06-15T15:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrapping SAS EG vs SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/932554#M10844</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/430963"&gt;@smackerz1988&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;Just to clarify the&amp;nbsp;resampleActionSet action was already available in the public cas library file without having to download or clone directly from the github repository?. Is that correct?.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not correct.&lt;/P&gt;
&lt;P&gt;You have to make the custom action set -- that you defined -- available in the PUBLIC CAS library (as a *.sashdat file) and then load from there.&lt;/P&gt;
&lt;P&gt;(No need to clone repository ... just download the *.sas program and run or copy/paste and run)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how to proceed (see also the README of the GitHub repository):&lt;/P&gt;
&lt;DIV class="markdown-heading" dir="auto"&gt;
&lt;H3 class="heading-element" dir="auto" tabindex="-1"&gt;Setting up the actions in your environment&lt;/H3&gt;
&lt;A id="user-content-setting-up-the-actions-in-your-environment" class="anchor" href="https://github.com/statmike/Resampling-Methods-in-SAS-Viya/tree/master#setting-up-the-actions-in-your-environment" aria-label="Permalink: Setting up the actions in your environment" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;Run the code in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/statmike/Resampling-Methods-in-SAS-Viya/blob/master/resample%20-%20defineActionSet.sas" target="_blank"&gt;resample - defineActionSet.sas&lt;/A&gt;. Some lines that may need changing:&lt;/P&gt;
&lt;UL dir="auto"&gt;
&lt;LI&gt;line 1: connects to a CAS session&lt;/LI&gt;
&lt;LI&gt;To Save the actions for future sessions and use by other users:
&lt;UL dir="auto"&gt;
&lt;LI&gt;line 174: create an in-memory table of the action set&lt;/LI&gt;
&lt;LI&gt;line 175: persist the in-memory table in .sashdat file. Here it is pointed as caslib="Public".&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;If you need to remove the action set then uncomment and use:
&lt;UL dir="auto"&gt;
&lt;LI&gt;line 177: removes the persisted in-memory table&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV class="markdown-heading" dir="auto"&gt;
&lt;H3 class="heading-element" dir="auto" tabindex="-1"&gt;Actions Instructions&lt;/H3&gt;
&lt;A id="user-content-actions-instructions" class="anchor" href="https://github.com/statmike/Resampling-Methods-in-SAS-Viya/tree/master#actions-instructions" aria-label="Permalink: Actions Instructions" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;To use the actions you will need to load the user defined actions with:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;builtins.actionSetFromTable / table={caslib="Public" name="resampleActionSet.sashdat"} name="resample";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;BR,&lt;BR /&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 21:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/932554#M10844</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-06-15T21:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrapping SAS EG vs SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/932575#M10849</link>
      <description>&lt;P&gt;Ah I understand now! Thanks for clarifying that makes sense!&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 14:09:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/932575#M10849</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2024-06-16T14:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrapping SAS EG vs SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/942002#M10908</link>
      <description>&lt;P&gt;Hi Koen,&lt;BR /&gt;&lt;BR /&gt;I'm running on Viya V.04.00M0P051324 and the sampling action set does not seem to honor the replace=True option for sampling with replacement AND I can't seem to get the GitHub link for the resample action set to work.&lt;BR /&gt;&lt;BR /&gt;Is there a bootstrap action I should be using for this version or do I need to figure out why I can't find the .sas program to create the resample action set ?&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;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 15:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/942002#M10908</guid>
      <dc:creator>RyanCarr</dc:creator>
      <dc:date>2024-08-30T15:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrapping SAS EG vs SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/942007#M10909</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;I also get a &lt;FONT color="#FF0000"&gt;404-error&lt;/FONT&gt; ("This is not the web page you are looking for.") when following the GitHub link. Don't know why.&lt;/LI&gt;
&lt;LI&gt;There's no bootstrap action in the SAS supplied actions!&lt;/LI&gt;
&lt;LI&gt;The replace=TRUE options that you are seeing in the&amp;nbsp;&lt;SPAN&gt;sampling.srs documentation ...&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;A href="https://go.documentation.sas.com/doc/en/vdmmlcdc/8.1/casactstat/casactstat_srs_syntax.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/vdmmlcdc/8.1/casactstat/casactstat_srs_syntax.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;have nothing to do with "sampling with replacement". It's to replace output tables if they already exist.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;I have no alternative for you. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; You can always use PROC SURVEYSELECT with the URS method (NOT SRS), but PROC SURVEYSELECT is not CAS-enabled and it will run -- single threaded -- on the compute server (NOT on the CAS server).&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;You can do the&amp;nbsp;Unrestricted Random Sample (URS) with a datastep as well, but the datastep uses statements (like retain) that will not work on the CAS engine. See&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2024/08/12/sampling-data-step.html" target="_blank"&gt;Implement five sampling methods in the SAS DATA step - The DO Loop&lt;/A&gt;.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;There's probably a way to build reproducible bootstrap (re-)samples using the IML action set in PROC CAS, but I would have to write that code for you (I don't have it readily available).&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 16:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/942007#M10909</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-08-30T16:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Bootstrapping SAS EG vs SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/942097#M10910</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;wrote:
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;&lt;SPAN&gt;You can do the&amp;nbsp;Unrestricted Random Sample (URS) with a datastep as well, but the datastep uses statements (like retain) that will not work on the CAS engine. See&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2024/08/12/sampling-data-step.html" target="_blank" rel="noopener"&gt;Implement five sampling methods in the SAS DATA step - The DO Loop&lt;/A&gt;.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If the RETAIN statement was an obstacle (although it is used in&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/casdspgm/p10ux48pz7qknzn1ux1bs48vplnx.htm#n05jzo5a7djwphn1neq15j5m50iw" target="_blank" rel="noopener"&gt;CAS example code&lt;/A&gt;), it could be omitted, as it appears to be totally redundant in that URS sampling program.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2024 13:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Bootstrapping-SAS-EG-vs-SAS-Viya/m-p/942097#M10910</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-08-31T13:15:05Z</dc:date>
    </item>
  </channel>
</rss>

