<?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: Bias corrected bootstrap CI for correlation coefficient in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/762399#M37225</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;However, this doesn't seem to work for the proc corr procedure.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;That is a bit of a vague statement.&lt;/P&gt;
&lt;P&gt;Can you tell us why you do conclude that the approach would not work for PROC CORR?&lt;/P&gt;
&lt;P&gt;Or do you maybe get errors / warnings in the LOG?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2021 23:22:15 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2021-08-18T23:22:15Z</dc:date>
    <item>
      <title>Bias corrected bootstrap CI for correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/762320#M37223</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Is there a method in SAS to create bias corrected bootstrap confidence intervals for spearman correlation coefficients?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to follow this blog -&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2016/08/10/bootstrap-confidence-interval-sas.html" target="_blank"&gt;Compute a bootstrap confidence interval in SAS - The DO Loop&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, this doesn't seem to work for the proc corr procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 15:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/762320#M37223</guid>
      <dc:creator>Abishekaa</dc:creator>
      <dc:date>2021-08-18T15:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bias corrected bootstrap CI for correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/762324#M37224</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;However, this doesn't seem to work for the proc corr procedure.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why not? Seems like it would work as far as I can tell. Use PROC CORR where the example in the blog uses PROC MEANS.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 16:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/762324#M37224</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-18T16:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Bias corrected bootstrap CI for correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/762399#M37225</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;However, this doesn't seem to work for the proc corr procedure.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;That is a bit of a vague statement.&lt;/P&gt;
&lt;P&gt;Can you tell us why you do conclude that the approach would not work for PROC CORR?&lt;/P&gt;
&lt;P&gt;Or do you maybe get errors / warnings in the LOG?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 23:22:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/762399#M37225</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-08-18T23:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bias corrected bootstrap CI for correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/762444#M37226</link>
      <description>&lt;P&gt;Rick Wicklin's code can be adapted for proc CORR:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sample(keep=x y);
   set Sashelp.Iris(where=(Species="Virginica") rename=(SepalWidth=x PetalWidth=y));
run;

proc corr data=Sample Pearson;
var x;
with y;
run;

%let NumSamples = 500;       /* number of bootstrap resamples */
/* 2. Generate many bootstrap samples */
proc surveyselect data=sample NOPRINT seed=18558
     out=BootSetForCorr(rename=(Replicate=SampleID))
     method=urs              /* resample with replacement */
     samprate=1              /* each bootstrap sample has N observations */
     /* OUTHITS                 option to suppress the frequency var */
     reps=&amp;amp;NumSamples;       /* generate NumSamples bootstrap resamples */
run;

proc corr data=BootSetForCorr outp=BootPearsonCorr(where=(_TYPE_="CORR")) noprint;
by SampleId;
freq NumberHits;
var x;
with y;
run;

proc univariate data=BootPearsonCorr noprint;
   var x; /* Variable x in proc CORR output contains the correlation */
   output out=BootPctl mean=Boot_Mean_Corr pctlpre =Boot_CI95_ 
          pctlpts = 2.5  97.5       /* compute 95% bootstrap confidence interval */
          pctlname=Lower Upper;
run;
 
proc print data=BootPctl noobs; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PGStats_0-1629344143122.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62712iE7D833F5E287AA71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PGStats_0-1629344143122.png" alt="PGStats_0-1629344143122.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 03:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/762444#M37226</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2021-08-19T03:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Bias corrected bootstrap CI for correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/762508#M37231</link>
      <description>You could use function CORR() in IML . and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; know .</description>
      <pubDate>Thu, 19 Aug 2021 12:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/762508#M37231</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-08-19T12:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bias corrected bootstrap CI for correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/762531#M37232</link>
      <description>&lt;P&gt;The OP asked about the Spearman correlation, so change the OUTP= option to the OUTS= option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The OP asked about a bias-corrected and adjusted confidence interval, whereas my blog post (and PGStat's modification) provides a percentile CI. You can read about ways to obtain a BCa interval in the article &lt;A href="https://blogs.sas.com/content/iml/2017/07/12/bootstrap-bca-interval.html" target="_self"&gt;"The bias-corrected and accelerated (BCa) bootstrap interval."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 13:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/762531#M37232</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-08-19T13:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bias corrected bootstrap CI for correlation coefficient</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/764848#M37368</link>
      <description>&lt;P&gt;I should mention that you will need an extra step if you want to bootstrap the correlation among more than two variables. In PGStat's program, the program works for a single correlation coefficient. However, when bootstrapping k &amp;gt; 2 variables, the OUTP= data set puts the correlation coefficients into a matrix. You then need to use an extra step to prepare the bootstrap distribution for analysis. For details and an example, see &lt;A href="https://blogs.sas.com/content/iml/2021/08/30/bootstrap-correlation-sas.html" target="_self"&gt;"Bootstrap correlation coefficients in SAS."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 14:24:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bias-corrected-bootstrap-CI-for-correlation-coefficient/m-p/764848#M37368</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-08-30T14:24:08Z</dc:date>
    </item>
  </channel>
</rss>

