<?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 CI of IRR in proc genmod in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/CI-of-IRR-in-proc-genmod/m-p/199499#M10682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am performing passion regression model, and trying to get CI for IRR, but not sure which code should be used. My code lists below. It can only shows the IRR without CI of IRR, like STATA results. Many thanks in advance for your answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc genmod data=mydata;&lt;BR /&gt; class agegrp/ param=glm;&lt;BR /&gt; model vst = agegrp female northeast northcntrl west comor&amp;nbsp; /type3 dist=Poisson;&lt;BR /&gt;store p1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*to test if poisson model form fit the data;&lt;BR /&gt;data pvalue;&lt;BR /&gt; df = 230000; chisq = 214411.9595;&lt;BR /&gt; pvalue = 1 - probchi(chisq, df);&lt;BR /&gt;run;&lt;BR /&gt;proc print data=pvalue noobs;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #800080;"&gt;ods output ParameterEstimates = est;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt;proc plm source = p1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt; show parameters;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt;data est_exp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt; set est;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt; irr = exp(estimate);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt; if parameter ^= "Intercept";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt;proc print data= est_exp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 21:44:22 GMT</pubDate>
    <dc:creator>michellel</dc:creator>
    <dc:date>2015-08-14T21:44:22Z</dc:date>
    <item>
      <title>CI of IRR in proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CI-of-IRR-in-proc-genmod/m-p/199499#M10682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am performing passion regression model, and trying to get CI for IRR, but not sure which code should be used. My code lists below. It can only shows the IRR without CI of IRR, like STATA results. Many thanks in advance for your answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc genmod data=mydata;&lt;BR /&gt; class agegrp/ param=glm;&lt;BR /&gt; model vst = agegrp female northeast northcntrl west comor&amp;nbsp; /type3 dist=Poisson;&lt;BR /&gt;store p1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*to test if poisson model form fit the data;&lt;BR /&gt;data pvalue;&lt;BR /&gt; df = 230000; chisq = 214411.9595;&lt;BR /&gt; pvalue = 1 - probchi(chisq, df);&lt;BR /&gt;run;&lt;BR /&gt;proc print data=pvalue noobs;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #800080;"&gt;ods output ParameterEstimates = est;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt;proc plm source = p1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt; show parameters;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt;data est_exp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt; set est;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt; irr = exp(estimate);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt; if parameter ^= "Intercept";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt;proc print data= est_exp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #800080;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 21:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CI-of-IRR-in-proc-genmod/m-p/199499#M10682</guid>
      <dc:creator>michellel</dc:creator>
      <dc:date>2015-08-14T21:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: CI of IRR in proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CI-of-IRR-in-proc-genmod/m-p/199500#M10683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You get the confidence intervals of the Log(IRR) in the parmest dataset. They can just be expontiated and you will have confidence intervals of IRR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the confidence intervals calculated within proc genmod you can use the estimate statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data abc;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do i=1 to 100;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; group=int(5*ranuni(-1));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; y=rand('poisson',exp(group));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods output parameterestimates=parmest;&lt;/P&gt;&lt;P&gt;proc genmod data=abc;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class group;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y=group/dist=poisson link=log;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data parmest;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set parmest;&lt;/P&gt;&lt;P&gt;&amp;nbsp; text=put(exp(estimate),5.2)||'('||put(exp(lowerwaldcl),5.2)||','||put(exp(upperwaldcl),5.2)||')';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put parameter= @25 level1= text=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*and if you want the intervals calculated by genmod:;&lt;/P&gt;&lt;P&gt;ods output estimates=estimates;&lt;/P&gt;&lt;P&gt;proc genmod data=abc;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class group;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y=group/dist=poisson link=log;&lt;/P&gt;&lt;P&gt;&amp;nbsp; estimate 'group 0 vs 4' group 1 0 0 0 -1/exp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; estimate 'group 1 vs 4' group 0 1 0 0 -1/exp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; estimate 'group 2 vs 4' group 0 0 1 0 -1/exp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; estimate 'group 3 vs 4' group 0 0 0 1 -1/exp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 14:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CI-of-IRR-in-proc-genmod/m-p/199500#M10683</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-08-15T14:40:22Z</dc:date>
    </item>
  </channel>
</rss>

