<?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 Problem with PROC GAM in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-PROC-GAM/m-p/350755#M63852</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I apply the Generalized Additive Models to this model : &lt;SPAN class="comment-copy"&gt;money = year + job&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="comment-copy"&gt;my response variable is continuous (money) and the other variable is not continuous (job). This is what I did with SAS :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gam data=mydata;
model money = spline(year) spline(job);
output out=estimates p;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="comment-copy"&gt;But I got this error :&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Variable JOB in list does not match type prescribed for this list.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How can I fix it ?&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2017 09:07:03 GMT</pubDate>
    <dc:creator>John4</dc:creator>
    <dc:date>2017-04-18T09:07:03Z</dc:date>
    <item>
      <title>Problem with PROC GAM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-PROC-GAM/m-p/350755#M63852</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I apply the Generalized Additive Models to this model : &lt;SPAN class="comment-copy"&gt;money = year + job&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="comment-copy"&gt;my response variable is continuous (money) and the other variable is not continuous (job). This is what I did with SAS :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gam data=mydata;
model money = spline(year) spline(job);
output out=estimates p;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="comment-copy"&gt;But I got this error :&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Variable JOB in list does not match type prescribed for this list.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How can I fix it ?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 09:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-PROC-GAM/m-p/350755#M63852</guid>
      <dc:creator>John4</dc:creator>
      <dc:date>2017-04-18T09:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PROC GAM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-PROC-GAM/m-p/350779#M63854</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;the other variable is not continuous (job)."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is it character variable ? Put them in CLASS statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also try PROC ADAPITIVE + CLASS .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 11:08:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-PROC-GAM/m-p/350779#M63854</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-18T11:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PROC GAM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-PROC-GAM/m-p/350783#M63855</link>
      <description>&lt;P&gt;Yes, Job is a &lt;SPAN&gt;character variable&lt;/SPAN&gt; (Credit Analyst, Treasurer, Secretary, ect.).&lt;/P&gt;&lt;P&gt;I edited my SAS code like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gam data=mydata;
class job;
model money = spline(year) spline(job);
output out=estimates p;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I always got this error :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Variable JOB in list does not match type prescribed for this list.
ERROR: A MODEL statement is required.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE GAM used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What is &lt;SPAN&gt;PROC ADAPITIVE + CLASS &lt;/SPAN&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 11:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-PROC-GAM/m-p/350783#M63855</guid>
      <dc:creator>John4</dc:creator>
      <dc:date>2017-04-18T11:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PROC GAM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-PROC-GAM/m-p/350816#M63859</link>
      <description>&lt;P&gt;If JOB is not contnuous (it's a character variable), you can't fit a spline through it. That is a meaningless idea.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 12:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-PROC-GAM/m-p/350816#M63859</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-04-18T12:36:08Z</dc:date>
    </item>
  </channel>
</rss>

