<?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: Reproduction of an example from the book of Agresti in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Reproduction-of-an-example-from-the-book-of-Agresti/m-p/632397#M30310</link>
    <description>&lt;P&gt;Indeed; since this example focuses on cumulative logit, perhaps the code below is even more explicit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=party;&lt;BR /&gt;freq count;&lt;BR /&gt;model y(ref="4") = p /link=clogit aggregate scale=none;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support, anyway!&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;P. Lewczuk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2020 11:22:21 GMT</pubDate>
    <dc:creator>PiotrLewczuk</dc:creator>
    <dc:date>2020-03-16T11:22:21Z</dc:date>
    <item>
      <title>Reproduction of an example from the book of Agresti</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Reproduction-of-an-example-from-the-book-of-Agresti/m-p/632364#M30305</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;On page 183 of the book "Introduction to the Categorical Data Analysis, 2nd Edition" (2007), Agresti presents Table 6.8, stating explicitly "Table 6.8 shows output (from PROC LOGISTIC in SAS) for the ML fit of model (6.4)."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone be so kind to provide me with the code with which I could reproduce this table?. Particularly the section "Deviance and Pearson Goodness-of-Fit Statistics".&lt;/P&gt;&lt;P&gt;To make your life easier, I am attaching a script with the data, so you don't have to rewrite it.&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards,&lt;/P&gt;&lt;P&gt;Piotr Lewczuk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data party;&lt;BR /&gt;input g p y count;&lt;/P&gt;&lt;P&gt;datalines;&lt;BR /&gt;0 1 0 44&lt;BR /&gt;0 1 1 47&lt;BR /&gt;0 1 2 118&lt;BR /&gt;0 1 3 23&lt;BR /&gt;0 1 4 32&lt;BR /&gt;0 0 0 18&lt;BR /&gt;0 0 1 28&lt;BR /&gt;0 0 2 86&lt;BR /&gt;0 0 3 39&lt;BR /&gt;0 0 4 48&lt;BR /&gt;1 1 0 36&lt;BR /&gt;1 1 1 34&lt;BR /&gt;1 1 2 53&lt;BR /&gt;1 1 3 18&lt;BR /&gt;1 1 4 23&lt;BR /&gt;1 0 0 12&lt;BR /&gt;1 0 1 18&lt;BR /&gt;1 0 2 62&lt;BR /&gt;1 0 3 45&lt;BR /&gt;1 0 4 51&lt;BR /&gt;; run;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 08:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Reproduction-of-an-example-from-the-book-of-Agresti/m-p/632364#M30305</guid>
      <dc:creator>PiotrLewczuk</dc:creator>
      <dc:date>2020-03-16T08:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reproduction of an example from the book of Agresti</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Reproduction-of-an-example-from-the-book-of-Agresti/m-p/632375#M30306</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/316748"&gt;@PiotrLewczuk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the SAS community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this to get the desired output:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=party;
	class p (ref='0') y / param=reference; 
	freq count;
	model y = p / link=logit equalslopes=p aggregate scale=none lackfit;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;NB:&lt;/P&gt;
&lt;P&gt;- equalslope allows only 1 estimate for the parameter p instead of 4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 10:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Reproduction-of-an-example-from-the-book-of-Agresti/m-p/632375#M30306</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-03-16T10:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reproduction of an example from the book of Agresti</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Reproduction-of-an-example-from-the-book-of-Agresti/m-p/632386#M30308</link>
      <description>&lt;P&gt;Thank you very much! Very helpful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Piotr Lewczuk&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 10:52:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Reproduction-of-an-example-from-the-book-of-Agresti/m-p/632386#M30308</guid>
      <dc:creator>PiotrLewczuk</dc:creator>
      <dc:date>2020-03-16T10:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reproduction of an example from the book of Agresti</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Reproduction-of-an-example-from-the-book-of-Agresti/m-p/632389#M30309</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/316748"&gt;@PiotrLewczuk&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt;'s code reproduces all statistics in that Table 6.8, so it is a solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same output can also be created with the code below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=party;
class p(ref='0' param=ref);
freq count;
model y=p / aggregate scale=n;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Mar 2020 10:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Reproduction-of-an-example-from-the-book-of-Agresti/m-p/632389#M30309</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-03-16T10:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reproduction of an example from the book of Agresti</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Reproduction-of-an-example-from-the-book-of-Agresti/m-p/632397#M30310</link>
      <description>&lt;P&gt;Indeed; since this example focuses on cumulative logit, perhaps the code below is even more explicit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=party;&lt;BR /&gt;freq count;&lt;BR /&gt;model y(ref="4") = p /link=clogit aggregate scale=none;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support, anyway!&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;P. Lewczuk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 11:22:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Reproduction-of-an-example-from-the-book-of-Agresti/m-p/632397#M30310</guid>
      <dc:creator>PiotrLewczuk</dc:creator>
      <dc:date>2020-03-16T11:22:21Z</dc:date>
    </item>
  </channel>
</rss>

