【发布时间】:2021-03-18 10:51:35
【问题描述】:
我正在关注一个教程并遇到以下语法:
# 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)
我对@987654324@ 语法有点困惑。我查看了线性混合模型语法lmer 的文档,发现:
“随机效应项通过竖线(|) 将设计矩阵的表达式与分组因素分开”来区分。
所以我假设1 和S 这里是两个随机效应术语。 S 作为随机效应是有意义的,因为它是一个可以代表参与者的随机变量。但是1 怎么是随机变量呢? 1 和 | 在这里是什么意思?
【问题讨论】:
-
这篇文章可能会解释
1显式拦截:stackoverflow.com/q/13366755/680068