Programming the statistical procedures from SAS

Unbalanced Incomplete Block Design in proc MIXED

Reply
New Contributor
Posts: 3

Unbalanced Incomplete Block Design in proc MIXED

We conducted a trial with a one-way treatment structure with 2 trt levels. We applied the two treatments to pens of pigs in a randomized block design. However, we ended up with 45 pens, thus one of the blocks out of 23 blocks had only 1 treatment. How do I code this unbalanced incomplete block desing in Proc MIXED? Or is the code exactly the same as a RCBD and there is something we need to compute on the datalines?

 

Thanks,

Trusted Advisor
Posts: 1,932

Re: Unbalanced Incomplete Block Design in proc MIXED

Posted in reply to carinevier

I am somewhat unclear on what exactly do you mean by a "block" in this case, is it a pen of pigs which gets two treatments, or is it two pens of pigs that are somehow paired (if so, how are they paired) or is it something else?

 

Depending on your answer, I could see removing one block that didn't get two treatments and doing the analysis, or alternatively analyzing all 45 blocks and ignoring the imbalance.

New Contributor
Posts: 3

Re: Unbalanced Incomplete Block Design in proc MIXED

Posted in reply to PaigeMiller
Thanks for the quick reply. The blocks were consisted by pairs of pens, and they were created based on the "pen" average body weight. Does this make sense?
Trusted Advisor
Posts: 1,932

Re: Unbalanced Incomplete Block Design in proc MIXED

Posted in reply to carinevier

That makes sense.

 

I would then analyze all 45 pens, with the average weight in the pen as the coviarate (assuming average weight has some theoretical effect on the results).

New Contributor
Posts: 3

Re: Unbalanced Incomplete Block Design in proc MIXED

Posted in reply to PaigeMiller

Yes the pen average weight indeed has an effect on the results, that is why we decided to block. However, I am a bit concerned about analyzing all 45 pens with BW as a covariate. I don't think it is appropriate to remove the block factor and analyze the it as a covariate since blocking was already part of the design structure. 

Ask a Question
Discussion stats
  • 4 replies
  • 150 views
  • 0 likes
  • 2 in conversation