Skip to content
Prev 18633 / 20628 Next

Random slope with cross-level interaction

? Assuming that fertilizer is a numeric covariate and wheatlanduse is 
categorical, you might want

lmer( Production ~ seed + fertilizer *wheatlanduse + (1 + fertilizer | 
Household) , contrasts=list(wheatlanduse=contr.sum), ...)

 ? that would mean that the main effect for fertilizer would represent 
the *average* effect across levels of wheatlanduse.? The estimated main 
effect of wheatlanduse will represent the expected differences across 
levels at zero fertilizer (or, if you center fertilizer by subtracting 
the mean, at the average fertilizer level)

 ?? I'm not sure what you mean by "cross-level interaction" ...
On 7/19/20 12:59 PM, Yashree Mehta wrote: