<?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 Spline terms in Proc Genmod in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Spline-terms-in-Proc-Genmod/m-p/830135#M41110</link>
    <description>&lt;P&gt;Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to conduct negative binomial distribution with a spline terms ( Outcome: count and predictor ( months); it is a time series analysis). Is there a way we can directly add spline in the model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw the following approach for Poisson distribution however negbin is not supported.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; ods graphics on;
    
   proc gam data=equip;
       model removals=spline(month) / dist=Poisson method=gcv;
   run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2022 16:45:54 GMT</pubDate>
    <dc:creator>Ishor</dc:creator>
    <dc:date>2022-08-24T16:45:54Z</dc:date>
    <item>
      <title>Spline terms in Proc Genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Spline-terms-in-Proc-Genmod/m-p/830135#M41110</link>
      <description>&lt;P&gt;Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to conduct negative binomial distribution with a spline terms ( Outcome: count and predictor ( months); it is a time series analysis). Is there a way we can directly add spline in the model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw the following approach for Poisson distribution however negbin is not supported.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; ods graphics on;
    
   proc gam data=equip;
       model removals=spline(month) / dist=Poisson method=gcv;
   run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 16:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Spline-terms-in-Proc-Genmod/m-p/830135#M41110</guid>
      <dc:creator>Ishor</dc:creator>
      <dc:date>2022-08-24T16:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Spline terms in Proc Genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Spline-terms-in-Proc-Genmod/m-p/830150#M41111</link>
      <description>The negative binomial distribution is supported in the newer PROC GAMPL and should generally be used rather than PROC GAM. Or, you can fit the model in PROC GLIMMIX by adding an EFFECT statement to define the spline you want.</description>
      <pubDate>Wed, 24 Aug 2022 16:56:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Spline-terms-in-Proc-Genmod/m-p/830150#M41111</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-08-24T16:56:24Z</dc:date>
    </item>
  </channel>
</rss>

