<?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: How to perform anova on imported xls dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-anova-on-imported-xls-dataset/m-p/481734#M124672</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/222058"&gt;@inteli&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for the advice and help.&lt;/P&gt;
&lt;P&gt;Please one more, how do I add more independent variable&amp;nbsp; to the code (like the rest of RF, minT, maxT, and ST) to evalute all at once.&lt;/P&gt;
&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Basic is just to list them:&amp;nbsp; model ref= maxT mint st rt;&lt;/P&gt;
&lt;P&gt;That is a "main effects" model where none of the potential interactions are considered. Interactions are indicated with an *.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;model ref= maxT mint st rt&amp;nbsp; maxt*mint ;&lt;/P&gt;
&lt;P&gt;would consider the interaction of maxt and mint. Any variables that might interact could be indicated. You can have multiple levels of interaction: model ref= maxT mint st rt maxt*mint*st ; for instance.&lt;/P&gt;
&lt;P&gt;This is not a trivial question. The syntax can get a bit confusing as to what is meant by combinations of * () and the | symbol. Check your online documentation for Proc Anova model statement. There should be a link to "specification of effects" to go through more combinations.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jul 2018 15:14:47 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-07-27T15:14:47Z</dc:date>
    <item>
      <title>How to perform anova on imported xls dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-anova-on-imported-xls-dataset/m-p/481703#M124653</link>
      <description>&lt;P&gt;Please can someone help? I have been trying to perform anova on the attached imported data from excel but unsuccessful.&lt;/P&gt;&lt;P&gt;After importing the table into SAS data set and using the script below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc anova data=race1.sr2013;&lt;BR /&gt;class maxT;&lt;BR /&gt;model Res=maxT;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result does not give the F value neither the Pr&amp;gt;F values&lt;/P&gt;&lt;P&gt;I tried running&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data race1.sr2013;&lt;BR /&gt;do maxT = 1 to 7;&lt;BR /&gt;do i = 1 to 7;&lt;BR /&gt;input RES @@@; output; end; end; cards;&lt;BR /&gt;proc anova; class maxT; model RES=maxT; means maxT/LSD; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yet this deletes the data from the SAS table with the log massage:&lt;/P&gt;&lt;P&gt;NOTE: The data set GRACE1.SR2015 has 0 observations and 3 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.03 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.03 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am learning SAS and any assistance would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 22:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-anova-on-imported-xls-dataset/m-p/481703#M124653</guid>
      <dc:creator>inteli</dc:creator>
      <dc:date>2018-07-26T22:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform anova on imported xls dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-anova-on-imported-xls-dataset/m-p/481710#M124657</link>
      <description>&lt;P&gt;Post code into a code box opened using the forums {I}.&lt;/P&gt;
&lt;P&gt;Include the lines of data following the cards; statement through the ending ;&lt;/P&gt;
&lt;P&gt;If you didn't have any data then that is an issue: there was nothing for the INPUT to read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your example data does not have any repeat values for the maxT variable. So there is no variability in the dependent variable based on the independent variable for the F statistic to use.&lt;/P&gt;
&lt;P&gt;Try this as an example where I have edited the maxT value for Jul-13 to match Jun-13.&lt;/P&gt;
&lt;PRE&gt;data work.sr2013;
input MONTHS $	RF	maxT	minT	ST	Res;
datalines;
Jun-13	13.97	31.60	23.40	15.87	5.43
Jul-13	9.77	31.60	23.06	26.88	8.52
Aug-13	11.77	29.29	23.03	26.77	8.47
Sep-13	12.87	30.37	23.03	27.33	8.75
Oct-13	12.98	31.35	22.71	28.18	9.18
Nov-13	43.08	32.13	22.87	29.28	9.76
Dec-13	9.33	32.16	20.66	28.02	9.11
;
run;


proc anova data=work.sr2013;
class maxT ;
model Res=maxT ;
run;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jul 2018 22:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-anova-on-imported-xls-dataset/m-p/481710#M124657</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-26T22:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform anova on imported xls dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-anova-on-imported-xls-dataset/m-p/481729#M124668</link>
      <description>&lt;P&gt;Thank you for the advice and help.&lt;/P&gt;&lt;P&gt;Please one more, how do I add more independent variable&amp;nbsp; to the code (like the rest of RF, minT, maxT, and ST) to evalute all at once.&lt;/P&gt;&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 23:34:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-anova-on-imported-xls-dataset/m-p/481729#M124668</guid>
      <dc:creator>inteli</dc:creator>
      <dc:date>2018-07-26T23:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform anova on imported xls dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-anova-on-imported-xls-dataset/m-p/481734#M124672</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/222058"&gt;@inteli&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for the advice and help.&lt;/P&gt;
&lt;P&gt;Please one more, how do I add more independent variable&amp;nbsp; to the code (like the rest of RF, minT, maxT, and ST) to evalute all at once.&lt;/P&gt;
&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Basic is just to list them:&amp;nbsp; model ref= maxT mint st rt;&lt;/P&gt;
&lt;P&gt;That is a "main effects" model where none of the potential interactions are considered. Interactions are indicated with an *.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;model ref= maxT mint st rt&amp;nbsp; maxt*mint ;&lt;/P&gt;
&lt;P&gt;would consider the interaction of maxt and mint. Any variables that might interact could be indicated. You can have multiple levels of interaction: model ref= maxT mint st rt maxt*mint*st ; for instance.&lt;/P&gt;
&lt;P&gt;This is not a trivial question. The syntax can get a bit confusing as to what is meant by combinations of * () and the | symbol. Check your online documentation for Proc Anova model statement. There should be a link to "specification of effects" to go through more combinations.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 15:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-anova-on-imported-xls-dataset/m-p/481734#M124672</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-27T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform anova on imported xls dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perform-anova-on-imported-xls-dataset/m-p/481782#M124699</link>
      <description>&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 06:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perform-anova-on-imported-xls-dataset/m-p/481782#M124699</guid>
      <dc:creator>inteli</dc:creator>
      <dc:date>2018-07-27T06:55:16Z</dc:date>
    </item>
  </channel>
</rss>

