<?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: predicted rate from a random intercept poison model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899784#M44612</link>
    <description>&lt;P&gt;Thanks. Is there any option to obtain the IRR or exponentiation coefficients?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 13:20:58 GMT</pubDate>
    <dc:creator>BayzidR</dc:creator>
    <dc:date>2023-10-24T13:20:58Z</dc:date>
    <item>
      <title>predicted rate from a random intercept poison model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899750#M44605</link>
      <description>&lt;P&gt;I am fitting the following model with my count data.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=tre;
class ward mrn period sex;
model tre_count=period period*sex sexaknt1-aknt3 / dist=poisson link=log offset=logord;
random intercept / subject=ward;
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How can I add a new variable in the existing dataset with predicted rate from the fitted model?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 10:29:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899750#M44605</guid>
      <dc:creator>BayzidurRahman</dc:creator>
      <dc:date>2023-10-24T10:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: predicted rate from a random intercept poison model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899772#M44608</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data insure;
input id n c car$ age;
carnum=1;
if car="medium" then carnum=2;
if car="large" then carnum=3;
ln = log(n);
datalines;
1 500 42 small 1
1 1200 37 medium 1
1 100 1 large 1
1 400 101 small 2
1 500 73 medium 2
1 300 14 large 2
2 50 4 small 1
2 10 7 medium 1
2 300 10 large 1
2 420 101 small 2
2 510 73 medium 2
2 30 14 large 2
3 70 40 small 1
3 150 17 medium 1
3 30 20 large 1
3 250 10 small 2
3 50 3 medium 2
3 300 140 large 2
;


proc glimmix data=insure;
class car age;
model c=car age / dist=poisson link=log offset=ln;
random intercept / subject=id;
store gmxplants;
run; 
proc plm restore=gmxplants;
score data=insure out=out pred stderr lclm uclm / nooffset ilink;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Oct 2023 12:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899772#M44608</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-10-24T12:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: predicted rate from a random intercept poison model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899773#M44609</link>
      <description>&lt;P&gt;Short answer: You can't.&lt;/P&gt;
&lt;P&gt;Reason, once a data set is created in SAS adding a variable requires REPLACING the data set. You don't "add" a variable to it. If you want the same name you replace the data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basic approach would be to create a data set with the predicted rate. That would be the OUTPUT statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output out=newdatasetname&amp;nbsp; pred=nameofpredictedvaluevariable ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suggestion: DO NOT reuse the source data set name and replace it. If you make a mistake you may corrupt your existing data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437116"&gt;@BayzidurRahman&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am fitting the following model with my count data.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=tre;
class ward mrn period sex;
model tre_count=period period*sex sexaknt1-aknt3 / dist=poisson link=log offset=logord;
random intercept / subject=ward;
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How can I add a new variable in the existing dataset with predicted rate from the fitted model?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 12:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899773#M44609</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-24T12:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: predicted rate from a random intercept poison model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899776#M44610</link>
      <description>&lt;P&gt;Thanks very much.&lt;BR /&gt;How can I report the regression coefficients with their 95% for the variables age and car?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 12:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899776#M44610</guid>
      <dc:creator>BayzidR</dc:creator>
      <dc:date>2023-10-24T12:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: predicted rate from a random intercept poison model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899783#M44611</link>
      <description>&lt;P&gt;&lt;SPAN class=" aa-term "&gt;The SOLUTION and CL options on the MODEL statement&amp;nbsp;&lt;/SPAN&gt;requests the parameter estimates and that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=" aa-mathtext"&gt;t&lt;/SPAN&gt;-type confidence limits be constructed for each&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the fixed-effects parameter estimates. The confidence level is 0.95 by default; this can be changed with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_glimmix_syntax17.htm#statug.glimmix.gmxmodalpha" target="_blank" rel="noopener"&gt;ALPHA=&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model tre_count=period period*sex sexaknt1-aknt3 / dist=poisson link=log offset=logord cl solution;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 13:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899783#M44611</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2023-10-24T13:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: predicted rate from a random intercept poison model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899784#M44612</link>
      <description>&lt;P&gt;Thanks. Is there any option to obtain the IRR or exponentiation coefficients?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 13:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899784#M44612</guid>
      <dc:creator>BayzidR</dc:creator>
      <dc:date>2023-10-24T13:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: predicted rate from a random intercept poison model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899806#M44613</link>
      <description>&lt;P&gt;All these questions, including the rate ratio, are addressed in &lt;A href="http://support.sas.com/kb/24188" target="_self"&gt;this note&lt;/A&gt;. It is illustrated using PROC GENMOD, but the same basic methods apply.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 15:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/predicted-rate-from-a-random-intercept-poison-model/m-p/899806#M44613</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-10-24T15:07:03Z</dc:date>
    </item>
  </channel>
</rss>

