如何使用小鼠对估算的数据进行事后测试(包括Tukey和Gammel-Howell)

发布于 2025-02-09 07:01:30 字数 617 浏览 2 评论 0原文

我想使用R中的小鼠对估算数据进行事后测试。 通常,小鼠会渗出数据,这些数据被转换为长数据以计算总分,并可以转换回中元素。然后对Miro元素进行分析,然后进行分析。

但是,我无法将其运行进行事后测试,包括Tukey和Gammel-Howell。有人可以提供帮助吗?

IMP <- mice(data, m=5, maxit=10)
IMP_long <- data.frame(complete(IMP, include=TRUE, action= 'long')
IMP_mids <- as.mids(IMP_long, where = NULL, .imp='.imp', .id = '.id'
fit <- with(IMP_mids, expr=lm(total_score ~ GroupingVariable))

分组变量由我想对成对进行比较的3组组成。即1VS2、2VS3和1VS3。

summary(pool(fit))

- &gt;相对于截距,这给出了两组之间的比较。同样,通过使用对比度在创建模型之前,

他们知道如何将三组在一个分析中与Tukey和/或Gammel-Howell进行比较?

提前致谢!!

I would like to perform post-hoc tests on imputed data using MICE in R.
Typically MICE imputes data which is converted to long data to calculate total scores and can be converted back into MIDS elements. Analysis is then conducted over a MIRO element after which analysis can be pooled.

However, I am not able to get it running for post hoc tests including Tukey and Gammel-Howell. Would someone be able to help?

IMP <- mice(data, m=5, maxit=10)
IMP_long <- data.frame(complete(IMP, include=TRUE, action= 'long')
IMP_mids <- as.mids(IMP_long, where = NULL, .imp='.imp', .id = '.id'
fit <- with(IMP_mids, expr=lm(total_score ~ GroupingVariable))

The grouping variable consists of 3 groups which I would like to compare pairwise. Namely 1vs2, 2vs3 and 1vs3.

summary(pool(fit))

-> this gives comparisons between two groups, relative to the intercept. Similarly by using contrasts before creating model

Someone who knows how to compare the three groups in one analysis with tukey and/or gammel-howell?

Thanks in advance!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文