<?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: Gam for Poisson rates (offset term) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Gam-for-Poisson-rates-offset-term/m-p/270136#M58210</link>
    <description>&lt;P&gt;Hello Rick_SAS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your response and for the suggestions!&lt;/P&gt;&lt;P&gt;I am so sorry: the "splineline" was a typo - I meant "spline".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also found a macro that is useful to test non-linearity -&amp;nbsp;&amp;nbsp;&lt;A href="http://cdn1.sph.harvard.edu/wp-content/uploads/sites/271/2014/10/glmcurv9.sas_.zip" target="_blank"&gt; %glmcurv9&lt;/A&gt;&amp;nbsp;that I found here:&amp;nbsp;&lt;A href="http://www.hsph.harvard.edu/donna-spiegelman/software/." target="_blank"&gt;http://www.hsph.harvard.edu/donna-spiegelman/software/.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will perform a GAML analysis, too, and compare the results.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2016 18:44:36 GMT</pubDate>
    <dc:creator>statquestion1</dc:creator>
    <dc:date>2016-05-12T18:44:36Z</dc:date>
    <item>
      <title>Gam for Poisson rates (offset term)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Gam-for-Poisson-rates-offset-term/m-p/270089#M58198</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to fit a GAM model with Poisson rates data which include an offset term. I have tried using this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc gam data=mydata;&lt;BR /&gt;model dv=spline(x1) spline(x2)&amp;nbsp;splineline(x3)&amp;nbsp;/&amp;nbsp;dist=poisson link=log offset=lexp anodev=norefit;&lt;BR /&gt;output out=mydout p;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason the offset term is indicated as an error in the log file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how can I indicate I am dealing with rates not with counts. If I do not specify an offset term, the smoothing is being done for the count data, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a question about testing the linearity of the association - is this a sound procedure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I wanted to test each of the independent variables to see if they display a linear or quadratic association with my dependent variable - that is why I tried using GAM.&lt;/P&gt;&lt;P&gt;2. In case GAM indicates only significant linear tends for all my predictors except for one, can I still use then proc&amp;nbsp;genmod with an offset (which I ran; it worked just fine, assuming a linear association, no weird coefficients).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was also considering using the proc adaptvereg, not sure that is a better option in my case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for taking the time to read my post and to help me!&lt;/P&gt;&lt;P&gt;Best regards1&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 15:04:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Gam-for-Poisson-rates-offset-term/m-p/270089#M58198</guid>
      <dc:creator>statquestion1</dc:creator>
      <dc:date>2016-05-12T15:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Gam for Poisson rates (offset term)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Gam-for-Poisson-rates-offset-term/m-p/270129#M58208</link>
      <description>&lt;P&gt;If you have SAS/STAT 14.1, I highly recommend switching to the GAMPL procedure, which is a completely rewritten faster implementation of GAM. You can see an example and links at the article &lt;A href="http://blogs.sas.com/content/iml/2016/03/23/nonparametric-regression-binary-response-sas.html" target="_self"&gt;"Nonparametric regression for binary response data in SAS".&lt;/A&gt;&amp;nbsp;The GAMPL procedure handles Poisson data and supports the OFFSET= option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, the offset term enables you to fit rates (counts per time period).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your syntax for PROC GAM, I am unfamiliar with the SPLINELINE effect. It is not in the documentation.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 18:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Gam-for-Poisson-rates-offset-term/m-p/270129#M58208</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-12T18:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Gam for Poisson rates (offset term)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Gam-for-Poisson-rates-offset-term/m-p/270136#M58210</link>
      <description>&lt;P&gt;Hello Rick_SAS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your response and for the suggestions!&lt;/P&gt;&lt;P&gt;I am so sorry: the "splineline" was a typo - I meant "spline".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also found a macro that is useful to test non-linearity -&amp;nbsp;&amp;nbsp;&lt;A href="http://cdn1.sph.harvard.edu/wp-content/uploads/sites/271/2014/10/glmcurv9.sas_.zip" target="_blank"&gt; %glmcurv9&lt;/A&gt;&amp;nbsp;that I found here:&amp;nbsp;&lt;A href="http://www.hsph.harvard.edu/donna-spiegelman/software/." target="_blank"&gt;http://www.hsph.harvard.edu/donna-spiegelman/software/.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will perform a GAML analysis, too, and compare the results.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 18:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Gam-for-Poisson-rates-offset-term/m-p/270136#M58210</guid>
      <dc:creator>statquestion1</dc:creator>
      <dc:date>2016-05-12T18:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Gam for Poisson rates (offset term)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Gam-for-Poisson-rates-offset-term/m-p/270178#M58213</link>
      <description>&lt;P&gt;Hello Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to bother you again, I was just wondering whether it is still possible to run GAM with an offset. It seems that it is not possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only have access to BaseSAS on this computer, but I will use the student version of SAS/STAT14.1 and run GAML later on using my computer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 19:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Gam-for-Poisson-rates-offset-term/m-p/270178#M58213</guid>
      <dc:creator>statquestion1</dc:creator>
      <dc:date>2016-05-12T19:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Gam for Poisson rates (offset term)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Gam-for-Poisson-rates-offset-term/m-p/270182#M58214</link>
      <description>&lt;P&gt;If you haven't already done so, please bookmark &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_whatsnew_toc.htm" target="_self"&gt;the SAS/STAT documentation.&lt;/A&gt;&amp;nbsp; The doc for the &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_gam_toc.htm" target="_self"&gt;GAM procedure&lt;/A&gt;&amp;nbsp;contains all valid syntax.&amp;nbsp; Just click the MODEL statement.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 19:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Gam-for-Poisson-rates-offset-term/m-p/270182#M58214</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-12T19:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Gam for Poisson rates (offset term)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Gam-for-Poisson-rates-offset-term/m-p/270324#M58220</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for all your help! Have a great weekend!&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 12:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Gam-for-Poisson-rates-offset-term/m-p/270324#M58220</guid>
      <dc:creator>statquestion1</dc:creator>
      <dc:date>2016-05-13T12:28:26Z</dc:date>
    </item>
  </channel>
</rss>

