<?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 Proc Genmod offset vs. weight in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-offset-vs-weight/m-p/334454#M17642</link>
    <description>&lt;P&gt;&lt;STRIKE&gt;&lt;/STRIKE&gt;I'd like to better understand the OFFSET and WEIGHT options in PROC GENMOD Poisson regression.&amp;nbsp; I'm using SAS/STAT 13.2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Say I have a dataset with y observed counts, x1-x10 predictors, t time observed, and log_t.&amp;nbsp; What's the difference between the following two models?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod;
  model y = x1-x10 / d=p offset=log_t;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod;
  model y = x1-x10 / d=p;
  weight t;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, are there any differences when data is split across multiple observations, i.e., do I get the same result from fitting&lt;/P&gt;
&lt;P&gt;&amp;nbsp; y&amp;nbsp; x1-x10&amp;nbsp; t&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;&amp;nbsp; y1&amp;nbsp; x1-x10 t1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; y2&amp;nbsp; x1-x10 t2&lt;/P&gt;
&lt;P&gt;where y = y1 + y2, t = t1 + t2, and x1-x10 are the same?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2017 20:29:54 GMT</pubDate>
    <dc:creator>mcs</dc:creator>
    <dc:date>2017-02-20T20:29:54Z</dc:date>
    <item>
      <title>Proc Genmod offset vs. weight</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-offset-vs-weight/m-p/334454#M17642</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;&lt;/STRIKE&gt;I'd like to better understand the OFFSET and WEIGHT options in PROC GENMOD Poisson regression.&amp;nbsp; I'm using SAS/STAT 13.2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Say I have a dataset with y observed counts, x1-x10 predictors, t time observed, and log_t.&amp;nbsp; What's the difference between the following two models?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod;
  model y = x1-x10 / d=p offset=log_t;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod;
  model y = x1-x10 / d=p;
  weight t;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, are there any differences when data is split across multiple observations, i.e., do I get the same result from fitting&lt;/P&gt;
&lt;P&gt;&amp;nbsp; y&amp;nbsp; x1-x10&amp;nbsp; t&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;&amp;nbsp; y1&amp;nbsp; x1-x10 t1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; y2&amp;nbsp; x1-x10 t2&lt;/P&gt;
&lt;P&gt;where y = y1 + y2, t = t1 + t2, and x1-x10 are the same?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 20:29:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-offset-vs-weight/m-p/334454#M17642</guid>
      <dc:creator>mcs</dc:creator>
      <dc:date>2017-02-20T20:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod offset vs. weight</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-offset-vs-weight/m-p/334552#M17652</link>
      <description>&lt;PRE&gt;
offset variable will fix its parameter at 1 always. It is usually taken as a measure unit. For example:
y=1 , log_t=2  means in two hours, event occur once.
y=2,  log_t=8 means in eight hours, event occur twice.

these two obs 's time interval is different, so you need take log_t as a offset variable(its parameter=1)


weight variable means this obs is measured more accurate and exactly .
Check Rick's blog , there are several blog have talked about it.

For your last question, I don't think you gonna get the same result.

&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Feb 2017 04:01:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-offset-vs-weight/m-p/334552#M17652</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-21T04:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod offset vs. weight</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-offset-vs-weight/m-p/334613#M17653</link>
      <description>&lt;P&gt;As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;says, offset and weight are two different things. Nevertheless, in Poisson regression and with "log" as link function, you can use weight or offset as you suggested to fit exactly same model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It doesnt matter if you split one observation into two observations, if just the original time value equals the&amp;nbsp;sum of the two new time values, and both new timevalues are greater than zero. Though, the fit statistics will give some different results. - This is not a problem since in such Poisson regression models the fit statistics are meaningless anyway.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 10:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-offset-vs-weight/m-p/334613#M17653</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2017-02-21T10:44:19Z</dc:date>
    </item>
  </channel>
</rss>

