BookmarkSubscribeRSS Feed
Bhupinder
Calcite | Level 5
For year 2007, and 2008 I have four levels of phosphorus and potassium but in 2009, only two levels of each. Can you please tell if my following model will take of this unbalanced design?

proc mixed data=Soils covtest cl ic;
ods output InfoCrit=ic;
class year Block Plot Tillplc Prate Krate Depth;
model log_Phos = year|Tillplc|Prate|Krate|Depth / ddfm=kr ;
random int tillplc tillplc*prate tillplc*Krate/subject = Block(year)
lsmeans year*Prate/ adjust=tukey;
lsmeans year*Krate/ adjust=tukey;
lsmeans year*Prate*Krate/ adjust=tukey;

Will I be able to still make correct comparisons of Prate and Krate for different years like i am showing in lsmeans statement?

Thanks
Bhupinder
3 REPLIES 3
SteveDenham
Jade | Level 19
This should work OK, as the year*Prate, year*Krate, and year*Prate*Krate lsmeans should all be estimable. However, main effect lsmeans will not be estimable.

Steve Denham
Bhupinder
Calcite | Level 5
So, it means I need to write contrasts to get those particular estimates?

One more question on this model, will same model work good if I don't have Prate and Krate treatments in one of the three years under study?

Thanks
Bhupinder
SteveDenham
Jade | Level 19
Actually, I would use the LSMESTIMATE option (if you have v 9.2), otherwise it would require estimates/contrasts.

I guess I don't quite know what you mean by the last statement--are you missing all of the treatments, or just some of them?

I begin to think that a means model may be what is needed. See SAS System for Mixed Models (Littel et al.) or Analysis of Messy Data, vol. 1 (Milliken and Johnson).

Steve Denham

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 3 replies
  • 1316 views
  • 0 likes
  • 2 in conversation