<?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: F Test in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714720#M9694</link>
    <description>&lt;P&gt;Does your actual data have any repeats of values?&lt;/P&gt;
&lt;P&gt;You probably want ANOVA but without Y as a class variable. But when there are no repeat values for the Class variable (or combinations) then the dependent variable has no variance. So the test doesn't report any results for the tests.&lt;/P&gt;
&lt;P&gt;See this:&lt;/P&gt;
&lt;PRE&gt;data reghwk4; 
input X Y;
datalines;
29.7 16.6 
68.4 49.1
120.7 121.7
217.2 219.6
313.5 375.5
419.1 570.8
535.9 648.2
641.5 755.6
29.7 16. 
68.4 49.
120.7 121.
217.2 219.
313.5 375.
419.1 570.
535.9 648.
641.5 755.
;
run;

proc anova data=reghwk4;
   class  X;
   model Y=X;
run;
quit;&lt;/PRE&gt;
&lt;P&gt;Now there are multiple values for Y for each of the X's an so some variance to analyze.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You want to end Proc Anova with a Quit statement. It is one of the procedures you an use interactively with multiple model and optional statements and will be considered as "running" until a quit is supplied or another procedure runs.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 18:32:01 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-01-27T18:32:01Z</dc:date>
    <item>
      <title>F Test</title>
      <link>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714693#M9691</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to find the appropriate code to run a F test to test a hypothesis but so far no luck&lt;/P&gt;&lt;P&gt;Here's the data:&lt;/P&gt;&lt;PRE&gt;data reghwk4; &lt;BR /&gt;input X Y;&lt;BR /&gt;datalines;&lt;BR /&gt;29.7 16.6 &lt;BR /&gt;68.4 49.1&lt;BR /&gt;120.7 121.7&lt;BR /&gt;217.2 219.6&lt;BR /&gt;313.5 375.5&lt;BR /&gt;419.1 570.8&lt;BR /&gt;535.9 648.2&lt;BR /&gt;641.5 755.6&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;This is what I have tried so far:&lt;/P&gt;&lt;PRE&gt;proc ttest data= reghwk4 / h0=0 sides=1;&lt;BR /&gt;class X;&lt;BR /&gt;var Y;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc anova data=reghwk4;&lt;BR /&gt;class Y X;&lt;BR /&gt;model Y=X;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc reg data= reghwk4;&lt;BR /&gt;model y=x;&lt;BR /&gt;run;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 18:15:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714693#M9691</guid>
      <dc:creator>Lilo</dc:creator>
      <dc:date>2021-01-27T18:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: F Test</title>
      <link>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714706#M9692</link>
      <description>&lt;P&gt;What is your hypothesis?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 18:24:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714706#M9692</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-01-27T18:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: F Test</title>
      <link>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714712#M9693</link>
      <description>&lt;P&gt;Hypothesis: Ho equals 0 against H1 does not equal 0&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 18:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714712#M9693</guid>
      <dc:creator>Lilo</dc:creator>
      <dc:date>2021-01-27T18:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: F Test</title>
      <link>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714720#M9694</link>
      <description>&lt;P&gt;Does your actual data have any repeats of values?&lt;/P&gt;
&lt;P&gt;You probably want ANOVA but without Y as a class variable. But when there are no repeat values for the Class variable (or combinations) then the dependent variable has no variance. So the test doesn't report any results for the tests.&lt;/P&gt;
&lt;P&gt;See this:&lt;/P&gt;
&lt;PRE&gt;data reghwk4; 
input X Y;
datalines;
29.7 16.6 
68.4 49.1
120.7 121.7
217.2 219.6
313.5 375.5
419.1 570.8
535.9 648.2
641.5 755.6
29.7 16. 
68.4 49.
120.7 121.
217.2 219.
313.5 375.
419.1 570.
535.9 648.
641.5 755.
;
run;

proc anova data=reghwk4;
   class  X;
   model Y=X;
run;
quit;&lt;/PRE&gt;
&lt;P&gt;Now there are multiple values for Y for each of the X's an so some variance to analyze.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You want to end Proc Anova with a Quit statement. It is one of the procedures you an use interactively with multiple model and optional statements and will be considered as "running" until a quit is supplied or another procedure runs.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 18:32:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714720#M9694</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-27T18:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: F Test</title>
      <link>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714723#M9695</link>
      <description>&lt;P&gt;Are you comparing mean of X to the mean of Y? It would really be good if you state that clearly. Are you doing a "&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_ttest_examples03.htm&amp;amp;locale=en" target="_self"&gt;paired t-test&lt;/A&gt;" or an "&lt;A href="https://libguides.library.kent.edu/SAS/IndependentTTest" target="_self"&gt;unpaired t-test&lt;/A&gt;" (which is called "Independent Sample t-test" at that link). None of these produce an F-test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you testing the linear relationship between X and Y? It would be good if you state that clearly. It's not clear why you are using a CLASS statement when none of your variables are CLASS. Please explain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 18:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714723#M9695</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-01-27T18:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: F Test</title>
      <link>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714727#M9696</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Hypothesis: Ho equals 0 against H1 does not equal 0&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This explains nothing. What statistic are you comparing to zero? Means? Standard Deviations? Kurtosis?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Statistic is equal to zero on what variable? X or Y or both or something else?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 18:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714727#M9696</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-01-27T18:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: F Test</title>
      <link>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714965#M9698</link>
      <description>F test is for ANOVA . But you don't have CLASS variable .</description>
      <pubDate>Thu, 28 Jan 2021 12:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/F-Test/m-p/714965#M9698</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-01-28T12:56:17Z</dc:date>
    </item>
  </channel>
</rss>

