<?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: Code for performing an F-test in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Code-for-performing-an-F-test/m-p/264376#M13937</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/81498"&gt;@neuromeme1﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think, you want to test whether both x2 and x4 can be dropped from the full model. You can request this F-test by inserting the following statement after the MODEL statement of your first PROC REG step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;test x2, x4;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is a shorthand notation for&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;test x2=0, x4=0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;which indicates the null hypothesis (that the &lt;EM&gt;regression coefficients of&lt;/EM&gt; x2 and x4 are zero) more clearly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details please refer to the &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_reg_syntax20.htm" target="_blank"&gt;documentation of the TEST statement&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Apr 2016 21:45:26 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2016-04-16T21:45:26Z</dc:date>
    <item>
      <title>Code for performing an F-test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Code-for-performing-an-F-test/m-p/264368#M13936</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could someone tell me how to write the code for an f-test. &amp;nbsp;The procedure I am trying to run consists of the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data class;&lt;BR /&gt;infile 'c:\prodata2.txt'expandtabs;&lt;BR /&gt;input y x1 x2 x3 x4 ;&lt;BR /&gt;proc means data=class;&lt;BR /&gt;var y x1 x2 x3 x4;&lt;BR /&gt;run;&lt;BR /&gt;proc reg;&lt;BR /&gt;model y=x1 x2 x3 x4/spec acov;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc reg;&lt;BR /&gt;model y=x1 x3/spec acov;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I insert inbetween the first and second&amp;nbsp;&lt;SPAN&gt;proc regs to run the f-test on the restricted model&amp;nbsp;y=x1 x3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2016 18:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Code-for-performing-an-F-test/m-p/264368#M13936</guid>
      <dc:creator>neuromeme1</dc:creator>
      <dc:date>2016-04-16T18:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Code for performing an F-test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Code-for-performing-an-F-test/m-p/264376#M13937</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/81498"&gt;@neuromeme1﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think, you want to test whether both x2 and x4 can be dropped from the full model. You can request this F-test by inserting the following statement after the MODEL statement of your first PROC REG step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;test x2, x4;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is a shorthand notation for&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;test x2=0, x4=0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;which indicates the null hypothesis (that the &lt;EM&gt;regression coefficients of&lt;/EM&gt; x2 and x4 are zero) more clearly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details please refer to the &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_reg_syntax20.htm" target="_blank"&gt;documentation of the TEST statement&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2016 21:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Code-for-performing-an-F-test/m-p/264376#M13937</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-16T21:45:26Z</dc:date>
    </item>
  </channel>
</rss>

