<?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: Fit statistics for external models in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Fit-statistics-for-external-models/m-p/774914#M37906</link>
    <description>&lt;P&gt;As mentioned in &lt;A href="https://support.sas.com/kb/41/364.html" target="_self"&gt;this note&lt;/A&gt; (as a method for earlier SAS releases but still usable) you can use the predicted probabilities as the sole predictor in the model to also get the ROC analysis. This method will provide the AIC statistic. If "MSE" denotes "mean square error," then this statistic doesn't apply to logistic regression since logistic models are not fit by a least squares method and therefore does not create sums of squares or mean squares.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 15:27:01 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2021-10-18T15:27:01Z</dc:date>
    <item>
      <title>Fit statistics for external models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fit-statistics-for-external-models/m-p/774848#M37896</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset scored using several (external) models for predicting probabilities that a certain event occurs. That is, in the dataset I have the binary target variable as well as predicted probabilities from the models, say p_M1, p_M2, .... Now in order to compare these models, I want SAS to compute several fit statistics, like AUC, MSE, AIC.&lt;/P&gt;&lt;P&gt;The code below (inspired by &lt;A href="https://blogs.sas.com/content/iml/2018/11/14/compare-roc-curves-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/11/14/compare-roc-curves-sas.html&lt;/A&gt;) shows me the ROC curves, and AUC values. How do I obtain the other statistics?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc logistic data=dataset;
   model target (event='1') = p_M1 p_M2 / nofit;
   roc 'Model 1' pred=p_M1;
   roc 'Model 1' pred=p_M1;
run;&lt;/PRE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not necceceralily obtained by logistic regression.&lt;/P&gt;&lt;P&gt;I want to use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 09:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fit-statistics-for-external-models/m-p/774848#M37896</guid>
      <dc:creator>drdee</dc:creator>
      <dc:date>2021-10-18T09:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fit statistics for external models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fit-statistics-for-external-models/m-p/774851#M37897</link>
      <description>&lt;P&gt;No sure how to edit my question, of course I meant&lt;/P&gt;&lt;PRE&gt;proc logistic data=dataset;
   model target (event='1') = p_M1 p_M2 / nofit;
   roc 'Model 1' pred=p_M1;
   roc 'Model 2' pred=p_M2;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Oct 2021 09:52:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fit-statistics-for-external-models/m-p/774851#M37897</guid>
      <dc:creator>drdee</dc:creator>
      <dc:date>2021-10-18T09:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Fit statistics for external models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fit-statistics-for-external-models/m-p/774914#M37906</link>
      <description>&lt;P&gt;As mentioned in &lt;A href="https://support.sas.com/kb/41/364.html" target="_self"&gt;this note&lt;/A&gt; (as a method for earlier SAS releases but still usable) you can use the predicted probabilities as the sole predictor in the model to also get the ROC analysis. This method will provide the AIC statistic. If "MSE" denotes "mean square error," then this statistic doesn't apply to logistic regression since logistic models are not fit by a least squares method and therefore does not create sums of squares or mean squares.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 15:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fit-statistics-for-external-models/m-p/774914#M37906</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-10-18T15:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fit statistics for external models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fit-statistics-for-external-models/m-p/775893#M37993</link>
      <description>Thanks for you reply! This is useful.&lt;BR /&gt;I believe MSE is a useful statistic for logistic regression models as well, even though they are fit by maximum likelihood. MSE is also called the Brier score.</description>
      <pubDate>Fri, 22 Oct 2021 15:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fit-statistics-for-external-models/m-p/775893#M37993</guid>
      <dc:creator>drdee</dc:creator>
      <dc:date>2021-10-22T15:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fit statistics for external models</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fit-statistics-for-external-models/m-p/775895#M37994</link>
      <description>&lt;P&gt;See the link to the list of Frequently Asked-for Statistics (FASTats) in the Important Links section of the Statistical Procedures Community page. As noted there, the Brier score is available from the FITSTAT option in the SCORE statement of PROC LOGISTIC.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 15:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fit-statistics-for-external-models/m-p/775895#M37994</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-10-22T15:36:38Z</dc:date>
    </item>
  </channel>
</rss>

