<?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: Effective way to calculate youden's index? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669784#M200968</link>
    <description>&lt;P&gt;A quick google search on SAS Youden index yields: &lt;A href="https://www.pharmasug.org/proceedings/2016/SP/PharmaSUG-2016-SP11.pdf" target="_blank"&gt;https://www.pharmasug.org/proceedings/2016/SP/PharmaSUG-2016-SP11.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And others.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jul 2020 02:26:26 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-07-16T02:26:26Z</dc:date>
    <item>
      <title>Effective way to calculate youden's index?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669755#M200947</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set where one real outcome variable (binary variable 0 or 1) and the model predicted binary variable (0 or 1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I have 60 number of the model predicted binary variable in the data set, which means I need to create the 2*2 table with the actual outcome and each of the model predicted variable to compute the sensitivity, specificity, and youden's index.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the screen shot of my data. In the below data set, allfrc is my real outcome variable and lnn_naa1, lnn_naa2,....., are my model predicted outcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lln.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47224i712D494E6B2A5656/image-size/large?v=v2&amp;amp;px=999" role="button" title="lln.JPG" alt="lln.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the following command to compute the sensitivity and sensitivity.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=mydata out=dataout;&lt;BR /&gt;by descending lnn_naa1 descending allfrc;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc freq data = dataout order=data;&lt;BR /&gt;table lnn_naa1*allfrc / senspec ;&lt;BR /&gt;test kappa;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I created this as macro and run with each model predicted outcome variable (for example, lnn_naa1 * allfrc, and then lnn_naa2*allfrc). But this way takes a lot of time to run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Any recommendation to run the actual outcome * model predicted outcome with calculating the sensitivity, specificity and youden's index?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help and comments!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 00:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669755#M200947</guid>
      <dc:creator>jystat</dc:creator>
      <dc:date>2020-07-16T00:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Effective way to calculate youden's index?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669764#M200954</link>
      <description>&lt;P&gt;If you are going to run a proc freq many times on one table, try loading it in memory use SASFILE beforehand to speed up reading the data.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 01:33:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669764#M200954</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-16T01:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Effective way to calculate youden's index?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669766#M200956</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your comment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to look at the SASFILE to use in the memory. I'm kind of stuck that I need to sort first before I create the 2*2 table and then I do proc freq.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to make the out of sort file in the macro for each my model predicted outcome. Do you know how can I compute the sensitivty, specificity, and youden's index from proc freq table output? I have output of sensitivity and specificity from the table, not the youden's index.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 01:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669766#M200956</guid>
      <dc:creator>jystat</dc:creator>
      <dc:date>2020-07-16T01:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Effective way to calculate youden's index?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669769#M200959</link>
      <description>&lt;P&gt;You can use parentheses to group variables, or variable lists for use on a tables statement in proc freq.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;tables ( inn: )* allfrc / senspec;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which should use all. of the variables whose names start with INN agains allfrc. If you need other variables&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tables ( inn: )* (allfrc othervar somevar) / senspec;&lt;/P&gt;
&lt;P&gt;would cross all of the inn vars against the three in parentheses.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 01:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669769#M200959</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-16T01:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Effective way to calculate youden's index?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669770#M200960</link>
      <description>&lt;P&gt;Are you sure you need to sort? Sorting is normally needed only when using a BY statement.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 01:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669770#M200960</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-16T01:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Effective way to calculate youden's index?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669771#M200961</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do sorting always whenever I create the 2*2 table to look at the sensitivity and specificity.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 01:47:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669771#M200961</guid>
      <dc:creator>jystat</dc:creator>
      <dc:date>2020-07-16T01:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Effective way to calculate youden's index?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669778#M200963</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it is giving me all the frequency table with the (inn:). (I knew this techniques, but I never think about this, thank you for your response!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;I searched if there is anyway I can use to calculate the youden'x index from the output, but I do not see any SAS function. Do you know SAS has any this kind of function or I need to calculate by manually?&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="branch"&gt;Thank you!&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Jul 2020 02:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669778#M200963</guid>
      <dc:creator>jystat</dc:creator>
      <dc:date>2020-07-16T02:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Effective way to calculate youden's index?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669783#M200967</link>
      <description>&lt;P&gt;Re. Youden, did you see these pages?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/95-confidence-intervals-of-Youden-index/td-p/542313" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/95-confidence-intervals-of-Youden-index/td-p/542313&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/25/018.html" target="_blank"&gt;https://support.sas.com/kb/25/018.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 02:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669783#M200967</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-16T02:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Effective way to calculate youden's index?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669784#M200968</link>
      <description>&lt;P&gt;A quick google search on SAS Youden index yields: &lt;A href="https://www.pharmasug.org/proceedings/2016/SP/PharmaSUG-2016-SP11.pdf" target="_blank"&gt;https://www.pharmasug.org/proceedings/2016/SP/PharmaSUG-2016-SP11.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And others.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 02:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Effective-way-to-calculate-youden-s-index/m-p/669784#M200968</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-16T02:26:26Z</dc:date>
    </item>
  </channel>
</rss>

