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.
运行测试 ( model1.emm=emmeans(model1,~timeBin) contrast(model1.emm, "trt.vs.ctrl", ref = 1, adjust='fdr')) 后,这是我在控制台中看到的内容:
model1.emm=emmeans(model1,~timeBin) contrast(model1.emm, "trt.vs.ctrl", ref = 1, adjust='fdr')
是否可以将此输出导出到数据框?
我学会了如何导出其余的结果: result = as.data.frame(summary(model1.emm))
result = as.data.frame(summary(model1.emm))
以同样的方式导出。的结果contrast()是一个emmGrid对象,与 from 相同的类emmeans()。您可以使用summary()或as.data.frame()- 无需同时使用。
contrast()
emmGrid
emmeans()
summary()
as.data.frame()