Displaying 1 result from an estimated 1 matches for "fecudnity".
2008 Mar 25
0
Mixed-effects models: question about the syntax to introduce interactions
...:
Because I was (I am still) not sure of how to include
all the variables in a single model, I started by
splitting up the data and assessing which is the best
model for each strain, therefore the ?Simplest? model
for each strain is:
Linear model.
Y[aij] = A[a] + error[aij]
R code:
m1 <- lm(fecudnity ~ Age)
Reduced mixed-effect model:
Y[aij] = A[a] + l[j] + i[i] + error[aij]
R code:
m2 <- lmer(fecudnity ~ Age + (1 | line/ind),
method=?ML?)
And a ?Full mixed-effects model? model (looking for
interactions between Age and line/ind)
Y[aij] = A[a] + A[a]*l[j] + A[a]*i[i] + error[aij]
R cod...