<?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 Log Links and Offsets in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Log-Links-and-Offsets/m-p/867545#M42885</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using ZINB models to examine count data in 44 youth who are part of a summer research treatment program. The dataset is highly unbalanced as some youth have many time-outs, and others have only a few. Given this, I'm including an offset variable to account for the # of time-outs a child got within a day. Given the overdispersion and excess zeros, ZINB appears most appropriate and I'm using a LINK = LOG function. Does my offset variable also need to be logged? I'm seeing mixed responses online. My code is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GENMOD DATA = TIMEOUT;&lt;BR /&gt;CLASS Meds;&lt;BR /&gt;MODEL Behavior = time X1 X2 X3 X4 / link = log dist = zinb; &lt;STRONG&gt;offset = timeout_withindaycount&lt;/STRONG&gt;;&lt;EM&gt;(does this need to log transformed?)&lt;/EM&gt;&lt;BR /&gt;ZEROMODEL time X1 X2 X3 X4;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 19:03:17 GMT</pubDate>
    <dc:creator>PSB</dc:creator>
    <dc:date>2023-03-31T19:03:17Z</dc:date>
    <item>
      <title>Log Links and Offsets</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Log-Links-and-Offsets/m-p/867545#M42885</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using ZINB models to examine count data in 44 youth who are part of a summer research treatment program. The dataset is highly unbalanced as some youth have many time-outs, and others have only a few. Given this, I'm including an offset variable to account for the # of time-outs a child got within a day. Given the overdispersion and excess zeros, ZINB appears most appropriate and I'm using a LINK = LOG function. Does my offset variable also need to be logged? I'm seeing mixed responses online. My code is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GENMOD DATA = TIMEOUT;&lt;BR /&gt;CLASS Meds;&lt;BR /&gt;MODEL Behavior = time X1 X2 X3 X4 / link = log dist = zinb; &lt;STRONG&gt;offset = timeout_withindaycount&lt;/STRONG&gt;;&lt;EM&gt;(does this need to log transformed?)&lt;/EM&gt;&lt;BR /&gt;ZEROMODEL time X1 X2 X3 X4;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 19:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Log-Links-and-Offsets/m-p/867545#M42885</guid>
      <dc:creator>PSB</dc:creator>
      <dc:date>2023-03-31T19:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Log Links and Offsets</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Log-Links-and-Offsets/m-p/867548#M42886</link>
      <description>&lt;P&gt;The purpose of using an offset in a model on a count response is so that you can model a rate - the ratio of the mean count to some exposure or population amount. See &lt;A href="http://support.sas.com/kb/24188" target="_self"&gt;this note&lt;/A&gt; that discusses it. As shown there, in a log-linked model the denominator variable of the desired rate should also be log transformed. Assuming that your BEHAVIOR variable is a count and if your intent is to model the rate defined by BEHAVIOR/TIMEOUT_WITHINDAYCOUNT, then you need to log-transform the timeout variable. See &lt;A href="http://support.sas.com/kb/44354" target="_self"&gt;this note&lt;/A&gt; that discusses and illustrates modeling mean counts and rates with zero-inflated models.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 19:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Log-Links-and-Offsets/m-p/867548#M42886</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-03-31T19:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Log Links and Offsets</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Log-Links-and-Offsets/m-p/870409#M43081</link>
      <description>Apologies for the delay! Thank you very much, StatDave. This was very helpful.</description>
      <pubDate>Tue, 18 Apr 2023 17:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Log-Links-and-Offsets/m-p/870409#M43081</guid>
      <dc:creator>PSB</dc:creator>
      <dc:date>2023-04-18T17:37:57Z</dc:date>
    </item>
  </channel>
</rss>

