<?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>Psueri Tracker</title>
    <link>https://communities.sas.com/kntur85557/tracker</link>
    <description>Psueri Tracker</description>
    <pubDate>Sun, 19 Apr 2026 05:21:49 GMT</pubDate>
    <dc:date>2026-04-19T05:21:49Z</dc:date>
    <item>
      <title>Re: PROC COUNTREG - Scoring with Zero Inflate Conway Maxwell Poisson (ZICMP)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-COUNTREG-Scoring-with-Zero-Inflate-Conway-Maxwell-Poisson/m-p/926273#M46068</link>
      <description>I found that the value of Lambda is Lambda = mu^nu&lt;BR /&gt;But the values of P(y=0), P(y!=0) and Predicted are still wrong</description>
      <pubDate>Mon, 29 Apr 2024 10:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-COUNTREG-Scoring-with-Zero-Inflate-Conway-Maxwell-Poisson/m-p/926273#M46068</guid>
      <dc:creator>Psueri</dc:creator>
      <dc:date>2024-04-29T10:43:48Z</dc:date>
    </item>
    <item>
      <title>PROC COUNTREG - Scoring with Zero Inflate Conway Maxwell Poisson (ZICMP)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-COUNTREG-Scoring-with-Zero-Inflate-Conway-Maxwell-Poisson/m-p/926066#M46056</link>
      <description>&lt;P&gt;Hello Sas Community,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;I am currently working on a project where I need to utilize PROC COUNTREG in SAS, particularly focusing on utilizing ZICMP distribution with spatialeffects.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to manually score based on the parameters, and from the documentation, I've reconstructed the following steps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Let:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;n be the number of observations&lt;/LI&gt;&lt;LI&gt;m be the number of model regressors&lt;/LI&gt;&lt;LI&gt;s be the number of spatial effects regressors&lt;/LI&gt;&lt;LI&gt;z be the number of zero model regressors&lt;/LI&gt;&lt;LI&gt;d be the number of dispersion model regressors&lt;/LI&gt;&lt;LI&gt;X1 (n x m) be the matrix containing the values of m model regressors&lt;/LI&gt;&lt;LI&gt;X2 (n x s) be the matrix containing the values of s spatial effects regressors&lt;/LI&gt;&lt;LI&gt;Z1 (n x z) be the matrix containing the values of z zero model regressors&lt;/LI&gt;&lt;LI&gt;D1 (n x d) be the matrix containing the values of d dispersion model regressors&lt;/LI&gt;&lt;LI&gt;Wmat (n x n) be the spatial weights matrix&lt;/LI&gt;&lt;LI&gt;Beta1 (m x 1) be the vector containing the coefficients of m model regressors&lt;/LI&gt;&lt;LI&gt;Beta2 (s x 1) be the vector containing the coefficients of s spatial effects regressors&lt;/LI&gt;&lt;LI&gt;Gamma (z x 1) be the vector containing the coefficients of z zero model regressors&lt;/LI&gt;&lt;LI&gt;Delta (d x 1) be the vector containing the coefficients of d dispersion model regressors&lt;/LI&gt;&lt;LI&gt;Intercept be the value of the intercept of the model&lt;/LI&gt;&lt;LI&gt;Inf_Intercept be the value of the intercept of the zero model&lt;/LI&gt;&lt;LI&gt;Disp_Intercept be the value of the intercept of the dispersion model&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Psueri_2-1714146494522.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95929i3EE0174BB7444023/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Psueri_2-1714146494522.png" alt="Psueri_2-1714146494522.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Psueri_3-1714146494522.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95933i484457023B8BCBB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Psueri_3-1714146494522.png" alt="Psueri_3-1714146494522.png" /&gt;&lt;/span&gt;&amp;nbsp;, or&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Psueri_4-1714146494523.png" style="width: 133px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95935i14CF4B62EA0D4428/image-dimensions/133x44?v=v2" width="133" height="44" role="button" title="Psueri_4-1714146494523.png" alt="Psueri_4-1714146494523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Psueri_5-1714146494523.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95934iD900AB8C2B76DFCD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Psueri_5-1714146494523.png" alt="Psueri_5-1714146494523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Psueri_6-1714146494523.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95937i0C068C24384D84BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Psueri_6-1714146494523.png" alt="Psueri_6-1714146494523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Psueri_7-1714146494524.png" style="width: 292px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95938i8ED392BEB3B9D7B1/image-dimensions/292x27?v=v2" width="292" height="27" role="button" title="Psueri_7-1714146494524.png" alt="Psueri_7-1714146494524.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But the values of lambda vector obtained in the output of the countreg differs from the ones computed as exp(xbeta), that is instead the value mu in the countreg output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Psueri_8-1714146494524.png" style="width: 263px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95936iD9E3F54D619BA70F/image-dimensions/263x25?v=v2" width="263" height="25" role="button" title="Psueri_8-1714146494524.png" alt="Psueri_8-1714146494524.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(in documentation there is a typo in the ZICMP, but it's correct in CMP and the results are the same of countreg output)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Psueri_9-1714146494524.png" style="width: 288px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95939iC1AC9DD11CC85FCE/image-dimensions/288x93?v=v2" width="288" height="93" role="button" title="Psueri_9-1714146494524.png" alt="Psueri_9-1714146494524.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now there isn't a finite form for this Normalization Factor, following the paper:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Approximating the Conway–Maxwell–Poisson distribution normalization constant &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Steven B. Gillispie &lt;/EM&gt;&lt;EM&gt;∗&lt;/EM&gt;&lt;EM&gt; and Christopher G. Green &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;University of Washington, Seattle, USA — Department of Statistics &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Technical Report no. 615 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;June 6, 2013&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this approximation formula&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Psueri_10-1714147059902.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95940iFB9F3DC290B0DBB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Psueri_10-1714147059902.png" alt="Psueri_10-1714147059902.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Psueri_11-1714147103297.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95941iBB9054448D6B7BFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Psueri_11-1714147103297.png" alt="Psueri_11-1714147103297.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Psueri_14-1714147225679.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95945i4EB4651610802E42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Psueri_14-1714147225679.png" alt="Psueri_14-1714147225679.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Psueri_15-1714147225680.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95944iC3FD3B7CCC90CB3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Psueri_15-1714147225680.png" alt="Psueri_15-1714147225680.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, the predicted results &lt;SPAN&gt;&lt;SPAN class=""&gt;obtained do not match those obtained from the output of the countreg. The differing values are:&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;Lambda (as mentioned above), P(y=0), P(y!=0) and Predicted (those three latter are probably due to the Lambda error)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any examples, tips, or resources you could share would be greatly appreciated. Thank you in advance for your assistance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Piero&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 16:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-COUNTREG-Scoring-with-Zero-Inflate-Conway-Maxwell-Poisson/m-p/926066#M46056</guid>
      <dc:creator>Psueri</dc:creator>
      <dc:date>2024-04-26T16:13:50Z</dc:date>
    </item>
  </channel>
</rss>

