<?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: Sensitivity and Specificity calculations using Bootstrapped dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sensitivity-and-Specificity-calculations-using-Bootstrapped/m-p/875994#M346122</link>
    <description>Can we get the 95% CIs for the bootstrapped sensitivity and specificity?</description>
    <pubDate>Tue, 16 May 2023 13:26:10 GMT</pubDate>
    <dc:creator>sms1891</dc:creator>
    <dc:date>2023-05-16T13:26:10Z</dc:date>
    <item>
      <title>Sensitivity and Specificity calculations using Bootstrapped dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sensitivity-and-Specificity-calculations-using-Bootstrapped/m-p/875800#M346058</link>
      <description>&lt;P&gt;Hi SAS experts,&lt;/P&gt;&lt;P&gt;I have a data set with&amp;nbsp; N= 2196 observations, variables PIPE1, PIPE2, PIPE3, PIPE4, PIPE5, PIPE6, &lt;STRONG&gt;PIPE_Score,&lt;/STRONG&gt; &amp;nbsp;PIIE_Triage and an outcome variable (&lt;STRONG&gt;Outcome&lt;/STRONG&gt;, values 0 for No and 1 for Yes). I need help with calculating the sensitivity and specificity for predicting the outcome based on the PIPE1 using a&lt;STRONG&gt; bootstrapping data.&lt;/STRONG&gt;&amp;nbsp; I calculated the sensitivity and specificity for the original data set but I need help with calculating the &amp;nbsp;sensitivity and specificity for the bootstrapped dataset. How can I achieve this? Any help with this is much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much in advance!&lt;/P&gt;&lt;P&gt;SM&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;PROC IMPORT OUT= WORK.Flu
            DATAFILE= "\\Desktop\Flu.xlsx" 
            DBMS=EXCEL REPLACE;
     RANGE="Sheet1$"; 
     GETNAMES=YES;
     MIXED=NO;
     SCANTEXT=YES;
     USEDATE=YES;
     SCANTIME=YES;
RUN;



 proc freq data=Flu order=data;
 tables Pipe1*Outcome / senspec;
 run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=""&gt; *Bootstrapping;
proc surveyselect data=flu NOPRINT seed=123456
out=fluBootout
method=urs 
samprate=1
reps=1000;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 May 2023 12:54:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sensitivity-and-Specificity-calculations-using-Bootstrapped/m-p/875800#M346058</guid>
      <dc:creator>sms1891</dc:creator>
      <dc:date>2023-05-15T12:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitivity and Specificity calculations using Bootstrapped dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sensitivity-and-Specificity-calculations-using-Bootstrapped/m-p/875931#M346098</link>
      <description>&lt;P&gt;On top of the below program, please also take a look at :&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/tag/bootstrap-and-resampling/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/tag/bootstrap-and-resampling/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the program (I have made my own dataset "Flu" in the first line of code) :&lt;BR /&gt;And maybe you want to reconsider your choice of "1" for samprate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The procedure treats the value 1 as 100% instead of 1%.&lt;BR /&gt;If you want 1%, use&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SAMPRATE=0.01&lt;/SPAN&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Flu; set sashelp.class; Pipe1=Sex; Outcome=Sex; run;

proc freq data=Flu order=data;
 tables Pipe1*Outcome / senspec;
run;

*Bootstrapping;
proc surveyselect data=Flu NOPRINT seed=123456
                   out=fluBootout
 method=urs 
 samprate=1
 reps=1000;
run;

ods trace off;
ods exclude CrossTabFreqs; 
ods output SenSpec=work.SenSpec;
proc freq data=fluBootout order=data;
 by Replicate;
 weight NumberHits;
 tables Pipe1*Outcome / senspec;
run;

title; footnote;

title 'Bootstrapped Sensitivity';
PROC MEANS data=work.SenSpec mean median stderr stddev;
 where Statistic='Sensitivity';
 var Estimate;
run;

title 'Bootstrapped Specificity';
PROC MEANS data=work.SenSpec mean median stderr stddev;
 where Statistic='Specificity';
 var Estimate;
run;

title; footnote;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 07:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sensitivity-and-Specificity-calculations-using-Bootstrapped/m-p/875931#M346098</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-05-16T07:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitivity and Specificity calculations using Bootstrapped dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sensitivity-and-Specificity-calculations-using-Bootstrapped/m-p/875994#M346122</link>
      <description>Can we get the 95% CIs for the bootstrapped sensitivity and specificity?</description>
      <pubDate>Tue, 16 May 2023 13:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sensitivity-and-Specificity-calculations-using-Bootstrapped/m-p/875994#M346122</guid>
      <dc:creator>sms1891</dc:creator>
      <dc:date>2023-05-16T13:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sensitivity and Specificity calculations using Bootstrapped dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sensitivity-and-Specificity-calculations-using-Bootstrapped/m-p/876013#M346127</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/146852"&gt;@sms1891&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Can we get the 95% CIs for the bootstrapped sensitivity and specificity?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Of course, you can!&lt;/P&gt;
&lt;P&gt;Look here and you will find out how to do so ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Compute a bootstrap confidence interval in SAS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; By Rick Wicklin on The DO Loop August 10, 2016&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/08/10/bootstrap-confidence-interval-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/08/10/bootstrap-confidence-interval-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 May 2023 13:57:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sensitivity-and-Specificity-calculations-using-Bootstrapped/m-p/876013#M346127</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-05-16T13:57:36Z</dc:date>
    </item>
  </channel>
</rss>

