<?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: Classification table for ordinal logistic regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Classification-table-for-ordinal-logistic-regression/m-p/677784#M32563</link>
    <description>&lt;P&gt;If you just want to obtain a predicted by actual classification table (sometimes called a "confusion" matrix), that is discussed in &lt;A href="http://support.sas.com/kb/22603" target="_self"&gt;this note&lt;/A&gt;. If you want the area under the ROC curve (AUC) as a measure of model performance, a multinomial version of the usual AUC for binary response models is available with the &lt;A href="http://support.sas.com/kb/64029" target="_self"&gt;MultAUC macro&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Aug 2020 13:16:54 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2020-08-19T13:16:54Z</dc:date>
    <item>
      <title>Classification table for ordinal logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Classification-table-for-ordinal-logistic-regression/m-p/677734#M32559</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a dataset similar to the one below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
DATA HAVE;
   input ID	Age	Sex	DM	IHD	Cholesterol	Outcome;
   DATALINES;
1	49	1	0	0	0	0
2	20	1	0	1	1	0
3	23	1	0	0	0	1
4	56	1	1	1	1	2
5	39	0	1	1	1	0
6	57	1	1	1	1	2
7	28	0	0	0	0	0
9	34	0	1	0	0	0
10	45	0	0	0	0	0
11	48	1	0	0	0	0
14	28	1	1	1	1	2
15	41	1	0	0	0	0
16	26	1	0	1	1	0
18	59	0	1	0	1	0
19	51	0	0	0	0	0
20	49	1	1	0	0	0
21	50	0	0	0	0	0
24	56	1	0	1	0	0
25	51	1	1	1	1	2
26	57	0	1	0	0	0
27	32	1	0	0	0	0
28	33	0	0	0	0	0
29	36	0	0	0	0	0
30	54	1	0	0	0	0
32	41	0	0	0	0	0
33	65	1	0	0	0	0
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am running a logistic regression with the dependant variable 'outcome'. As this variable has three ordered levels, this is essentially an ordinal logistic regression. I am also trying to get the classification table using ctable as below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc logistic data=have;
class Sex	DM	IHD	Cholesterol	Outcome/param=glm;
model Outcome=age  Sex	DM	IHD	Cholesterol	Outcome/CLPARM=wald ctable;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The attached data is only a small dataset so the estimates are nothing to worry about, but the classification table is not generated and a note is generated:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
NOTE: Since there are more than 2 response levels, the following options have no effect --
      CTABLE.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Not sure to solve this issue. I would appreciate very much any suggestion on how to obtain the classification table.&lt;/P&gt;
&lt;P&gt;Best regards.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 08:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Classification-table-for-ordinal-logistic-regression/m-p/677734#M32559</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2020-08-19T08:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Classification table for ordinal logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Classification-table-for-ordinal-logistic-regression/m-p/677778#M32561</link>
      <description>&lt;P&gt;Since CTABLE is dependent on the cutpoint, things get difficult for a multinomial response variable.&amp;nbsp; I suppose you could get the predicted probability for a case to be in each of the levels for a vector of cutpoints, and then present the results, but the post-processing code may not be simple.&amp;nbsp; Perhaps someone out there has written a macro or even a datastep to do this.&amp;nbsp; I think it would need the PREDPROBS= option in the OUTPUT statement, and a variety of cutpoint values for the various levels.&amp;nbsp; You would have to then look at a table of correctly classified/incorrectly classified vs level.&amp;nbsp; Seems that getting out sensitivity and specificity from a 2xK table would be difficult if not impossible as they may not be defined, but at least you would have a table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 12:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Classification-table-for-ordinal-logistic-regression/m-p/677778#M32561</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-08-19T12:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Classification table for ordinal logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Classification-table-for-ordinal-logistic-regression/m-p/677784#M32563</link>
      <description>&lt;P&gt;If you just want to obtain a predicted by actual classification table (sometimes called a "confusion" matrix), that is discussed in &lt;A href="http://support.sas.com/kb/22603" target="_self"&gt;this note&lt;/A&gt;. If you want the area under the ROC curve (AUC) as a measure of model performance, a multinomial version of the usual AUC for binary response models is available with the &lt;A href="http://support.sas.com/kb/64029" target="_self"&gt;MultAUC macro&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 13:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Classification-table-for-ordinal-logistic-regression/m-p/677784#M32563</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-08-19T13:16:54Z</dc:date>
    </item>
  </channel>
</rss>

