我正在使用lme4软件包在R中运行随机斜率混合效果模型:
mixed_effect_model <- lmer(
y ~ x_sqrd + x_scaled + (x_sqrd | industry) + (x_scaled | industry),
data=data,
REML=FALSE,
control = lmerControl(optimizer ='optimx', optCtrl=list(method=meth))
)
data refers to a data.frame() instantiation whilst meth is a list of optimisers from the optimx package.
我遇到了错误:
trying to get slot "factors" from an object of a basic class ("matrix") with no slots.
有人知道什么可能导致此错误,或者说错了吗?