Hello everyone,
I need your urgent help.
I have 16 plants treated with 16 different fertilizers and a control plant (untreated), for a total of 17 units. The pots were randomly arranged without replication. However, these plants were fertilized for 27 weeks. What would be the repeated measure code for this? I want to see the effects of these fertilizers on plant height for 27 weeks. This is the coding I came up with. Thanks for your valuable time.
frt= fertilizers
ph= plant height
Proc glimmix Data =first;
class frt ph week;
model ph = fert week fert*week;
random week/subject=frt*rep type=ar(1) residual;
lsmeans fert*week / pdiff Adjust = Tukey lines slicediff= day;
output out=second predicted=pred residual=resid residual(noblup)=mresid student=studentresid student(noblup)=smresid;
Run;