<?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: Different results between proc surveyselect and %BOOT in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Different-results-between-proc-surveyselect-and-BOOT/m-p/481243#M25036</link>
    <description>&lt;P&gt;1. How far off are they? Since this is a simulation they should be really close but not necessarily exact.&lt;/P&gt;
&lt;P&gt;2. Look at the VARDEF options in PROC UNIVARIATE and check the note about the df and n-1 denominator in the %boot macro, if that's applicable here.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 19:47:12 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-07-25T19:47:12Z</dc:date>
    <item>
      <title>Different results between proc surveyselect and %BOOT</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Different-results-between-proc-surveyselect-and-BOOT/m-p/481239#M25035</link>
      <description>&lt;P&gt;I was trying out both surveyselect and %boot on the same set of data, thinking they will give me the same results;however, I did not get that. The 95% PTCI from two&amp;nbsp;procedures are different and here are the code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For %boot:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro analyze(data=,out=);&lt;BR /&gt;proc means noprint data=&amp;amp;data;&lt;BR /&gt;%bystmt;&lt;BR /&gt;var x;&lt;BR /&gt;output out=&amp;amp;out(drop=_type_ _freq_) skew=_Skewness;&lt;BR /&gt;run;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%boot(data=RandInt,&amp;nbsp;&lt;BR /&gt;samples=5000,&amp;nbsp;&lt;BR /&gt;random=12345,&amp;nbsp;&lt;BR /&gt;chart=0,&lt;BR /&gt;stat=_Skewness,&lt;BR /&gt;alpha=0.05,&lt;BR /&gt;print=1);&lt;BR /&gt;&lt;BR /&gt;proc print data=bootstat noobs;&lt;BR /&gt;id method n;&lt;BR /&gt;var value bootmean bias stderr biasco alcl aucl;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%bootci(PCTL);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For survey select:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let NumSamples = 5000;&lt;BR /&gt;proc surveyselect data=RandInt NOPRINT seed=12345&lt;BR /&gt;out=BootSSFreq(rename=(Replicate=SampleID))&lt;BR /&gt;method=urs&amp;nbsp;&lt;BR /&gt;samprate=1&amp;nbsp;&lt;BR /&gt;OUTHITS&amp;nbsp;&lt;BR /&gt;reps=&amp;amp;NumSamples;&amp;nbsp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc means data=BootSSFreq noprint;&lt;BR /&gt;by SampleID;&lt;BR /&gt;freq NumberHits;&lt;BR /&gt;var x;&lt;BR /&gt;output out=OutStats skew=Skewness;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc univariate data=BootSSFreq noprint;&lt;BR /&gt;var Skewness;&lt;BR /&gt;output out=Pctl&lt;BR /&gt;pctlpre =CI95_&lt;BR /&gt;pctlpts =2.5 97.5&lt;BR /&gt;pctlname=Lower Upper;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data=Pctl noobs; run;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 19:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Different-results-between-proc-surveyselect-and-BOOT/m-p/481239#M25035</guid>
      <dc:creator>CHELS</dc:creator>
      <dc:date>2018-07-25T19:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Different results between proc surveyselect and %BOOT</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Different-results-between-proc-surveyselect-and-BOOT/m-p/481243#M25036</link>
      <description>&lt;P&gt;1. How far off are they? Since this is a simulation they should be really close but not necessarily exact.&lt;/P&gt;
&lt;P&gt;2. Look at the VARDEF options in PROC UNIVARIATE and check the note about the df and n-1 denominator in the %boot macro, if that's applicable here.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 19:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Different-results-between-proc-surveyselect-and-BOOT/m-p/481243#M25036</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-25T19:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Different results between proc surveyselect and %BOOT</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Different-results-between-proc-surveyselect-and-BOOT/m-p/481267#M25037</link>
      <description>&lt;P&gt;They are the same up to 1 decimal place. I guess I have to choose one of the two to use then. THANK YOU!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 21:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Different-results-between-proc-surveyselect-and-BOOT/m-p/481267#M25037</guid>
      <dc:creator>CHELS</dc:creator>
      <dc:date>2018-07-25T21:05:35Z</dc:date>
    </item>
  </channel>
</rss>

