metafor-如何提取F统计量

发布于 2025-01-17 15:16:41 字数 111 浏览 4 评论 0原文

只是一个简短的问题:

我正在使用metafor软件包进行荟萃分析,并且我正在为3级模型使用rma.mv函数。如何为主持人分析提取F统计量?

提前致谢!

Just a short question:

I am doing a meta-analysis using the metafor package and I am using the rma.mv function for a 3-level model. How do I extract the f-statistic for the moderator analysis?

Thanks in advance!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你的往事 2025-01-24 15:16:41

找出这个问题答案的一些策略:

  1. 查看函数的文档,特别是描述函数返回内容的Value部分。对于 rma.mv(),请参见此处:

    https://wviechtb.github.io/metafor /reference/rma.mv.html#value-1

    您所询问的 F 统计量可能是来自综合检验的统计量。浏览该部分,我们发现QM - 主持人综合测试的测试统计数据。

  2. 或者,我们可以直接检查函数返回的对象。 str() 函数对此非常有用,因此只需执行 str(model) 即可。该函数返回了很多内容(并非所有内容都记录在上述 Value 部分中),并且您本质上只是在查找似乎包含您所在值的元素寻找。您可以更进一步,使用 unclass(model),它从对象中剥离类并按原样打印列表。但同样的想法 - 只需查看包含 F 统计量的元素返回的内容即可。经过一番搜索,你会再次发现它包含在QM元素中。

因此,model$QM 将为您提供 F 统计量。

Some strategies for figuring out the answer to this:

  1. Look at the documentation for the function and in particular, the Value section that describes what the function returns. For rma.mv(), see here:

    https://wviechtb.github.io/metafor/reference/rma.mv.html#value-1

    The F-statistic you are asking about is presumably the one from the omnibus test. Looking through the section, we find QM - test statistic of the omnibus test of moderators.

  2. Alternatively, one can examine the object that is returned by the function directly. The str() function is quite useful for this, so just do str(model). There is a lot of stuff that is returned by the function (not all of which is documented in the Value section described above) and you are essentially just looking for the element that appears to contain the value you are looking for. You can go even further and use unclass(model), which strips the class from the object and just prints the list as is. Same idea though - just look through what is returned for the element that contains the F-statistic. After some searching, you will find again that this is contained in element QM.

So, model$QM will give you the F-statistic.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文