<?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: Would Appreciate Some Help with Bagging in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Would-Appreciate-Some-Help-with-Bagging/m-p/43969#M253</link>
    <description>%DMBAG is not the only code that runs during that process.  I believe the easiest way to get your results is to run the process again but use a code node just after the regression node.  You will be able to analyze your scored sample and then save intermediate files to any directory you choose.  I hope that makes sense.&lt;BR /&gt;
&lt;BR /&gt;
Also, I am glad to read that you are happy with the results.</description>
    <pubDate>Wed, 10 Feb 2010 13:25:02 GMT</pubDate>
    <dc:creator>David_Duling</dc:creator>
    <dc:date>2010-02-10T13:25:02Z</dc:date>
    <item>
      <title>Would Appreciate Some Help with Bagging</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Would-Appreciate-Some-Help-with-Bagging/m-p/43968#M252</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I am struggling on something at the moment and am hoping that there is someone out there that can help.&lt;BR /&gt;
&lt;BR /&gt;
In EM, I am using Bagging With Replacement.&lt;BR /&gt;
&lt;BR /&gt;
I have 'created 100 samples' and modelled a logistic regression to each and obtained Bagged Estimates via the Ensemble node.&lt;BR /&gt;
&lt;BR /&gt;
There is only one target and only one input so for the 100 models, the parameters are the same in each model, the estimates are different.&lt;BR /&gt;
&lt;BR /&gt;
I am really happy with the results.&lt;BR /&gt;
&lt;BR /&gt;
I now wish to document the level of vairation that was found in each of the 100 samples.&lt;BR /&gt;
&lt;BR /&gt;
My problem is that I have no idea how to 'get' the 100 samples.&lt;BR /&gt;
&lt;BR /&gt;
They are not present in any of the libraries.&lt;BR /&gt;
&lt;BR /&gt;
I looked at the log but could not find anything there that could help.&lt;BR /&gt;
&lt;BR /&gt;
I found a macro 'dmbag.sas' in my program root directory but that does not seem to give me what I am after.&lt;BR /&gt;
&lt;BR /&gt;
To be honest I am not sure what the purpose of the macro is.&lt;BR /&gt;
&lt;BR /&gt;
For example, I inserted the following:&lt;BR /&gt;
&lt;BR /&gt;
%DMBAG(_TRA=TEST2,_TRAIN=TEST1,_SEED= 12345, _FREQ=,_SUMFREQ=14844, _SIZE=14844,_LOOP= 100)&lt;BR /&gt;
&lt;BR /&gt;
My sample is unweighted (no freq field) and I have 14,844 records in my sample.&lt;BR /&gt;
&lt;BR /&gt;
The output was a dataset of 9,333 records.&lt;BR /&gt;
&lt;BR /&gt;
A new field was created,  _resamp_.&lt;BR /&gt;
&lt;BR /&gt;
The Proc Freq for _resamp_ is&lt;BR /&gt;
&lt;BR /&gt;
1        5365&lt;BR /&gt;
2        2784&lt;BR /&gt;
3         900&lt;BR /&gt;
4         218&lt;BR /&gt;
5          57&lt;BR /&gt;
6           9&lt;BR /&gt;
&lt;BR /&gt;
I am not sure if this macro does what I want it to do, it says it  "PURPOSE: SELECT A BOOTSTRAP SAMPLE"&lt;BR /&gt;
&lt;BR /&gt;
So,  is there a way that I can create the 100 samples??&lt;BR /&gt;
&lt;BR /&gt;
I am in dire need of those samples.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I would be really grateful for any help here.</description>
      <pubDate>Thu, 21 Jan 2010 04:56:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Would-Appreciate-Some-Help-with-Bagging/m-p/43968#M252</guid>
      <dc:creator>CaptGrumpy</dc:creator>
      <dc:date>2010-01-21T04:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Would Appreciate Some Help with Bagging</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Would-Appreciate-Some-Help-with-Bagging/m-p/43969#M253</link>
      <description>%DMBAG is not the only code that runs during that process.  I believe the easiest way to get your results is to run the process again but use a code node just after the regression node.  You will be able to analyze your scored sample and then save intermediate files to any directory you choose.  I hope that makes sense.&lt;BR /&gt;
&lt;BR /&gt;
Also, I am glad to read that you are happy with the results.</description>
      <pubDate>Wed, 10 Feb 2010 13:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Would-Appreciate-Some-Help-with-Bagging/m-p/43969#M253</guid>
      <dc:creator>David_Duling</dc:creator>
      <dc:date>2010-02-10T13:25:02Z</dc:date>
    </item>
  </channel>
</rss>

