I was wondering why m below is a legitimate model? If it is, what is the meaning of its random part?
ses is a level-1 predictor and sector a level-2 predictor making their combinations a cross-level interaction.
In other words, I'm asking how a cross-level interaction can be taken to be random in a 2-level model?
UPDATE: How about model mm with sector in the random part?
library(lme4)
hsb <- read.csv('https://raw.githubusercontent.com/rnorouzian/e/master/hsb.csv')
m <- lmer(math ~ ses*sector + (ses:sector | sch.id), data = hsb)
mm <- lmer(math ~ ses+sector + (sector | sch.id), data = hsb) #UPDATE
sectorin the random slopes part. – Robert Long Oct 08 '20 at 15:33