<?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 How to calculate a confusion matrix (or ROC curve) from GLIMMIX OUTPUT statement in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-a-confusion-matrix-or-ROC-curve-from-GLIMMIX/m-p/94987#M4716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to fit a &lt;STRONG&gt;hierarchical logistic regression&lt;/STRONG&gt; with GLIMMIX procedure that allows for random effect at level-1 unit (here in my case is patient id). Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* data is sorted by id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;ods html;&lt;/P&gt;&lt;P&gt;proc glimmix&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class id sex;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model label= sex score / dist=binary link=logit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random id;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output out=out1 predpredicted;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where "score" is a continuous predictor and "label" is the binary class of patients (0: died and 1: survived). Now the question is how I can calculate a confusion matrix (table of actual versus predicted class labels) from this fitting? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Issacglimix &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Apr 2013 15:31:59 GMT</pubDate>
    <dc:creator>issac</dc:creator>
    <dc:date>2013-04-02T15:31:59Z</dc:date>
    <item>
      <title>How to calculate a confusion matrix (or ROC curve) from GLIMMIX OUTPUT statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-a-confusion-matrix-or-ROC-curve-from-GLIMMIX/m-p/94987#M4716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to fit a &lt;STRONG&gt;hierarchical logistic regression&lt;/STRONG&gt; with GLIMMIX procedure that allows for random effect at level-1 unit (here in my case is patient id). Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* data is sorted by id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;ods html;&lt;/P&gt;&lt;P&gt;proc glimmix&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class id sex;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model label= sex score / dist=binary link=logit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random id;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output out=out1 predpredicted;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where "score" is a continuous predictor and "label" is the binary class of patients (0: died and 1: survived). Now the question is how I can calculate a confusion matrix (table of actual versus predicted class labels) from this fitting? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Issacglimix &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 15:31:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-a-confusion-matrix-or-ROC-curve-from-GLIMMIX/m-p/94987#M4716</guid>
      <dc:creator>issac</dc:creator>
      <dc:date>2013-04-02T15:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a confusion matrix (or ROC curve) from GLIMMIX OUTPUT statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-a-confusion-matrix-or-ROC-curve-from-GLIMMIX/m-p/94988#M4717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you took the predicted output and ran a proc freq would that give you your confusion matrix?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 15:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-a-confusion-matrix-or-ROC-curve-from-GLIMMIX/m-p/94988#M4717</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-02T15:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a confusion matrix (or ROC curve) from GLIMMIX OUTPUT statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-a-confusion-matrix-or-ROC-curve-from-GLIMMIX/m-p/94989#M4718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Reeza &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. It's a good hint to use proc freq after proc glimmix. But honestly I am not sure which of "Pred" or "PredPA" is the best option for doing the job. Could you explain further? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 16:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-a-confusion-matrix-or-ROC-curve-from-GLIMMIX/m-p/94989#M4718</guid>
      <dc:creator>issac</dc:creator>
      <dc:date>2013-04-02T16:22:01Z</dc:date>
    </item>
  </channel>
</rss>

