<?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: Non linearity in regression in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Non-linearity-in-regression/m-p/283202#M59241</link>
    <description>&lt;PRE&gt;

model roa = fownff    fownff*fownff   salesGro RDAssets LTassets LNAssetsindustry year


I suggest you check PROC LOESS 
&lt;/PRE&gt;</description>
    <pubDate>Sun, 10 Jul 2016 10:20:55 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-07-10T10:20:55Z</dc:date>
    <item>
      <title>Non linearity in regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Non-linearity-in-regression/m-p/283198#M59238</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to check nonlinearity in the regression by using square in one of my variable (fownff)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;glm&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=sasuser.sasfile060716;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; firmno sector year industry;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; roa = fownff fownff**&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; salesGro RDAssets LTassets LNAssetsindustry year &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;/&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;solution&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;But the log I got is:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, (, *, -, /, @, _CHARACTER_, _CHAR_, _NUMERIC_, |.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I know, this is the way to check linearity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your help to explain what is my mistake&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jul 2016 08:47:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Non-linearity-in-regression/m-p/283198#M59238</guid>
      <dc:creator>yael</dc:creator>
      <dc:date>2016-07-10T08:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Non linearity in regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Non-linearity-in-regression/m-p/283202#M59241</link>
      <description>&lt;PRE&gt;

model roa = fownff    fownff*fownff   salesGro RDAssets LTassets LNAssetsindustry year


I suggest you check PROC LOESS 
&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 Jul 2016 10:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Non-linearity-in-regression/m-p/283202#M59241</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-07-10T10:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Non linearity in regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Non-linearity-in-regression/m-p/283206#M59242</link>
      <description>&lt;P&gt;Thanks for your reply, but I got the same LOG answer with your proposal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jul 2016 11:52:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Non-linearity-in-regression/m-p/283206#M59242</guid>
      <dc:creator>yael</dc:creator>
      <dc:date>2016-07-10T11:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Non linearity in regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Non-linearity-in-regression/m-p/283225#M59243</link>
      <description>&lt;P&gt;X*Y is accepted in proc reg model specification as a polynomial effect.&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt;'s suggestion should work. Please post your log.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jul 2016 20:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Non-linearity-in-regression/m-p/283225#M59243</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-07-10T20:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Non linearity in regression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Non-linearity-in-regression/m-p/283229#M59244</link>
      <description>&lt;P&gt;Your code should look like the following. Note that you have variables in your CLASS statement that are not in your model statement. Not sure why you have them present.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=sasuser.sasfile060716;
class firmno sector year industry;
model roa = fownff fownff*fownff salesGro RDAssets LTassets LNAssetsindustry year
/solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As stated, if something doesn't work please post the code and log. We can't help with 'things don't work'.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jul 2016 22:25:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Non-linearity-in-regression/m-p/283229#M59244</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-10T22:25:50Z</dc:date>
    </item>
  </channel>
</rss>

