Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 r 中,如何获得由双向 ANOVA(每个组合的均值)产生的不同组的均值?
有一个命令。假设您的模型是m.
m
model.tables(m, type = 'means')
一种可能:
m1 <- lm(y~f1*f2,data=d) predict(m1,newdata=with(d,expand.grid(f1=levels(f1),f2=levels(f2)))