New answers tagged

1 vote

Question regarding coefficents regarding linear modeling in R

thus my new formula is just XZ + YZ ? No, the * operator in R expands into all lower-order terms. terms(~(X * Z) + (Y * Z)) ...
Terrence's user avatar
  • 111
0 votes

Does anyone know if I have written this mixed model correctly in lme4?

Perhaps this is what the authors intended: lmer(Index ~ Genotype + (1 + Genotype | Location) + (1 | Rep:Location)) That is, a "random slope" for Genotype by location.
Chris Andrews's user avatar

Top 50 recent answers are included