Reputation: 1
I have a mixed model containing the response variable (resp), two fixed effects (fix1 and fix2) and a random factor (ran1). In particular:
An example of the type of data I am using is
library("tidyr")
library("dplyr")
set.seed(123)
DF <- data.frame(resp = rnorm(84, -2, 1),
fix1 = c(rep("C",42),rep("Trt",42)),
fix2 = c(rep("1",6),rep("2",6),rep("3",6),rep("4",6),rep("5",6),rep("6",6),rep("7",6),
rep("1",6),rep("2",6),rep("3",6),rep("4",6),rep("5",6),rep("6",6),rep("7",6)),
ran1 = c(rep(1:6,14)))
DF
From the example above it's evident that:
In a mixed model containing the interaction between fix1 and fix2,
LME <- lmer(resp ~ fix1 * fix2 + (1 | ran1), DF)
I would like to compare (for fix2):
My questions are:
Upvotes: 0
Views: 719