<?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 Test of lack of fit for quadratic model without intercept in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Test-of-lack-of-fit-for-quadratic-model-without-intercept/m-p/49793#M2202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Well, it's about time somebody tries an answer. I suppose that you have a very good reason for not fitting an intercept. If you included the LACKFIT option in the MODEL statement of the REG procedure, you should see the test for lack of fit. Try for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;call streaminit(4321);&lt;BR /&gt;do i = 1 to 4;&lt;BR /&gt; do x = 1 to 10;&lt;BR /&gt;&amp;nbsp; x2 = x*x;&lt;BR /&gt;&amp;nbsp; y = x + 0.1*x*x + rand('NORMAL',0,0.2);&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt; end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc reg data=test;&lt;BR /&gt;model y = x x2 / noint lackfit;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To perform this test, you need duplicate X values, because the lack of fit test (à la Draper &amp;amp; Smith) relies on those. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2012 16:45:10 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2012-04-03T16:45:10Z</dc:date>
    <item>
      <title>Test of lack of fit for quadratic model without intercept</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-of-lack-of-fit-for-quadratic-model-without-intercept/m-p/49792#M2201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a quadratic regression thanks to the REG procedure. As I want to test a quadratic model without intercept, I specified the "noint" option.&lt;/P&gt;&lt;P&gt;Ex : proc reg data=tab; model Y = X X*X / noint; run; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to test the lack of fit of my regression. So, I know that I can do that with the RSREG procedure.&lt;/P&gt;&lt;P&gt;Ex : proc rsreg data=tab; model Y= X X*X / covar=1 lackfit; run; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, it computes the LOF with the intercept and I don't the intercept in the model.&lt;/P&gt;&lt;P&gt;I check in the SAS help but I've found no option to suppress the intercept. Does someone know how to do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By advance, thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Céline&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 12:50:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-of-lack-of-fit-for-quadratic-model-without-intercept/m-p/49792#M2201</guid>
      <dc:creator>Celine_France</dc:creator>
      <dc:date>2012-03-30T12:50:46Z</dc:date>
    </item>
    <item>
      <title>Test of lack of fit for quadratic model without intercept</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-of-lack-of-fit-for-quadratic-model-without-intercept/m-p/49793#M2202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Well, it's about time somebody tries an answer. I suppose that you have a very good reason for not fitting an intercept. If you included the LACKFIT option in the MODEL statement of the REG procedure, you should see the test for lack of fit. Try for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;call streaminit(4321);&lt;BR /&gt;do i = 1 to 4;&lt;BR /&gt; do x = 1 to 10;&lt;BR /&gt;&amp;nbsp; x2 = x*x;&lt;BR /&gt;&amp;nbsp; y = x + 0.1*x*x + rand('NORMAL',0,0.2);&lt;BR /&gt;&amp;nbsp; output;&lt;BR /&gt; end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc reg data=test;&lt;BR /&gt;model y = x x2 / noint lackfit;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To perform this test, you need duplicate X values, because the lack of fit test (à la Draper &amp;amp; Smith) relies on those. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 16:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-of-lack-of-fit-for-quadratic-model-without-intercept/m-p/49793#M2202</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-03T16:45:10Z</dc:date>
    </item>
  </channel>
</rss>

