<?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 without a strange non-linear component in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230265#M12139</link>
    <description>&lt;P&gt;Program is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gam data=modelo2;&lt;BR /&gt;class viv act iess prov gen civil edu trab;&lt;BR /&gt; model tipo (event='1')=spline(deuda_6m) &lt;BR /&gt; param(viv)param(act)param(iess)param(prov) &lt;BR /&gt; param(gen)param(civil)param(edu)param(trab)&lt;BR /&gt; / dist=binomial link=logit maxiter=10000 maxitscore=200000;&lt;BR /&gt; output out=result pred linp uclm lclm adiag std;&lt;BR /&gt; score data=result out=result;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to attach the file sas modelo2, but I was not able. I can send it by email.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table of deviance analysis gives no result, excepting DF. Why ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found that if the &lt;SPAN&gt;anodev=norefit is included among the options of the sentence model, then a result for this table is obtained.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Oct 2015 12:39:13 GMT</pubDate>
    <dc:creator>mcadena</dc:creator>
    <dc:date>2015-10-16T12:39:13Z</dc:date>
    <item>
      <title>GAM without a strange non-linear component</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230062#M12126</link>
      <description>&lt;P&gt;I&amp;nbsp;submitted proc gam with a non-linear component which has no information on deviation analysis (table on smoothing model analysis), but for DF only. How can I interpret these results ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 12:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230062#M12126</guid>
      <dc:creator>mcadena</dc:creator>
      <dc:date>2015-10-15T12:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: GAM without a strange non-linear component</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230263#M12137</link>
      <description>&lt;P&gt;It would help if you could share the results with the forum, as well as the design and model that you are using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 12:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230263#M12137</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-10-16T12:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: GAM without a strange non-linear component</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230265#M12139</link>
      <description>&lt;P&gt;Program is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gam data=modelo2;&lt;BR /&gt;class viv act iess prov gen civil edu trab;&lt;BR /&gt; model tipo (event='1')=spline(deuda_6m) &lt;BR /&gt; param(viv)param(act)param(iess)param(prov) &lt;BR /&gt; param(gen)param(civil)param(edu)param(trab)&lt;BR /&gt; / dist=binomial link=logit maxiter=10000 maxitscore=200000;&lt;BR /&gt; output out=result pred linp uclm lclm adiag std;&lt;BR /&gt; score data=result out=result;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to attach the file sas modelo2, but I was not able. I can send it by email.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table of deviance analysis gives no result, excepting DF. Why ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found that if the &lt;SPAN&gt;anodev=norefit is included among the options of the sentence model, then a result for this table is obtained.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 12:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230265#M12139</guid>
      <dc:creator>mcadena</dc:creator>
      <dc:date>2015-10-16T12:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: GAM without a strange non-linear component</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230269#M12140</link>
      <description>&lt;P&gt;Give this a try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gam data=modelo2;
class viv act iess prov gen civil edu trab;
model tipo (event='1')=spline(deuda_6m) 
param(viv act iess prov gen civil edu trab)
/ dist=binomial link=logit maxiter=10000 maxitscore=200000 anodev=norefit;
output out=result pred linp uclm lclm adiag std;
score data=result out=result;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I don't know whether changing how the class variables enter the model will help or not, but this looks to be "cleaner" code. &amp;nbsp;Since there is only one smoothing term in the model, the norefit method is probably more appropriate than fitting nested models.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other cause of loss of estimates is an overfitted model, but I don't think that is necessarily the case here. &amp;nbsp;How many events and nonevents do you have in your data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 12:58:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230269#M12140</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-10-16T12:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: GAM without a strange non-linear component</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230270#M12141</link>
      <description>&lt;P&gt;Yes, the code works OK, excepting the deviance analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are 1815 events and 742 nonevents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 13:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230270#M12141</guid>
      <dc:creator>mcadena</dc:creator>
      <dc:date>2015-10-16T13:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: GAM without a strange non-linear component</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230274#M12145</link>
      <description>&lt;P&gt;I assume that each of your class variables has only two levels, so you have about 10 events per variable. &amp;nbsp;Overfitting doesn't seem to be the problem then. &amp;nbsp;I will suppose that the behavior is due to having only a single nonparametric term.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And given that, have you considered fitting the following, since the class variables enter parametrically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=modelo2;
class viv act iess prov gen civil edu trab;
effect deu_spl = spline(deuda_6m); 
model tipo (event='1')=deu_spl viv act iess prov en civil edu trab
/ dist=binomial link=logit maxiter=10000 maxitscore=200000 solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Check if this runs for your data, and whether there is an ANOVA table and solution estimates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 13:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230274#M12145</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-10-16T13:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: GAM without a strange non-linear component</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230276#M12147</link>
      <description>&lt;P&gt;Building on Steve's response, PROC LOGISTIC also supports the EFFECT statement. Since your model does not have random effects, I'd try LOGISTIC if you decide to pursue this alternative.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 13:23:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230276#M12147</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-10-16T13:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: GAM without a strange non-linear component</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230278#M12148</link>
      <description>&lt;P&gt;Most of variables has two levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that SAS discretizes deu_spl (it appeared&amp;nbsp;7 levels),&amp;nbsp;if it does, how are built those levels ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, now there are results for Type III Tests of Fixed Effects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 13:38:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230278#M12148</guid>
      <dc:creator>mcadena</dc:creator>
      <dc:date>2015-10-16T13:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: GAM without a strange non-linear component</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230284#M12150</link>
      <description>&lt;P&gt;Well, those 7 levels are the knots for the spline. &amp;nbsp;You can specify other values in the effect statement, but that should work. &amp;nbsp;Also,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS﻿&lt;/a&gt;&amp;nbsp;suggested PROC LOGISTIC as also supporting the EFFECT statement, so you may want to port to that, especially if you are interested in scoring.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 13:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GAM-without-a-strange-non-linear-component/m-p/230284#M12150</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-10-16T13:52:21Z</dc:date>
    </item>
  </channel>
</rss>

