<?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: Extract smooting component values when using PROC SASGAMPL in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-smooting-component-values-when-using-PROC-SASGAMPL/m-p/895043#M44381</link>
    <description>&lt;P&gt;Thanks Ksharp for the quick feedback. Do you mean I should now contact &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684" target="_blank"&gt;@Rick_SAS&lt;/A&gt;, or is this implicit? Sorry&amp;nbsp; if the question is a bit&amp;nbsp; naive, but I have only recently started posting on the SAS communities forum.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2023 12:40:15 GMT</pubDate>
    <dc:creator>pm68</dc:creator>
    <dc:date>2023-09-20T12:40:15Z</dc:date>
    <item>
      <title>Extract smooting component values when using PROC SASGAMPL</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-smooting-component-values-when-using-PROC-SASGAMPL/m-p/895003#M44377</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am running a GAM using SAS GAMPL to analyse herring landing data, with a spline term on year and month set as a tensor product, as specified in the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;proc gampl data=sales06 seed=1234 plots;&lt;BR /&gt;class ref_year;&lt;BR /&gt;output out=sales07y p=pred_hat lower=pred_p05 upper=pred_p95 residual=pred_res;&lt;BR /&gt;ods output ParameterEstimates=gamparms01y FitStatistics=gamfit01y NObs=gamobs01y;&lt;BR /&gt;model landing_her=spline(ref_year_ ref_month_/maxdf=100) / dist=Tweedie link=log;&lt;BR /&gt;RUN;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get the smoothing component values for each knot (i.e., combinations of year and month), or at least for the discrete pixels of the bivariate plot that SAS outputs (see below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SmoothingComponentPlot12.png" style="width: 465px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88159i4012E6FFE2B354CC/image-dimensions/465x349?v=v2" width="465" height="349" role="button" title="SmoothingComponentPlot12.png" alt="SmoothingComponentPlot12.png" /&gt;&lt;/span&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Could anyone help me on that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Sep 2023 08:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extract-smooting-component-values-when-using-PROC-SASGAMPL/m-p/895003#M44377</guid>
      <dc:creator>pm68</dc:creator>
      <dc:date>2023-09-20T08:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract smooting component values when using PROC SASGAMPL</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-smooting-component-values-when-using-PROC-SASGAMPL/m-p/895033#M44380</link>
      <description>Calling &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;</description>
      <pubDate>Wed, 20 Sep 2023 11:37:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extract-smooting-component-values-when-using-PROC-SASGAMPL/m-p/895033#M44380</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-09-20T11:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extract smooting component values when using PROC SASGAMPL</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-smooting-component-values-when-using-PROC-SASGAMPL/m-p/895043#M44381</link>
      <description>&lt;P&gt;Thanks Ksharp for the quick feedback. Do you mean I should now contact &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684" target="_blank"&gt;@Rick_SAS&lt;/A&gt;, or is this implicit? Sorry&amp;nbsp; if the question is a bit&amp;nbsp; naive, but I have only recently started posting on the SAS communities forum.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 12:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extract-smooting-component-values-when-using-PROC-SASGAMPL/m-p/895043#M44381</guid>
      <dc:creator>pm68</dc:creator>
      <dc:date>2023-09-20T12:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Extract smooting component values when using PROC SASGAMPL</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-smooting-component-values-when-using-PROC-SASGAMPL/m-p/895046#M44382</link>
      <description>&lt;P&gt;You can get the smoothing component in the output data set by asking for the linear predictor and by using the COMPONENT option. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gampl data=sales06 seed=1234 plots;
model landing_her=spline(ref_year_ ref_month_/maxdf=100) / dist=Tweedie link=log;
output out=SmoothComp linp=LinP/ COMPONENT;
RUN;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want the (x,y) values, you have to merge the original data and the output data set :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data All;
merge sales06 SmoothComp;
run;

/* OPTIONAL: visualize the smoothing component */
proc template;
   define statgraph surface;
      begingraph / designwidth=defaultDesignHeight;
         layout overlay;
            contourplotparm z=LinP_ref_year_ref_month_ y=ref_month_ x=ref_year_ / gridded=FALSE;
         endlayout;
      endgraph;
   end;
run;

proc sgrender data=ALL template=surface;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Sep 2023 12:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extract-smooting-component-values-when-using-PROC-SASGAMPL/m-p/895046#M44382</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-09-20T12:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extract smooting component values when using PROC SASGAMPL</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extract-smooting-component-values-when-using-PROC-SASGAMPL/m-p/895048#M44383</link>
      <description>&lt;P&gt;When anyone "at-mentions" a user, they are automatically notified. So in this case, I got an email when KSharp mentioned me. Of course, the person mentioned might not have the time or interest to respond, but they are notified.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 12:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extract-smooting-component-values-when-using-PROC-SASGAMPL/m-p/895048#M44383</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-09-20T12:53:30Z</dc:date>
    </item>
  </channel>
</rss>

