<?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: Create a graph or chart to display sensitivity and specificity of multiple tests with 95% CI in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833719#M35797</link>
    <description>&lt;P&gt;I don't recommend that graphic either, forest plots will definitely be nicer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
informat sn sp percent.;
infile cards dlm='09'x;
input group $ sn sp sn_ll sn_ul sp_ll sp_ul;
cards;
X	60%	70%	0.45 	0.98	0.50	0.90
Y	70%	75%	0.35	0.95	0.40	0.90
Z	80%	80%	0.62	1.00	0.50	1.00
;;;;
run;

data long;
set have;
  type = "Sensitivity";
  value = sn;
  ll = sn_ll;
  ul = sn_ul;
  output;
  type = 'Specificity';
  value = sp;
  ll = sp_ll;
  ul = sp_ul;
  output;
  
  drop sn: sp:;
run;

proc sgplot data=long;
vbarparm category=group response = value / limitlower=ll limitupper=ul group=type groupdisplay=cluster;
run;


proc sgplot data=long;
highlow x=group  high=ul low = ll / group = type open =value groupdisplay = cluster;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 15 Sep 2022 19:59:19 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-09-15T19:59:19Z</dc:date>
    <item>
      <title>Create a graph or chart to display sensitivity and specificity of multiple tests with 95% CI</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833672#M35788</link>
      <description>&lt;P&gt;How can I create a graph or chart to display sensitivity and specificity&amp;nbsp;with 95% confidence intervals of multiple screening tests?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="20%"&gt;Name of Tests&lt;/TD&gt;
&lt;TD width="20%"&gt;Sn&lt;/TD&gt;
&lt;TD width="20%"&gt;Sp&lt;/TD&gt;
&lt;TD width="20%"&gt;Lower limit of 95% CI&lt;/TD&gt;
&lt;TD width="20%"&gt;Upper limit of 95% CI&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%"&gt;A&lt;/TD&gt;
&lt;TD width="20%"&gt;60%&lt;/TD&gt;
&lt;TD width="20%"&gt;70%&lt;/TD&gt;
&lt;TD width="20%"&gt;0.45&amp;nbsp;&lt;/TD&gt;
&lt;TD width="20%"&gt;0.98&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%"&gt;B&lt;/TD&gt;
&lt;TD width="20%"&gt;70%&lt;/TD&gt;
&lt;TD width="20%"&gt;75%&lt;/TD&gt;
&lt;TD width="20%"&gt;0.75&lt;/TD&gt;
&lt;TD width="20%"&gt;0.95&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%"&gt;C&lt;/TD&gt;
&lt;TD width="20%"&gt;80%&lt;/TD&gt;
&lt;TD width="20%"&gt;80%&lt;/TD&gt;
&lt;TD width="20%"&gt;0.82&lt;/TD&gt;
&lt;TD width="20%"&gt;1.00&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 15 Sep 2022 17:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833672#M35788</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2022-09-15T17:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create a graph or chart to display sensitivity and specificity of multiple tests with 95% CI</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833685#M35791</link>
      <description>&lt;P&gt;What would such a chart look like? Can you point us to an example somewhere on the internet? Or draw it somehow and show us?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 17:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833685#M35791</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-15T17:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a graph or chart to display sensitivity and specificity of multiple tests with 95% CI</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833699#M35793</link>
      <description>&lt;P&gt;I should have added two more columns to the hypothetical table. I have revised the 95% CI values to make it more realistic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="175.45px" height="57px"&gt;Name of Tests&lt;/TD&gt;
&lt;TD width="175.062px" height="57px"&gt;Sn&lt;/TD&gt;
&lt;TD width="175.062px" height="57px"&gt;Sp&lt;/TD&gt;
&lt;TD width="175.488px" height="57px"&gt;
&lt;P&gt;Lower limit of 95% CI&lt;/P&gt;
&lt;P&gt;for Sn&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="88.725px" height="57px"&gt;
&lt;P&gt;Upper limit of 95% CI&lt;/P&gt;
&lt;P&gt;for Sn&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="54.5875px" height="57px"&gt;
&lt;P&gt;Lower limit of 95% CI&lt;/P&gt;
&lt;P&gt;for Sp&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="54.625px"&gt;
&lt;P&gt;Upper limit of 95% CI&lt;/P&gt;
&lt;P&gt;for Sp&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="175.45px" height="30px"&gt;X&lt;/TD&gt;
&lt;TD width="175.062px" height="30px"&gt;60%&lt;/TD&gt;
&lt;TD width="175.062px" height="30px"&gt;70%&lt;/TD&gt;
&lt;TD width="175.488px" height="30px"&gt;0.45&amp;nbsp;&lt;/TD&gt;
&lt;TD width="88.725px" height="30px"&gt;0.98&lt;/TD&gt;
&lt;TD width="54.5875px" height="30px"&gt;0.50&lt;/TD&gt;
&lt;TD width="54.625px"&gt;0.90&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="175.45px" height="30px"&gt;Y&lt;/TD&gt;
&lt;TD width="175.062px" height="30px"&gt;70%&lt;/TD&gt;
&lt;TD width="175.062px" height="30px"&gt;75%&lt;/TD&gt;
&lt;TD width="175.488px" height="30px"&gt;0.35&lt;/TD&gt;
&lt;TD width="88.725px" height="30px"&gt;0.95&lt;/TD&gt;
&lt;TD width="54.5875px" height="30px"&gt;0.40&lt;/TD&gt;
&lt;TD width="54.625px"&gt;0.90&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="175.45px" height="30px"&gt;Z&lt;/TD&gt;
&lt;TD width="175.062px" height="30px"&gt;80%&lt;/TD&gt;
&lt;TD width="175.062px" height="30px"&gt;80%&lt;/TD&gt;
&lt;TD width="175.488px" height="30px"&gt;0.62&lt;/TD&gt;
&lt;TD width="88.725px" height="30px"&gt;1.00&lt;/TD&gt;
&lt;TD width="54.5875px" height="30px"&gt;0.50&lt;/TD&gt;
&lt;TD width="54.625px"&gt;1.00&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see the graph in the link,&amp;nbsp;&lt;A href="https://www.bing.com/images/search?view=detailV2&amp;amp;ccid=57v0ajeC&amp;amp;id=35FD4764F40D5E83E8220F2EA15FE2DFF30FAAE7&amp;amp;thid=OIP.57v0ajeC9KiCoC6AJ0iloQHaF7&amp;amp;mediaurl=https%3a%2f%2fr-graphics.org%2fR-Graphics-Cookbook-2e_files%2ffigure-html%2fFIG-ANNOTATE-ERRORBAR-GROUP-BAR-1.png&amp;amp;cdnurl=https%3a%2f%2fth.bing.com%2fth%2fid%2fR.e7bbf46a3782f4a882a02e802748a5a1%3frik%3d56oP89%252fiX6EuDw%26pid%3dImgRaw%26r%3d0&amp;amp;exph=768&amp;amp;expw=960&amp;amp;q=graph+with+error+bars&amp;amp;simid=608034646507477657&amp;amp;FORM=IRPRST&amp;amp;ck=ABC402306258F1276018C0ECB80330E0&amp;amp;selectedIndex=4&amp;amp;ajaxhist=0&amp;amp;ajaxserp=0" target="_blank"&gt;(1) graph with error bars - Bing images&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Think, the red and blue bars as Sn and Sp, respectively. The lines as 95% CI. d16 as Test X, d20 as Test Y, and d21 as Test Z&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 18:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833699#M35793</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2022-09-15T18:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create a graph or chart to display sensitivity and specificity of multiple tests with 95% CI</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833704#M35794</link>
      <description>&lt;P&gt;I don't think I'd do that as a bar chart.&amp;nbsp; I might try a forest plot, basically a dot plot with intervals on each dot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are a few graphing blogs from gurus at SAS that might help, with examples of bar charts and dot plots&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2017/10/22/tips-tricks-segmented-discrete-axis/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2017/10/22/tips-tricks-segmented-discrete-axis/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://blogs.sas.com/content/graphicallyspeaking/2012/01/12/custom-confidence-intervals/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2012/01/12/custom-confidence-intervals/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2011/10/07/creating-bar-charts-with-confidence-intervals.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2011/10/07/creating-bar-charts-with-confidence-intervals.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 18:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833704#M35794</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-09-15T18:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create a graph or chart to display sensitivity and specificity of multiple tests with 95% CI</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833719#M35797</link>
      <description>&lt;P&gt;I don't recommend that graphic either, forest plots will definitely be nicer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
informat sn sp percent.;
infile cards dlm='09'x;
input group $ sn sp sn_ll sn_ul sp_ll sp_ul;
cards;
X	60%	70%	0.45 	0.98	0.50	0.90
Y	70%	75%	0.35	0.95	0.40	0.90
Z	80%	80%	0.62	1.00	0.50	1.00
;;;;
run;

data long;
set have;
  type = "Sensitivity";
  value = sn;
  ll = sn_ll;
  ul = sn_ul;
  output;
  type = 'Specificity';
  value = sp;
  ll = sp_ll;
  ul = sp_ul;
  output;
  
  drop sn: sp:;
run;

proc sgplot data=long;
vbarparm category=group response = value / limitlower=ll limitupper=ul group=type groupdisplay=cluster;
run;


proc sgplot data=long;
highlow x=group  high=ul low = ll / group = type open =value groupdisplay = cluster;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Sep 2022 19:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833719#M35797</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-15T19:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create a graph or chart to display sensitivity and specificity of multiple tests with 95% CI</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833890#M35806</link>
      <description>&lt;P&gt;Thanks so much! Is it possible to change color of the bars or lines for confidence intervals?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 16:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833890#M35806</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2022-09-16T16:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create a graph or chart to display sensitivity and specificity of multiple tests with 95% CI</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833891#M35807</link>
      <description>&lt;P&gt;Yes, take a look at the documentation for specifications or data attribute maps.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 16:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833891#M35807</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-16T16:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create a graph or chart to display sensitivity and specificity of multiple tests with 95% CI</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833898#M35809</link>
      <description>I can't seem to understand it. When I use fillattrs=(color=blig), it changes color of both types of bars. How can I choose two colors for two types of bars?</description>
      <pubDate>Fri, 16 Sep 2022 17:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833898#M35809</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2022-09-16T17:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create a graph or chart to display sensitivity and specificity of multiple tests with 95% CI</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833899#M35810</link>
      <description>You specified only one colour in the parenthesis. What happens if you specify two colours?&lt;BR /&gt;&lt;BR /&gt;See discrete map example here:&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n18szqcwir8q2nn10od9hhdh2ksj.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n18szqcwir8q2nn10od9hhdh2ksj.htm&lt;/A&gt;</description>
      <pubDate>Fri, 16 Sep 2022 17:12:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833899#M35810</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-16T17:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a graph or chart to display sensitivity and specificity of multiple tests with 95% CI</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833901#M35812</link>
      <description>It ignores the second color, if I mention two colors in the parentheses.</description>
      <pubDate>Fri, 16 Sep 2022 17:28:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833901#M35812</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2022-09-16T17:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a graph or chart to display sensitivity and specificity of multiple tests with 95% CI</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833905#M35813</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=long;
styleattrs datacolors=(cx9999ff cx993366);
vbarparm category=group response = value / limitlower=ll limitupper=ul group=type groupdisplay=cluster;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Use STYLEATTRS but if you're missing a category you MUST use data attribute maps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 17:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833905#M35813</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-16T17:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create a graph or chart to display sensitivity and specificity of multiple tests with 95% CI</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833907#M35814</link>
      <description>Wow! You are great!</description>
      <pubDate>Fri, 16 Sep 2022 17:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-graph-or-chart-to-display-sensitivity-and-specificity/m-p/833907#M35814</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2022-09-16T17:59:36Z</dc:date>
    </item>
  </channel>
</rss>

