[R-sig-ME] cross-level interaction in lme4

Simon Harmel @|m@h@rme| @end|ng |rom gm@||@com
Sat Sep 12 07:45:40 CEST 2020


Dear All,

In the model below, I have a cross-level interaction (SES of students x
MEAN SES of schools). However, MEAN SES of schools is made from SES of
students.

So, my question is: Is such an interaction: appropriate, meaningful, and
legitimate?

hsb <- read.csv('
https://raw.githubusercontent.com/rnorouzian/e/master/hsb.csv')

library(lme4)
m1 <- lmer(math ~ ses * meanses + (1|sch.id), data = hsb)

Thank you,
Simon

	[[alternative HTML version deleted]]



More information about the R-sig-mixed-models mailing list