• 文献检索
  • 文档翻译
  • 深度研究
  • 学术资讯
  • Suppr Zotero 插件Zotero 插件
  • 邀请有礼
  • 套餐&价格
  • 历史记录
应用&插件
Suppr Zotero 插件Zotero 插件浏览器插件Mac 客户端Windows 客户端微信小程序
定价
高级版会员购买积分包购买API积分包
服务
文献检索文档翻译深度研究API 文档MCP 服务
关于我们
关于 Suppr公司介绍联系我们用户协议隐私条款
关注我们

Suppr 超能文献

核心技术专利:CN118964589B侵权必究
粤ICP备2023148730 号-1Suppr @ 2026

文献检索

告别复杂PubMed语法,用中文像聊天一样搜索,搜遍4000万医学文献。AI智能推荐,让科研检索更轻松。

立即免费搜索

文件翻译

保留排版,准确专业,支持PDF/Word/PPT等文件格式,支持 12+语言互译。

免费翻译文档

深度研究

AI帮你快速写综述,25分钟生成高质量综述,智能提取关键信息,辅助科研写作。

立即免费体验

在(广义)线性混合模型中估计功效:在 R 中的开放介绍和教程。

Estimating power in (generalized) linear mixed models: An open introduction and tutorial in R.

机构信息

Department of Psychology, Scene Grammar Lab, Goethe University Frankfurt, Frankfurt am Main, Germany.

Oxford Centre for Human Brain Activity, Wellcome Centre for Integrative Neuroimaging, Department of Psychiatry, University of Oxford, Oxford, UK.

出版信息

Behav Res Methods. 2021 Dec;53(6):2528-2543. doi: 10.3758/s13428-021-01546-0. Epub 2021 May 5.

DOI:10.3758/s13428-021-01546-0
PMID:33954914
原文链接:https://pmc.ncbi.nlm.nih.gov/articles/PMC8613146/
Abstract

Mixed-effects models are a powerful tool for modeling fixed and random effects simultaneously, but do not offer a feasible analytic solution for estimating the probability that a test correctly rejects the null hypothesis. Being able to estimate this probability, however, is critical for sample size planning, as power is closely linked to the reliability and replicability of empirical findings. A flexible and very intuitive alternative to analytic power solutions are simulation-based power analyses. Although various tools for conducting simulation-based power analyses for mixed-effects models are available, there is lack of guidance on how to appropriately use them. In this tutorial, we discuss how to estimate power for mixed-effects models in different use cases: first, how to use models that were fit on available (e.g. published) data to determine sample size; second, how to determine the number of stimuli required for sufficient power; and finally, how to conduct sample size planning without available data. Our examples cover both linear and generalized linear models and we provide code and resources for performing simulation-based power analyses on openly accessible data sets. The present work therefore helps researchers to navigate sound research design when using mixed-effects models, by summarizing resources, collating available knowledge, providing solutions and tools, and applying them to real-world problems in sample sizing planning when sophisticated analysis procedures like mixed-effects models are outlined as inferential procedures.

摘要

混合效应模型是同时对固定效应和随机效应进行建模的有力工具,但对于估计检验正确拒绝零假设的概率,它没有提供可行的解析解决方案。然而,能够估计这个概率对于样本量规划至关重要,因为功效与实证发现的可靠性和可重复性密切相关。一种灵活且非常直观的替代解析功效解决方案是基于模拟的功效分析。尽管有各种用于混合效应模型的基于模拟的功效分析的工具,但缺乏关于如何正确使用它们的指导。在本教程中,我们将讨论如何在不同的用例中估计混合效应模型的功效:首先,如何使用在可用(例如已发表)数据上拟合的模型来确定样本量;其次,如何确定获得足够功效所需的刺激数量;最后,如何在没有可用数据的情况下进行样本量规划。我们的示例涵盖了线性和广义线性模型,并提供了用于对公开可访问数据集执行基于模拟的功效分析的代码和资源。因此,当使用混合效应模型时,本工作通过总结资源、整理现有知识、提供解决方案和工具,并将其应用于样本量规划中的实际问题,帮助研究人员在进行复杂的分析程序(如混合效应模型)作为推断程序时,对合理的研究设计进行导航。

https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/a3c77d2eae7c/13428_2021_1546_Fig8_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/1c8efbfbd7be/13428_2021_1546_Fig1_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/f79e9c03d7ba/13428_2021_1546_Fig2_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/cbcf337b18e3/13428_2021_1546_Fig3_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/c46a94fa8937/13428_2021_1546_Fig4_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/015d006825f5/13428_2021_1546_Fig5_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/aeb04d639e7a/13428_2021_1546_Fig6_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/2e39521fae55/13428_2021_1546_Fig7_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/a3c77d2eae7c/13428_2021_1546_Fig8_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/1c8efbfbd7be/13428_2021_1546_Fig1_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/f79e9c03d7ba/13428_2021_1546_Fig2_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/cbcf337b18e3/13428_2021_1546_Fig3_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/c46a94fa8937/13428_2021_1546_Fig4_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/015d006825f5/13428_2021_1546_Fig5_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/aeb04d639e7a/13428_2021_1546_Fig6_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/2e39521fae55/13428_2021_1546_Fig7_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/d470/8613146/a3c77d2eae7c/13428_2021_1546_Fig8_HTML.jpg

相似文献

1
Estimating power in (generalized) linear mixed models: An open introduction and tutorial in R.在(广义)线性混合模型中估计功效:在 R 中的开放介绍和教程。
Behav Res Methods. 2021 Dec;53(6):2528-2543. doi: 10.3758/s13428-021-01546-0. Epub 2021 May 5.
2
Flexible multi-step hypothesis testing of human ECoG data using cluster-based permutation tests with GLMEs.使用基于聚类的置换检验和 GLMEs 对人类 ECoG 数据进行灵活的多步假设检验。
Neuroimage. 2024 Apr 15;290:120557. doi: 10.1016/j.neuroimage.2024.120557. Epub 2024 Feb 27.
3
Summary-statistics-based power analysis: A new and practical method to determine sample size for mixed-effects modeling.基于汇总统计量的功效分析:一种用于确定混合效应模型样本量的新实用方法。
Psychol Methods. 2022 Dec;27(6):1014-1038. doi: 10.1037/met0000330. Epub 2022 Jan 31.
4
Post-selection Inference in Multiverse Analysis (PIMA): An Inferential Framework Based on the Sign Flipping Score Test.多宇宙分析中的后选择推断(PIMA):基于符号翻转得分检验的推断框架。
Psychometrika. 2024 Jun;89(2):542-568. doi: 10.1007/s11336-024-09973-6. Epub 2024 Apr 25.
5
Folic acid supplementation and malaria susceptibility and severity among people taking antifolate antimalarial drugs in endemic areas.在流行地区,服用抗叶酸抗疟药物的人群中,叶酸补充剂与疟疾易感性和严重程度的关系。
Cochrane Database Syst Rev. 2022 Feb 1;2(2022):CD014217. doi: 10.1002/14651858.CD014217.
6
Comparing Generalized Estimating Equation and Linear Mixed Effects Model for Estimating Marginal Association with Bivariate Continuous Outcomes.比较广义估计方程和线性混合效应模型,用于估计双变量连续结局的边缘关联。
Ophthalmic Epidemiol. 2023 Jun;30(3):307-316. doi: 10.1080/09286586.2022.2098984. Epub 2022 Jul 15.
7
Simulation methods to estimate design power: an overview for applied research.模拟方法估计设计功率:应用研究概述。
BMC Med Res Methodol. 2011 Jun 20;11:94. doi: 10.1186/1471-2288-11-94.
8
Sample size planning for complex study designs: A tutorial for the mlpwr package.复杂研究设计的样本量规划:mlpwr 包教程。
Behav Res Methods. 2024 Aug;56(5):5246-5263. doi: 10.3758/s13428-023-02269-0. Epub 2023 Nov 29.
9
Power and sample size analysis for longitudinal mixed models of health in populations exposed to environmental contaminants: a tutorial.人群暴露于环境污染物的健康纵向混合模型的功效和样本量分析:教程。
BMC Med Res Methodol. 2023 Jan 12;23(1):12. doi: 10.1186/s12874-022-01819-y.
10
Design and analysis of a 2-year parallel follow-up of repeated ivermectin mass drug administrations for control of malaria: Small sample considerations for cluster-randomized trials with count data.重复使用伊维菌素进行大规模药物治疗以控制疟疾的 2 年平行随访的设计和分析:用于计数数据的群组随机试验的小样本考虑因素。
Clin Trials. 2021 Oct;18(5):582-593. doi: 10.1177/17407745211028581. Epub 2021 Jul 3.

引用本文的文献

1
People overlook subtractive solutions to mental health problems.人们忽视了针对心理健康问题的减法解决方案。
Commun Psychol. 2025 Aug 20;3(1):128. doi: 10.1038/s44271-025-00312-8.
2
Factors Affecting Anal Sphincter Recruitment During Intraoperative Pudendal Nerve Stimulation: An Observational Study.术中阴部神经刺激期间影响肛门括约肌募集的因素:一项观察性研究。
Int Urogynecol J. 2025 Aug 13. doi: 10.1007/s00192-025-06238-3.
3
Interferences between time and space in advanced age.高龄阶段时间与空间的相互干扰。

本文引用的文献

1
Experiments with More Than One Random Factor: Designs, Analytic Models, and Statistical Power.一个以上随机因素的实验:设计、分析模型和统计功效。
Annu Rev Psychol. 2017 Jan 3;68:601-625. doi: 10.1146/annurev-psych-122414-033702. Epub 2016 Sep 28.
2
A practical guide and power analysis for GLMMs: detecting among treatment variation in random effects.广义线性混合模型实用指南及功效分析:检测随机效应中的处理间差异
PeerJ. 2015 Sep 17;3:e1226. doi: 10.7717/peerj.1226. eCollection 2015.
3
Beyond Power Calculations: Assessing Type S (Sign) and Type M (Magnitude) Errors.
Mem Cognit. 2025 Aug 12. doi: 10.3758/s13421-025-01775-0.
4
The development of semantic integration in bilingual toddlers measured by N400.通过N400测量双语幼儿语义整合的发展。
Dev Cogn Neurosci. 2025 Jul 23;75:101599. doi: 10.1016/j.dcn.2025.101599.
5
The perils of the first try: experimental evidence for visuomotor calibration in darts and hammering.首次尝试的风险:飞镖投掷和锤击动作中视觉运动校准的实验证据。
Psychol Res. 2025 Jul 22;89(4):126. doi: 10.1007/s00426-025-02161-w.
6
Evidence for trans-synaptic propagation of oligomeric tau in human progressive supranuclear palsy.人进行性核上性麻痹中寡聚tau蛋白跨突触传播的证据。
Nat Neurosci. 2025 Jul 16. doi: 10.1038/s41593-025-01992-5.
7
The fundamentals of eye tracking part 5: The importance of piloting.眼动追踪基础 第5部分:预试验的重要性。
Behav Res Methods. 2025 Jul 2;57(8):216. doi: 10.3758/s13428-025-02737-9.
8
What a Sham(e): Sham-Controlled Conditioned Pain Modulation Effects on Pressure but Not Heat Pain Thresholds in Healthy Volunteers.多么令人遗憾:假对照条件性疼痛调制对健康志愿者压力痛阈而非热痛阈的影响
Eur J Pain. 2025 Jul;29(6):e70067. doi: 10.1002/ejp.70067.
9
Effects of chemotherapy on skeletal muscle mitochondrial oxidative capacity using near-infrared spectroscopy (NIRS): Protocol paper for an observational mixed model repeated measures design in patients with breast and gynecological cancer.使用近红外光谱法(NIRS)研究化疗对骨骼肌线粒体氧化能力的影响:乳腺癌和妇科癌症患者观察性混合模型重复测量设计的方案文件
PLoS One. 2025 Jun 27;20(6):e0315351. doi: 10.1371/journal.pone.0315351. eCollection 2025.
10
Associating everything with everything else, all at once: Semantic associations facilitate visual working memory formation for real-world objects.一次性将所有事物与其他所有事物关联起来:语义关联有助于形成对现实世界物体的视觉工作记忆。
J Exp Psychol Hum Percept Perform. 2025 Jun 26. doi: 10.1037/xhp0001347.
超越功效计算:评估 S 型(信号)和 M 型(幅度)误差。
Perspect Psychol Sci. 2014 Nov;9(6):641-51. doi: 10.1177/1745691614551642.
4
Power analysis for generalized linear mixed models in ecology and evolution.生态学与进化中广义线性混合模型的功效分析。
Methods Ecol Evol. 2015 Feb;6(2):133-142. doi: 10.1111/2041-210X.12306. Epub 2014 Dec 6.
5
Eye movements guided by morphological structure: evidence from the Uighur language.由形态结构引导的眼动:来自维吾尔语的证据。
Cognition. 2014 Aug;132(2):181-215. doi: 10.1016/j.cognition.2014.03.008. Epub 2014 May 9.
6
Replication studies: Bad copy.复制研究:糟糕的复制品。
Nature. 2012 May 16;485(7398):298-300. doi: 10.1038/485298a.
7
Sample size planning for statistical power and accuracy in parameter estimation.用于统计功效和参数估计准确性的样本量规划。
Annu Rev Psychol. 2008;59:537-63. doi: 10.1146/annurev.psych.59.103006.093735.
8
Type I and Type II error under random-effects misspecification in generalized linear mixed models.广义线性混合模型中随机效应设定错误下的I型和II型错误
Biometrics. 2007 Dec;63(4):1038-44. doi: 10.1111/j.1541-0420.2007.00782.x. Epub 2007 Apr 9.