Hello,
I'm analyzing data collected from a Randomized Complete Block Design with missing observations, so I'm using Proc mixed (SAS 9.4). Within each block there is one fixed main plot factor (A) and one fixed subplot factor within each plot (B). I have been analyzing as a split-plot design with block as a random effect:
proc mixed;
class block A B;
model Y = A B A*B;
random block block*A;
Is this correct?
Also, I have another response where I took repeated measurements over time (time). It is also unbalanced. I have been using:
proc mixed;
class time block A B;
model Y = time|A|B;
random block block*A;
repeated time/ subject= block*A*B type=un ddfm=KR;
I've also been trying different covariance models with the repeated measures. With the Unstructured and Compound Symmetry covariance structure, the random statement shouldn't include the subject effect. Is the above random statement OK because they are different?
Thanks.
@tompatmck wrote:
Hello,
I'm analyzing data collected from a Randomized Complete Block Design with missing observations, so I'm using Proc mixed (SAS 9.4). Within each block there is one fixed main plot factor (A) and one fixed subplot factor within each plot (B). I have been analyzing as a split-plot design with block as a random effect:
proc mixed;
class block A B;
model Y = A B A*B;
random block block*A;
Is this correct?
Yes, this model seems to be consistent with your description of the experimental design.
Also, I have another response where I took repeated measurements over time (time). It is also unbalanced. I have been using:
proc mixed;
class time block A B;
model Y = time|A|B;
random block block*A;
repeated time/ subject= block*A*B type=un ddfm=KR;
I've also been trying different covariance models with the repeated measures. With the Unstructured and Compound Symmetry covariance structure, the random statement shouldn't include the subject effect. Is the above random statement OK because they are different?
The above code is correct except that "ddfm=KR" is an option on the MODEL statement, not the REPEATED statement. I don't know what you mean by "because they are different"; you could provide more information about your question.
I hope this helps.
@tompatmck wrote:
Hello,
I'm analyzing data collected from a Randomized Complete Block Design with missing observations, so I'm using Proc mixed (SAS 9.4). Within each block there is one fixed main plot factor (A) and one fixed subplot factor within each plot (B). I have been analyzing as a split-plot design with block as a random effect:
proc mixed;
class block A B;
model Y = A B A*B;
random block block*A;
Is this correct?
Yes, this model seems to be consistent with your description of the experimental design.
Also, I have another response where I took repeated measurements over time (time). It is also unbalanced. I have been using:
proc mixed;
class time block A B;
model Y = time|A|B;
random block block*A;
repeated time/ subject= block*A*B type=un ddfm=KR;
I've also been trying different covariance models with the repeated measures. With the Unstructured and Compound Symmetry covariance structure, the random statement shouldn't include the subject effect. Is the above random statement OK because they are different?
The above code is correct except that "ddfm=KR" is an option on the MODEL statement, not the REPEATED statement. I don't know what you mean by "because they are different"; you could provide more information about your question.
I hope this helps.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.