If you have a new question, I recommend starting a new thread. If you tap into an old thread, especially if it has already been answered, people may overlook your question.
Do you have intake data for each of the 3 feeds for each animal for each period, or do you have intake data for each of the 3 feeds for each pen for each period?
Was the amount of feed provided in the pen with 8 animals the same absolute quantity as the amount in the pen with 1 animal, or was it 8 times the amount? Did each pen eat appreciably less than the amount of each feed provided, or did the amount of feed provided impose some sort of constraint on consumption? For example, the pen ate all of its favorite feed and then moved to a less favored feed.
Are you pondering feed preference (in other words, preferential consumption of some feeds over others) as a consequence of stocking rate, as opposed to total consumption as a consequence of stocking rate? Do you plan to analyze consumption/preference of each feed separately? Or are you looking at compositional consumption (in other words, joint consumption of the three feeds, which might be thought of as diet allocation)?
How many pens did you have for each stocking rate?
In this study, pen is the experimental unit for stocking rate. It is not uncommon for people to think of animal as the experimental unit, but that is an incorrect assumption. Consequently, any measurements that you have on individual animals within a pen should be considered to be subsamples rather than true replicates. Plus, typically in studies like this, you have consumption by pen and not by individual animal within a pen.
Once we have a better understanding of your study, we can help you with your code. But you'll need to show what you've tried so far to give us something to work from.
And I have to ask, without intending to be mean but intending to point out the importance of planning ahead, Why did you not think about analysis before you collected your data? (You are definitely not alone in that approach, but it really is not in anyone's best interest.)
I hope this provides some clarity. Please follow up as need be.
... View more