BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
olusam777
Calcite | Level 5

Greetings all,

I have a plant characterization data from two locations. There were 95 genotypes of plant used in the study. After running a two-way anova test on it using "PROC GLM" and the class as "genotypes" and "locations", i found out the output is not separating the results per each location. Instead, it is giving me a combined result of the two locations as one. Below is the code used and a view of the result. I s there anything i am doing wrong? Secondly in the means separation, it shows high level of difference, how do i report this?

Thanks.

code:

 

options ls=100 ps=1000 nocenter nolabel pageno=1;
data phd;
set olusam.phd;
run;
proc print data=phd; run;  
proc sort data=phd;
by lctns accns rep;
run;
 ODS RTF LISTING;
ODS RTF FILE='phd.rtf';
title glm phd;
proc glm data=phd plots=none;
class lctns accns;
model yield ph lle lwi dtf npet nol gct pel d50f npod nseed hswt tswt seedl seedw seedt = lctns accns lctns*accns;
means accns /duncan;
quit;
run;
ODS RTF CLOSE;
Anova result for one of the variablesAnova result for one of the variablesMeans separationMeans separation

 

1 ACCEPTED SOLUTION

Accepted Solutions
Haris
Lapis Lazuli | Level 10

You did not ask SAS to separate your locations.  What is the research question you're trying to answer?

View solution in original post

2 REPLIES 2
Haris
Lapis Lazuli | Level 10

You did not ask SAS to separate your locations.  What is the research question you're trying to answer?

olusam777
Calcite | Level 5

You are right @Haris, after taking a closer look i was able to figure out that i did not actually ask for the locations to be separated. I've done that now and it is fine. I'm trying to see how each variety perform at the different locations and their interactions. Thanks a lot.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1027 views
  • 0 likes
  • 2 in conversation