<?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: How do I output the c-statistic (AUC) in proc logistic when using the strata statement? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-output-the-c-statistic-AUC-in-proc-logistic-when-using/m-p/396015#M20673</link>
    <description>&lt;P&gt;In a fixed effects model you are maximizing a conditional log likelihood which allows you to avoid estimating all of the individual strata parameters. Those strata parameters would be in the unconditional model resulting from putting the strata variable in the model instead of the STRATA statement. Without these parameters, the usual unconditional predicted probabilities for each observation are not possible, and these are necessary to compute the statistics that make up the ROC curve and its area.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And from Rick:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;The AUC (c) statistic is contained in the "Association" table, but&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_logistic_syntax34.htm&amp;amp;locale=en" target="_self" rel="nofollow noopener noreferrer"&gt;as stated in the documentation&lt;/A&gt;,&amp;nbsp;the "Association" table is not created when you use the STRATA statement. (Similarly, the ROC statement and the OUTROC= option are not allowed when a STRATA statement is specified.) So what you are asking for doesn't make sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying to compare/contrast the ROC curves for various models, you can use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_logistic_examples08.htm&amp;amp;locale=en" target="_self" rel="nofollow noopener noreferrer"&gt;ROC and ROCCONTRAST statements.&lt;/A&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 20 Apr 2022 21:59:22 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2022-04-20T21:59:22Z</dc:date>
    <item>
      <title>How do I output the c-statistic (AUC) in proc logistic when using the strata statement?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-output-the-c-statistic-AUC-in-proc-logistic-when-using/m-p/394227#M20580</link>
      <description>&lt;P&gt;How do I output the c-statistic with proc logistic when the strata statement is used? Without the strata statement, this statistic is output automatically. Google searches indicate many of the options for outputting data related to the c-statistic in proc logistic do not apply when the strata statement is used, and I'm looking for a workaround. I'm using SAS 9.4.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 14:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-output-the-c-statistic-AUC-in-proc-logistic-when-using/m-p/394227#M20580</guid>
      <dc:creator>rachard11</dc:creator>
      <dc:date>2017-09-08T14:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output the c-statistic (AUC) in proc logistic when using the strata statement?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-output-the-c-statistic-AUC-in-proc-logistic-when-using/m-p/394290#M20581</link>
      <description>&lt;P&gt;The AUC (c) statistic is contained in the "Association" table, but &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_logistic_syntax34.htm&amp;amp;locale=en" target="_self"&gt;as stated in the documentation&lt;/A&gt;,&amp;nbsp;the "Association" table is not created when you use the STRATA statement. (Similarly, the ROC statement and the OUTROC= option are not allowed when a STRATA statement is specified.) So what you are asking for doesn't make sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying to compare/contrast the ROC curves for various models, you can use the &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_logistic_examples08.htm&amp;amp;locale=en" target="_self"&gt;ROC and ROCCONTRAST statements.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 17:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-output-the-c-statistic-AUC-in-proc-logistic-when-using/m-p/394290#M20581</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-09-08T17:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output the c-statistic (AUC) in proc logistic when using the strata statement?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-output-the-c-statistic-AUC-in-proc-logistic-when-using/m-p/394327#M20590</link>
      <description>Thank you for the response, Rick. I'm using the strata statement to run&lt;BR /&gt;firm fixed effects in a logistic regression with panel data (each firm is a&lt;BR /&gt;separate stratum).  Conceptually, is there a reason that computing a&lt;BR /&gt;c-statistic wouldn't make sense when using the strata statement? Or is it&lt;BR /&gt;just that SAS doesn't output the association table or other output that&lt;BR /&gt;contains the c-statistic?  Sorry if I'm missing something obvious here.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Sep 2017 19:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-output-the-c-statistic-AUC-in-proc-logistic-when-using/m-p/394327#M20590</guid>
      <dc:creator>rachard11</dc:creator>
      <dc:date>2017-09-08T19:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output the c-statistic (AUC) in proc logistic when using the strata statement?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-output-the-c-statistic-AUC-in-proc-logistic-when-using/m-p/396015#M20673</link>
      <description>&lt;P&gt;In a fixed effects model you are maximizing a conditional log likelihood which allows you to avoid estimating all of the individual strata parameters. Those strata parameters would be in the unconditional model resulting from putting the strata variable in the model instead of the STRATA statement. Without these parameters, the usual unconditional predicted probabilities for each observation are not possible, and these are necessary to compute the statistics that make up the ROC curve and its area.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And from Rick:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;The AUC (c) statistic is contained in the "Association" table, but&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_logistic_syntax34.htm&amp;amp;locale=en" target="_self" rel="nofollow noopener noreferrer"&gt;as stated in the documentation&lt;/A&gt;,&amp;nbsp;the "Association" table is not created when you use the STRATA statement. (Similarly, the ROC statement and the OUTROC= option are not allowed when a STRATA statement is specified.) So what you are asking for doesn't make sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying to compare/contrast the ROC curves for various models, you can use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_logistic_examples08.htm&amp;amp;locale=en" target="_self" rel="nofollow noopener noreferrer"&gt;ROC and ROCCONTRAST statements.&lt;/A&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 20 Apr 2022 21:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-output-the-c-statistic-AUC-in-proc-logistic-when-using/m-p/396015#M20673</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-04-20T21:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output the c-statistic (AUC) in proc logistic when using the strata statement?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-output-the-c-statistic-AUC-in-proc-logistic-when-using/m-p/396037#M20676</link>
      <description>&lt;P&gt;That makes sense. Thank you for the explanation.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 17:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-output-the-c-statistic-AUC-in-proc-logistic-when-using/m-p/396037#M20676</guid>
      <dc:creator>rachard11</dc:creator>
      <dc:date>2017-09-14T17:59:56Z</dc:date>
    </item>
  </channel>
</rss>

