<?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 Performing a Bootstrapping validation of a Credit Risk Model in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Performing-a-Bootstrapping-validation-of-a-Credit-Risk-Model/m-p/620790#M182469</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a macro that calculates KS, GINI, ROC of a credit risk model. Using that, I have to do a Bootstrapping validation so first I created a BootSample using the &lt;EM&gt;proc surveyselect &lt;/EM&gt;command. The Bootsample contains 5,000 random samples. Each sample contains around 1500 records. How do I execute the macro for each of the samples in my dataset?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 12:54:14 GMT</pubDate>
    <dc:creator>Atulya212</dc:creator>
    <dc:date>2020-01-29T12:54:14Z</dc:date>
    <item>
      <title>Performing a Bootstrapping validation of a Credit Risk Model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Performing-a-Bootstrapping-validation-of-a-Credit-Risk-Model/m-p/620790#M182469</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a macro that calculates KS, GINI, ROC of a credit risk model. Using that, I have to do a Bootstrapping validation so first I created a BootSample using the &lt;EM&gt;proc surveyselect &lt;/EM&gt;command. The Bootsample contains 5,000 random samples. Each sample contains around 1500 records. How do I execute the macro for each of the samples in my dataset?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 12:54:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Performing-a-Bootstrapping-validation-of-a-Credit-Risk-Model/m-p/620790#M182469</guid>
      <dc:creator>Atulya212</dc:creator>
      <dc:date>2020-01-29T12:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Performing a Bootstrapping validation of a Credit Risk Model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Performing-a-Bootstrapping-validation-of-a-Credit-Risk-Model/m-p/620796#M182470</link>
      <description>&lt;P&gt;Everything you could possibly want to know about how to do a bootstrap in SAS from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/12/12/essential-guide-bootstrapping-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/12/12/essential-guide-bootstrapping-sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 13:19:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Performing-a-Bootstrapping-validation-of-a-Credit-Risk-Model/m-p/620796#M182470</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-29T13:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Performing a Bootstrapping validation of a Credit Risk Model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Performing-a-Bootstrapping-validation-of-a-Credit-Risk-Model/m-p/620801#M182472</link>
      <description>&lt;P&gt;In general, &lt;A href="https://blogs.sas.com/content/iml/2012/07/18/simulation-in-sas-the-slow-way-or-the-by-way.html" target="_self"&gt;running a statistic on each bootstrap sample will be slower than performing a BY group analysis&lt;/A&gt; on the output from PROC SURVEYSELECT where the Replicate variable is used as the BY variable. For example, you can see &lt;A href="https://blogs.sas.com/content/iml/2018/06/20/bootstrap-method-example-sas.html" target="_self"&gt;"The bootstrap method in SAS: A t test example"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you write the macro yourself? (Or at least understand the contents of the macro?) If so, it would be efficient to rewrite the analysis to directly use the output from SURVEYSELECT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are a beginner and do not understand the macro, then you might be forced to use the slow method. For the slow method, you have a macro loop (say, %DO i = 1 %to 5000) and you use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WHERE REPLICATE=&amp;amp;i;&lt;/P&gt;
&lt;P&gt;to subset the bootstrap samples.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 13:30:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Performing-a-Bootstrapping-validation-of-a-Credit-Risk-Model/m-p/620801#M182472</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-29T13:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Performing a Bootstrapping validation of a Credit Risk Model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Performing-a-Bootstrapping-validation-of-a-Credit-Risk-Model/m-p/620809#M182474</link>
      <description>&lt;P&gt;one way could be to run your macro with a call execute command.&lt;/P&gt;&lt;P&gt;To guaranty a better debugging I'd rather construct a loop over your macro that will filter your input dataset on the Bootsample you would like to process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO doit(BootSampleStart=,BootSampleStop=);

   %DO i=&amp;amp;BootSampleStart. %TO &amp;amp;BootSampleStop.;
      %put NOTE: Processing BootSample &amp;amp;i.;

      /*Your code*/
      DATA _tmp;
         SET have;
         where BootSample=&amp;amp;i.;
      RUN;

      %YourMacro(inputDataset=_tmp &amp;lt;,your parameters&amp;gt;);
      PROC DATASETS lib=work nolist;delete _tmp; RUN;QUIT;
   %END;

%MEND doit;&lt;BR /&gt;** call example:;&lt;BR /&gt;%doit(BootSampleStart=1526,BootSampleStop=1528);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 13:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Performing-a-Bootstrapping-validation-of-a-Credit-Risk-Model/m-p/620809#M182474</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2020-01-29T13:54:39Z</dc:date>
    </item>
  </channel>
</rss>

