1) Did I write this coding correctly? I'm running a CRD with subsamples. Fixed variables: Treatment and Rows(Treatment). Random variables Phenology.
2) I collected subsamples over three years but the years should not be pooled. How can I ask SAS to analyze only one year without altering my data set by hand?
3) How can I ask SAS to compare each row within each treatment and phenology but not between them? For example, I would like to compare 'Phenology Lvl 1, Trt Lvl 1, Row Lvl 1' vs. 'Phenology 1, Trt 1, Row 2' but I do not want to view 'Phenology 1, Trt 1, Row 1' vs. 'Phenology 2, Trt 2, Row 1.'
PROC MIXED DATA = Abundance3Year METHOD = TYPE3;
CLASS TREATMENT RowOrder PhenologyRef;
MODEL PairsRecovdRate = RowOrder(Treatment);
RANDOM PhenologyRef PhenologyRef*Treatment;
LSMEANS RowOrder(Treatment) / PDIFF;
RUN; QUIT;
Thanks for your help.
.