<?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: Means with the same letter are not significantly different in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Means-with-the-same-letter-are-not-significantly-different/m-p/533280#M146192</link>
    <description>&lt;P&gt;Ok , what’s the code that I need to add?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 06 Feb 2019 15:09:30 GMT</pubDate>
    <dc:creator>samer_badri75</dc:creator>
    <dc:date>2019-02-06T15:09:30Z</dc:date>
    <item>
      <title>Means with the same letter are not significantly different</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Means-with-the-same-letter-are-not-significantly-different/m-p/533124#M146128</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* day_day.sas;
options pageno=1 linesize=80;
goptions reset=all;
title "Two-way ANOVA for day";
title2 "Data from day and Reynolds (2007)";
data day;
	input location $ exp $ day;
	* Apply transformations here;
	y = log10(day);
	datalines;
Cool	EC	22
Cool	EC	20
Cool	EC	19
Cool	EC	19
Cool	AC	65
Cool	AC	51
Cool	AC	70
Cool	AC	78
FB	    EC	9
FB	    EC	10
FB	    EC	10
FB	    EC	10
FB	    AC	11
FB	    AC	10
FB  	AC	10
FB	    AC	11
RES	    EC	15
RES  	EC	12
RES	    EC	15
RES	    EC	11
RES	    AC	13
RES	    AC	14
RES	    AC	14
RES	    AC	13

;
run;
* Print data set;
proc print data=day;
run;
* Plot means, standard errors, and observations;
proc gplot data=day;
	plot y*location = exp  / vaxis=axis1 haxis=axis1 legend=legend1;
	symbol1 i=std1mjt v=star height=2 width=3;
	axis1 label=(height=2) value=(height=2) width=3 major=(width=2) minor=none;
	legend1 label=(height=2) value=(height=2);
run;
* Two-way ANOVA with all fixed effects;
proc glm data=day;
	class location  exp ;
	model y = location  exp  location *exp ;
    lsmeans location  exp  / adjust=tukey cl lines;
	output out=resids p=pred r=resid;
run;
* Two-way ANOVA with interaction;
title3 "MODEL WITH INTERACTION - USE THIS OUTPUT IF INTERACTION SIGNIFICANT";
proc glm data=day;
	class location exp;
	model y = location exp location*exp / ss2;
	lsmeans location*exp / slice=exp exp=location;
	output out=resids p=pred r=resid;
run;
goptions reset=all;
title "Diagnostic plots to check anova assumptions";
* Plot residuals vs. predicted values;
proc gplot data=resids;
	plot resid*pred=1 / vaxis=axis1 haxis=axis1;
	symbol1 v=star height=2 width=3;
	axis1 label=(height=2) value=(height=2) width=3 major=(width=2) minor=none;run;
* Normal quantile plot of residuals;
proc univariate noprint data=resids;
	qqplot resid / normal waxis=3 height=4;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Greeting All&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;I run one way-ANOVA and I got the results as showed in the pictures attached, can get a similar result in Two-way ANOVA.&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a.PNG" style="width: 307px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26875i0A913E7B580198CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="a.PNG" alt="a.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="b.PNG" style="width: 337px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26876iC1B550E79A4294EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="b.PNG" alt="b.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 03:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Means-with-the-same-letter-are-not-significantly-different/m-p/533124#M146128</guid>
      <dc:creator>samer_badri75</dc:creator>
      <dc:date>2019-02-06T03:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Means with the same letter are not significantly different</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Means-with-the-same-letter-are-not-significantly-different/m-p/533209#M146167</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I run one way-ANOVA and I got the results as showed in the pictures attached, can get a similar result in Two-way ANOVA.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Means-with-the-same-letter-are-not-significantly-different/m-p/533209#M146167</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-06T13:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Means with the same letter are not significantly different</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Means-with-the-same-letter-are-not-significantly-different/m-p/533280#M146192</link>
      <description>&lt;P&gt;Ok , what’s the code that I need to add?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 15:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Means-with-the-same-letter-are-not-significantly-different/m-p/533280#M146192</guid>
      <dc:creator>samer_badri75</dc:creator>
      <dc:date>2019-02-06T15:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Means with the same letter are not significantly different</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Means-with-the-same-letter-are-not-significantly-different/m-p/533282#M146194</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;lsmeans location*&lt;SPAN class="token function"&gt;exp&lt;/SPAN&gt;  &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; adjust&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;tukey cl lines&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 15:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Means-with-the-same-letter-are-not-significantly-different/m-p/533282#M146194</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-06T15:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Means with the same letter are not significantly different</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Means-with-the-same-letter-are-not-significantly-different/m-p/533346#M146215</link>
      <description>&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;I add it and it works perfect&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 523px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26910iA529F3CF4B98C407/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 17:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Means-with-the-same-letter-are-not-significantly-different/m-p/533346#M146215</guid>
      <dc:creator>samer_badri75</dc:creator>
      <dc:date>2019-02-06T17:19:43Z</dc:date>
    </item>
  </channel>
</rss>

