<?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 Can I get r-square in proc GLM with log link and Poisson distribution? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-r-square-in-proc-GLM-with-log-link-and-Poisson/m-p/233469#M12312</link>
    <description>&lt;P&gt;I can get r-square when processing OLS model. But...can I get r-square in&amp;nbsp;proc GLM with log link and Poisson distribution? Here is SAS my code.&lt;/P&gt;&lt;P&gt;proc genmod data=;&lt;BR /&gt;model &amp;nbsp;= &amp;nbsp;/ dist= poisson link=log;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2015 16:15:39 GMT</pubDate>
    <dc:creator>yhung9</dc:creator>
    <dc:date>2015-11-06T16:15:39Z</dc:date>
    <item>
      <title>Can I get r-square in proc GLM with log link and Poisson distribution?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-r-square-in-proc-GLM-with-log-link-and-Poisson/m-p/233469#M12312</link>
      <description>&lt;P&gt;I can get r-square when processing OLS model. But...can I get r-square in&amp;nbsp;proc GLM with log link and Poisson distribution? Here is SAS my code.&lt;/P&gt;&lt;P&gt;proc genmod data=;&lt;BR /&gt;model &amp;nbsp;= &amp;nbsp;/ dist= poisson link=log;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 16:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-r-square-in-proc-GLM-with-log-link-and-Poisson/m-p/233469#M12312</guid>
      <dc:creator>yhung9</dc:creator>
      <dc:date>2015-11-06T16:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get r-square in proc GLM with log link and Poisson distribution?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-r-square-in-proc-GLM-with-log-link-and-Poisson/m-p/235609#M12468</link>
      <description>&lt;P&gt;See this thread:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/Calculate-R2-for-mixed-models-Nakagawa-and-Schielzeth-method/m-p/197072#M10564?tstart=0" target="_self"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/Calculate-R2-for-mixed-models-Nakagawa-and-Schielzeth-method/m-p/197072#M10564?tstart=0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which include links to papers and R code. I would think that code to compute R^2 for a GLMM would also work for a GLM, but I've not tried it. I don't know whether SAS code is available; Steve Denham provides a rough outline of a SAS approach in one of his responses, but no code per se.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;Susan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 05:24:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-r-square-in-proc-GLM-with-log-link-and-Poisson/m-p/235609#M12468</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2015-11-20T05:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get r-square in proc GLM with log link and Poisson distribution?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-r-square-in-proc-GLM-with-log-link-and-Poisson/m-p/235798#M12479</link>
      <description>&lt;P&gt;Several versions of pseudo-R2 statistics have been proposed for generalized linear models (GLMs). Here is one developed in the 1990s by Cameron and WIndmeijer and by Waldhor. You need to run the procedure twice, once with the covariates (predictor variables, factors) and once without any covariates. Get the Deviance for each model fit (it is printed). Then,&lt;/P&gt;
&lt;P&gt;pseduo-R2 = 1 - [Dev_full / Dev_red]&lt;/P&gt;
&lt;P&gt;where Dev_full is the deviance for the full model (with all the predictors), and Dev_red is the deviance with no predictors. The argument for this R2 comes from the equivalence of deviances and sums of squares for linear models. You can read more about other approaches in Heinzl and Mittbock (2003; Computational Statistics and Data Analysis 44, pages 253-271).&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 22:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-I-get-r-square-in-proc-GLM-with-log-link-and-Poisson/m-p/235798#M12479</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-11-20T22:42:53Z</dc:date>
    </item>
  </channel>
</rss>

