我正在关注教程并遇到以下语法:
# assume 'S' is the name of the subjects column
# assume 'X1' is the name of the first factor column
# assume 'X2' is the name of the second factor column
# assume 'X3' is the name of the third factor column
# assume 'Y' is the name of the response column
# run the ART procedure on 'df'
# linear mixed model syntax; see lme4::lmer
m = art(Y ~ X1 * X2 * X3 + (1|S), data=df)
anova(m)
我对(|)
语法有点困惑。我查看了有关线性混合模型语法的文档,发现:“随机效应项的区别在于将设计矩阵的表达式与分组因子lmer
分开的竖线”。(|)
所以我假设1
这里S
有两个随机效应术语。S
作为随机效应是有意义的,因为它是一个可以代表参与者的随机变量。但是1
随机变量如何?1
这里的和是什么|
意思?