Dear all,
I have an example for which I'm confused to set the best model.
I want to see the effect of the season on the milk production of crossbred cows. Seasons are: Summer season= Jun-Jull-Aug Winter season= Dec-Janv-Fev; There are two groups : 40 animals with the same lactation stage and the same characteristics in each season.
can we say: Yij=u+Si+ei (GLM); OR Yijk= u+Si+Mj+(SxM)ij+ek, where m = random effect of the month
but I think it is useless because the month is included in the season. Which is the best model or is there other options.
Looking forward to an answer
Since month is included in season, I would not put both in the model. Just use month. You can create a contrast that compares the effect of June/July/Aug to Dec/Jan/Feb.
the main effect is basically the season, can we say that month is a repeated measurement? in this case is this a mixed linear model? and how to present the month in the result table please?
@always-good wrote:
the main effect is basically the season, can we say that month is a repeated measurement?
As you are the subject matter expert, and not me, these are decisions you need to make. I have no opinion one way or the other as I don't work with cows or any type of similar study.
in this case is this a mixed linear model?
If you decide these are repeated measurements, then I think so.
and how to present the month in the result table please?
what table are you talking about?
Hello,
Sorry for the misunderstanding, I'm asking if both options are correct first to decide whether it is GLM or can be mixed.
I mean to present the effect of the month as a repeated measurement.
Thank you
If you know the month, you already know the season.
When one predictor is entirely predictable from another predictor, I believe that the resulting SSCP matrix will not be invertible, as it won't be full rank.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.