<?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: How to include offset parameters in NLMIXED in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-offset-parameters-in-NLMIXED/m-p/536496#M27000</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183379"&gt;@pau13rown&lt;/a&gt;&amp;nbsp;is probably a better person to answer this, but your formula looks okay to me. Alternatively, instead of&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mu = exp(xb + log_TotalWordsInSentence);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you could use&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mu =&amp;nbsp;TotalWordsInSentence*(exp(xb));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;which is equivalent (take log of both sides, bring&amp;nbsp; log_TotalWordsInSentence to the left, combine logs, then exponentiate.)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 14:25:12 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-02-18T14:25:12Z</dc:date>
    <item>
      <title>How to include offset parameters in NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-offset-parameters-in-NLMIXED/m-p/536341#M26999</link>
      <description>&lt;P&gt;Could anyone help me on how to include offset parameter in NLMIXED model with negative binomial? Is the below inclusion of log_TotalWordsInSentence &amp;nbsp;(log of number of words in a sentence) variable correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc nlmixed data=myData;&lt;BR /&gt;xb = b0 + b1a*(Gender = 'female') + u;&lt;BR /&gt;mu = exp(xb + log_TotalWordsInSentence);&lt;BR /&gt;m = 1/alpha;&lt;BR /&gt;ll = lgamma(CountPronounsInSentence+m)-lgamma(CountPronounsInSentence+1)-lgamma(m)&lt;BR /&gt;+ CountPronounsInSentence*log(alpha*mu)-(CountPronounsInSentence+m)*log(1+alpha*mu);&lt;BR /&gt;model CountPronounsInSentence ~ general(ll);&lt;BR /&gt;random u ~ normal(0,s2u) subject=person_id;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 04:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-offset-parameters-in-NLMIXED/m-p/536341#M26999</guid>
      <dc:creator>SBS</dc:creator>
      <dc:date>2019-02-18T04:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to include offset parameters in NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-offset-parameters-in-NLMIXED/m-p/536496#M27000</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183379"&gt;@pau13rown&lt;/a&gt;&amp;nbsp;is probably a better person to answer this, but your formula looks okay to me. Alternatively, instead of&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mu = exp(xb + log_TotalWordsInSentence);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you could use&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mu =&amp;nbsp;TotalWordsInSentence*(exp(xb));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;which is equivalent (take log of both sides, bring&amp;nbsp; log_TotalWordsInSentence to the left, combine logs, then exponentiate.)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 14:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-offset-parameters-in-NLMIXED/m-p/536496#M27000</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-02-18T14:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to include offset parameters in NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-offset-parameters-in-NLMIXED/m-p/536509#M27002</link>
      <description>Thanks a lot Rick. I hope Paul Brown responds.</description>
      <pubDate>Mon, 18 Feb 2019 15:11:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-offset-parameters-in-NLMIXED/m-p/536509#M27002</guid>
      <dc:creator>SBS</dc:creator>
      <dc:date>2019-02-18T15:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to include offset parameters in NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-offset-parameters-in-NLMIXED/m-p/537538#M27047</link>
      <description>&lt;P&gt;sorry, i dont visit the message boards as frequently as i'd like to.... The code looks ok to me. Personally for clarity i might write it as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bounds b2&amp;lt;=1, b2&amp;gt;=1;&lt;/P&gt;&lt;P&gt;xb = b0 + b1a*(Gender = 'female') + b2*log_TotalWordsInSentence + u;&lt;BR /&gt;mu = exp(xb);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and a minor thing: I'd reduce the length of the variable name 'CountPronounsInSentence' to make it readable, i didn't bother to read the loglikelihood equation ("ll = ")... because it's hard to read&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 21:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-offset-parameters-in-NLMIXED/m-p/537538#M27047</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2019-02-21T21:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to include offset parameters in NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-offset-parameters-in-NLMIXED/m-p/537569#M27048</link>
      <description>Thanks a to Paul!</description>
      <pubDate>Thu, 21 Feb 2019 23:54:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-offset-parameters-in-NLMIXED/m-p/537569#M27048</guid>
      <dc:creator>SBS</dc:creator>
      <dc:date>2019-02-21T23:54:04Z</dc:date>
    </item>
  </channel>
</rss>

