在查看 ANOVA 时,我使用 rstatix anova_test 遇到了以下问题:
model <- anova_test(
data = twoway.df,
dv = Human,
wid = Id,
within = c(Time, Party)
)
产生以下错误:
Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
0 (non-NA) cases
如果我输入:
model <- anova_test(twoway, Human ~ Time*Party + Error(Id/Time*Party))
我遇到同样的错误。
我正在使用以下数据集:
https://github.com/EnglishManBob/Practice
我的数据集中没有任何缺失值,并且无法理解错误代码。为什么会发生这种情况,如何纠正?