I have activity levels of dogs and want to assess whether toy presence, toy groups, age, and the presence of toys on weekdays and weekends can affect the activity levels(DV).
The best way I thought of running a linear mixed effect model with collar activity was the following syntax in R using the lme4 package:
DV ~ Toy presence * toy group + age + (1|DogID)
or like this:
DV ~ Toy presence * toy group + age + Toy presence * week + (1|DogID)
or sorting out the activity level only in the presence of toys and evaluating the effect of the week (weekend/weekday) on activity levels. Running this gives the estimates of weekdays vs weekends.
However, if I use the first approach and have two interactions in a model, the results are quite different. So, I am confused about which way to approach this.
DVas your dependent variable, as the pseudocode otherwise doesn't make sense. – Shawn Hemelstrand Jan 14 '24 at 21:18