<?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: Offset in poisson model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485957#M25196</link>
    <description>The parameter estimates from the model described above? Did I leave out anything important?</description>
    <pubDate>Fri, 10 Aug 2018 21:05:01 GMT</pubDate>
    <dc:creator>Melk</dc:creator>
    <dc:date>2018-08-10T21:05:01Z</dc:date>
    <item>
      <title>Offset in poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485935#M25194</link>
      <description>&lt;P&gt;I am running a Poisson model in sas comparing the number of ER visits after a surgery between 2 diseases in a given year. For those patients who were diagnosed later on in the year however, we have less follow up time to capture the ER visit so I decided to offset by the month of the surgery. I am wondering if someone may help in interpreting the estimates produced in the model with this offset term.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 20:14:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485935#M25194</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-08-10T20:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Offset in poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485952#M25195</link>
      <description>&lt;P&gt;Interpret what estimates? From what model? On what data?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 21:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485952#M25195</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-08-10T21:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Offset in poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485957#M25196</link>
      <description>The parameter estimates from the model described above? Did I leave out anything important?</description>
      <pubDate>Fri, 10 Aug 2018 21:05:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485957#M25196</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-08-10T21:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Offset in poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485958#M25197</link>
      <description>&lt;P&gt;Yes, the SAS code and the data.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 21:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485958#M25197</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-08-10T21:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Offset in poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485960#M25198</link>
      <description>proc genmod data=dat;&lt;BR /&gt;class disease;&lt;BR /&gt;model er_visits = disease / dist = poisson&lt;BR /&gt;link = log&lt;BR /&gt;offset = logindexmonth;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;disease = a or b, er_visits is a count, and logindexmonth is the log of the number of months into the calendar year when the patient had their surgery. alternatively, I think I could also do the number of months left in left in the calendar year to reflect the follow up time but I was not sure which one would be more appropriate.</description>
      <pubDate>Fri, 10 Aug 2018 21:10:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485960#M25198</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-08-10T21:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Offset in poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485963#M25199</link>
      <description>&lt;P&gt;You should be using the log of the number of months during which the visits were counted for that patient as an offset.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 21:13:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485963#M25199</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-08-10T21:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Offset in poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485964#M25200</link>
      <description>Thank you! So I have an estimate statement for disease just looking at disease 1 -1, for disease a b. With the offset, I am not sure how to interpret the estimate. Does the offset change this?</description>
      <pubDate>Fri, 10 Aug 2018 21:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/485964#M25200</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-08-10T21:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Offset in poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/486007#M25201</link>
      <description>&lt;P&gt;The time unit that you choose for your offset calculation will determine the units of your estimates. For example, a Poisson process with mean 10 per month, during a varying number of months :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
call streaminit(7);
do id = 1 to 20;
    mth = rand("integer", 12);
    logmth = log(mth);
    logyr = log(mth/12);
    n = rand("Poisson", mth*10);
    output;
    end;
run;

title "Time expressed in months";
proc genmod data=test;
model n = / dist=Poisson offset=logmth;
run;

title "Time expressed in years";
proc genmod data=test;
model n = / dist=Poisson offset=logyr;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Notice how the exponentiated mean estimate&amp;nbsp;is multiplied by 12 when offset is expressed in years instead of months..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Aug 2018 04:03:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/486007#M25201</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-08-11T04:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Offset in poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/488036#M25324</link>
      <description>If I am interested in looking at the total number of ER visits within 3 months and then within 6 months in the calendar year, would I still be able to use this data and rely on the offset of log follow up time or do I need to eliminate patients who had a surgery in the last 3 month or 6 months of the calendar year since they would not have equivalent follow up time to those who had surgery earlier in the year?</description>
      <pubDate>Sun, 19 Aug 2018 02:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/488036#M25324</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-08-19T02:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Offset in poisson model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/490194#M25459</link>
      <description>&lt;P&gt;Never throw away data. As shown in &lt;A href="http://support.sas.com/kb/24188" target="_self"&gt;this note&lt;/A&gt;, if you use an LSMEANS statement as below (where LOGMONTHS is then log of the number of months each subject was observed), it will provide the estimated rate for each DISEASE. The estimated rate is the expected number of ER visits per month. From the estimated rate, you can get the number of visits for any number of months - just multiply by the number. For example, if the rate is 2 and you want the expected number of visits in 3 months, then the answer is 6.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc genmod data=dat;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class disease;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model er_visits = disease / dist = poisson offset=logmonths;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;lsmeans disease / ilink cl;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 17:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Offset-in-poisson-model/m-p/490194#M25459</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-08-27T17:41:39Z</dc:date>
    </item>
  </channel>
</rss>

