<?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: Proc genmod effect of using an offset on LSmeans in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/367222#M19267</link>
    <description>&lt;P&gt;The desire to present the results on the count scale comes from a customer. And I have at least to try to accomodate their wishes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2017 04:40:02 GMT</pubDate>
    <dc:creator>SAS_novice1</dc:creator>
    <dc:date>2017-06-15T04:40:02Z</dc:date>
    <item>
      <title>Proc genmod effect of using an offset on LSmeans</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/366438#M19227</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently running a proc genmod with poisson distribution on a dataset and was looking for LSmeans estimated for one of the variables.&lt;/P&gt;&lt;P&gt;When I do this without an offset included and I ask to transform the LSmeans back to response scale (ilink) I get estimates that make intuitive sense (on the correct scale of the original count variable).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I include an offset in the model (based on the log of another variable), the LSmeans seem to be presented on a different scale, even with the ilink option included. Results are strongly correlated though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I was wondering what exactly is happening in the LSmeans estimation when an offset is included in the model. And additionaly how to get the LSmeans back to response scale with an offset included in the model.&lt;/P&gt;&lt;P&gt;Ideally I want to get estimates on the original count scale with an offset included in the model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;model with offset:&lt;/P&gt;&lt;P&gt;ods output LSmeans=LSmeans;&lt;BR /&gt;proc genmod data=control;&lt;BR /&gt;class F2 block ;&lt;BR /&gt;model eggs = F2 block / type3 dist=poisson offset=l_area;&lt;BR /&gt;lsmeans F2/cl&amp;nbsp; ilink;run;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;model without offset:&lt;/P&gt;&lt;P&gt;ods output LSmeans=LSmeans1;&lt;BR /&gt;proc genmod data=control;&lt;BR /&gt;class F2 block ;&lt;BR /&gt;model eggs = F2 block / type3 dist=poisson ;&lt;BR /&gt;lsmeans F2/cl ilink;run;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first model produces LSmeans with the following values for the "mean" column in the LSmeans output:&lt;/P&gt;&lt;P&gt;0.04437&lt;BR /&gt;0.07704&lt;BR /&gt;0.03344&lt;BR /&gt;0.03425&lt;BR /&gt;0.02408&lt;BR /&gt;0.05762&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The second model produces LSmeans with the following values for the "mean" column in the LSmeans output:&lt;/P&gt;&lt;P&gt;&amp;nbsp; 9.2543&lt;BR /&gt;&amp;nbsp;15.1355&lt;BR /&gt;&amp;nbsp; 9.9462&lt;BR /&gt;&amp;nbsp; 6.5443&lt;BR /&gt;&amp;nbsp; 4.8722&lt;BR /&gt;&amp;nbsp;10.4939&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 08:51:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/366438#M19227</guid>
      <dc:creator>SAS_novice1</dc:creator>
      <dc:date>2017-06-13T08:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod effect of using an offset on LSmeans</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/366513#M19231</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;lsmeans age / ilink diff exp cl ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that is &amp;nbsp;what supposed to be,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;offset= &amp;nbsp;will offset a value from mean of population.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 12:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/366513#M19231</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-06-13T12:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod effect of using an offset on LSmeans</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/366696#M19232</link>
      <description>&lt;P&gt;When you use an offset, you are modeling &lt;EM&gt;rate&lt;/EM&gt;&amp;nbsp;(eggs/area) rather than &lt;EM&gt;count &lt;/EM&gt;(eggs). See the example here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="Usage Note 24188: Modeling rates and estimating rates and rate ratios (with confidence intervals)" href="http://support.sas.com/kb/24/188.html" target="_self"&gt;http://support.sas.com/kb/24/188.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 17:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/366696#M19232</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-06-13T17:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod effect of using an offset on LSmeans</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/366837#M19234</link>
      <description>&lt;P&gt;This is also what I have found, there seems to be no transformation back to the original count scale available.&lt;/P&gt;&lt;P&gt;I will just have to work with that scale in my results (which is also reasonable).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 04:53:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/366837#M19234</guid>
      <dc:creator>SAS_novice1</dc:creator>
      <dc:date>2017-06-14T04:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod effect of using an offset on LSmeans</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/366840#M19235</link>
      <description>&lt;P&gt;Thank you for replying, but this does not seem to translate the marginal averages back to the original count scale.&lt;/P&gt;&lt;P&gt;From what I understand, this is just the way it is and I have to interpret the results on a rate scale instead of the original count scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 04:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/366840#M19235</guid>
      <dc:creator>SAS_novice1</dc:creator>
      <dc:date>2017-06-14T04:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod effect of using an offset on LSmeans</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/367212#M19265</link>
      <description>&lt;P&gt;I'll admit, it's not clear to me why you would model rate (eggs/area) but want estimates of count (eggs). The only scenario in which that makes sense is when area is the same for every observation. If area differs among observations then, really, what are you to make of count data? I don't see the logic in that. You note that rate is "reasonable" so that's probably the path you should follow.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 02:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/367212#M19265</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-06-15T02:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod effect of using an offset on LSmeans</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/367222#M19267</link>
      <description>&lt;P&gt;The desire to present the results on the count scale comes from a customer. And I have at least to try to accomodate their wishes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 04:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-effect-of-using-an-offset-on-LSmeans/m-p/367222#M19267</guid>
      <dc:creator>SAS_novice1</dc:creator>
      <dc:date>2017-06-15T04:40:02Z</dc:date>
    </item>
  </channel>
</rss>

