<?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: Forcing coefficients for Generalized Linear Models and count models in proc genmod in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Forcing-coefficients-for-Generalized-Linear-Models-and-count/m-p/794425#M254734</link>
    <description>&lt;P&gt;I remember&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; wrote a blog about it before .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2020/09/16/restricted-regression-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2020/09/16/restricted-regression-sas.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Feb 2022 08:26:41 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-02-04T08:26:41Z</dc:date>
    <item>
      <title>Forcing coefficients for Generalized Linear Models and count models in proc genmod</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forcing-coefficients-for-Generalized-Linear-Models-and-count/m-p/794226#M254656</link>
      <description>&lt;P&gt;I'm working on a regression model where Y is inpatient counts distributed according to the zero-inflated negative binomial pdf.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We'd like to fix the trend coefficient on the Y count in the prior 12 month period so that mean(Y_post) = 0.70*mean(Y_pre).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having discovered the offset trick for forcing coefficients in proc genmod&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Force-a-variable-s-coefficient-during-logistic-regression/td-p/162061" target="_self"&gt;here&lt;/A&gt;, how would I construct the offset knowing it's a GLM and not a linear regression?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I first need to take a natural log transform of the trend constant since E(Y_post)=exp(beta0 + trend*Y_pre + beta1*x1 + beta2*x2 + ...) for the ZINB distribution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or does SAS handle the log transforms for me and I simply code as follows?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let trend = 0.70;&lt;BR /&gt;data analysis_data; 
set analysis_data; 
y_pre_trend = &amp;amp;trend*y_pre;
run;

proc genmod data=analysis_data; 
model y_post = x1 x2 x3 / offset=y_pre_trend dist=zinb;&lt;BR /&gt;zeromodel;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Feb 2022 15:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forcing-coefficients-for-Generalized-Linear-Models-and-count/m-p/794226#M254656</guid>
      <dc:creator>RobertWF1</dc:creator>
      <dc:date>2022-02-03T15:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing coefficients for Generalized Linear Models and count models in proc genmod</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forcing-coefficients-for-Generalized-Linear-Models-and-count/m-p/794275#M254681</link>
      <description>Found SAS Usage Note 22800: Restricting model parameters that seems to support the above interpretation: &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/22/800.html" target="_blank"&gt;https://support.sas.com/kb/22/800.html&lt;/A&gt;</description>
      <pubDate>Thu, 03 Feb 2022 16:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forcing-coefficients-for-Generalized-Linear-Models-and-count/m-p/794275#M254681</guid>
      <dc:creator>RobertWF1</dc:creator>
      <dc:date>2022-02-03T16:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing coefficients for Generalized Linear Models and count models in proc genmod</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forcing-coefficients-for-Generalized-Linear-Models-and-count/m-p/794425#M254734</link>
      <description>&lt;P&gt;I remember&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; wrote a blog about it before .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2020/09/16/restricted-regression-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2020/09/16/restricted-regression-sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 08:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forcing-coefficients-for-Generalized-Linear-Models-and-count/m-p/794425#M254734</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-02-04T08:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing coefficients for Generalized Linear Models and count models in proc genmod</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Forcing-coefficients-for-Generalized-Linear-Models-and-count/m-p/794543#M254774</link>
      <description>Thanks - this is an interesting read, but unfortunately only applies to linear regression models.</description>
      <pubDate>Fri, 04 Feb 2022 15:54:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Forcing-coefficients-for-Generalized-Linear-Models-and-count/m-p/794543#M254774</guid>
      <dc:creator>RobertWF1</dc:creator>
      <dc:date>2022-02-04T15:54:29Z</dc:date>
    </item>
  </channel>
</rss>

