我想在多级模型中绘制两个连续变量的交互效果。该模型如下:
lme4::glmer(final$trust ~ final$educ.c +
final$age.c +
final$gender +
final$C14 RESPONDENT_OCCUPATION_SCALE +
final$tot_country.c +
final$int_use.c +
final$educ.c*final$acc.c +
(final$educ.c | final$Country),
data = final,
family = binomial,
weights = final$W85_WEIGHT_EU27_+_TR_+_HR_+_NO_+_CH_+_IS, nAGQ=0,
control = glmerControl(optimizer = "optimx", calc.derivs = FALSE, optCtrl = list(method = "nlminb", starttests = FALSE, kkt = FALSE)))
我感兴趣的互动是final$educ.c*final$acc.c
,因变量是二分的,在咨询了各种网站和类似问题后,我仍然在努力解决它。有人有关于如何做的建议吗?