# 混合设计（统计学）

混合设计是一种实验设计，其中至少一个因素在独立的被试组之间变化，至少一个因素在同一批被试身上跨重复条件变化，并用混合模型方差分析或线性混合模型进行分析。当一些实验因素来自独立样本、另一些来自同一批被试的重复测量时，就会出现这种设计；重复测量引入了非独立观测，需要通过校正F比值的分母来处理。<sup>[1](https://crossley.github.io/book_stats/mixed-design-anova.html)</sup> 其最简单的形式是含一个被试间因素和一个重复测量因素的双因素方差分析，同时作为独立样本方差分析和重复测量方差分析来运行。<sup>[2](https://lhbikos.github.io/ReCenterPsychStats/Mixed.html)</sup> 行为研究者常称之为裂区设计，这一术语借自农学；它要求一个组间自变量和一个被试内自变量。<sup>[3](http://www.csun.edu/~ata20315/psy420/Mixed%20Designs.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义结构 | 一个组间因素加一个被试内（重复测量）因素；也称裂区设计或混合因子设计<sup>[3](http://www.csun.edu/~ata20315/psy420/Mixed%20Designs.pdf)</sup> |
| 模型类别 | 模型III（混合）方差分析，同时包含固定效应和随机效应；任何包含随机因素的交互作用都是随机的<sup>[4](https://online.stat.psu.edu/stat502/lesson/6/6.5)</sup> |
| 误差项 | 被试间效应用组内被试项来检验；被试内效应和交互作用用 \( B \times S/A \) 项来检验<sup>[5](https://cfiaccon.github.io/Lab_Tutorial_9.pdf)</sup> |
| 典型应用 | 前测-后测设计，其中交互作用检验变化在组间是否存在差异<sup>[6](https://web.pdx.edu/~newsomj/uvclass/ho_mixed.pdf)</sup> |
| 样本量（2×2，\( d = 0.4 \)，80%功效） | 被试间主效应约需150名被试（\( r = .5 \)），重复测量主效应需55名，交互作用需200名<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC6640316/)</sup> |
| 自由度方法 | 两种近似并非普遍最优：对于连续结局，Satterthwaite（以及Fay/Graubard）在仅6个聚类时仍能维持I类错误率，而Kenward-Roger趋于保守；但在其他小样本情境中（如裂区重复测量），当协方差偏差校正重要时，Kenward-Roger表现更好；选择取决于设计、样本量和结局类型<sup>[8](https://mirrors.ibiblio.org/CRAN/web/packages/afex/vignettes/introduction-mixed-models.pdf)</sup> |

## 工作原理

该设计之所以称为混合设计，是因为它结合了固定效应（实验因素）与随机效应（被试）。方差分析设计分为模型I（仅固定效应）、模型II（仅随机效应）和模型III（混合）；任何包含至少一个随机因素的交互作用或嵌套效应本身都是随机的。<sup>[4](https://online.stat.psu.edu/stat502/lesson/6/6.5)</sup> 对于一个被试间因素A和一个被试内因素B，完整模型为 \( Y_{ijk} = \mu + \alpha_{j} + \beta_{k} + \pi_{i/j} + (\alpha\beta)_{jk} + (\beta\pi)_{ki/j} + \varepsilon_{ijk} \)，其中 \( \alpha \)、\( \beta \) 和 \( \alpha\beta \) 为固定效应，\( \pi \) 及其交互作用为随机效应。<sup>[5](https://cfiaccon.github.io/Lab_Tutorial_9.pdf)</sup> 总平方和分解为 \( SS_{T} = SS_{BS} + SS_{WS} \)，其中 \( SS_{WS} = SS_{RM} + SS_{GXRM} + SS_{SXRM} \)；组效应用 \( MS_{G}/MS_{WG} \) 检验，重复测量效应用 \( MS_{RM}/MS_{SXRM} \) 检验，交互作用用 \( MS_{GXRM}/MS_{SXRM} \) 检验。<sup>[9](https://www.alexanderdemos.org/ANOVA12.html)</sup> 选择分母的一般规则是：选取这样一个变异来源的均方：其期望均方包含待检验效应的期望均方中除非中心参数以外的所有项。<sup>[4](https://online.stat.psu.edu/stat502/lesson/6/6.5)</sup>

被试因素改变了误差项，因为被试效应被建模为从 \( \text{Normal}(0, \sigma^{2}_{\beta}) \) 中抽取的随机值，因此由被试引起的变异必须从分母中移除，而不是留在残差误差中。<sup>[10](https://link.springer.com/article/10.1007/s42113-022-00132-7)</sup> 用裂区术语来说，模型为 \( Y_{i} = \gamma(A_{i}, B_{i}) + d(W_{i}) + \varepsilon_{i} \)，其中 \( \mathrm{Var}(Y_{i}) = \sigma^{2}_{W} + \sigma^{2} \)；整区因素A用整区之间的变异来检验，其估计精度低于裂区因素B，因为整区变异的期望值超过裂区变异。<sup>[11](http://www2.compute.dtu.dk/courses/02429/enotepdfs/eNote-7.pdf)</sup>

一个经典争议仍未解决：非限制性混合模型（SAS所使用）将随机主效应用 \( MS_{B}/MS_{AB} \) 检验，<sup>[4](https://online.stat.psu.edu/stat502/lesson/6/6.5)</sup> 而经典方差分析教材更倾向于限制性模型，后者用 \( MS_{B}/MS_{E} \) 检验，统计软件包则偏好非限制性版本。<sup>[12](https://doi.org/10.7334/psicothema2012.15)</sup>

## 如何实施

典型应用是含治疗组和对照组的前测-后测设计，用于控制测验效应；其交互作用在统计上等价于用独立样本t检验比较组间的差值分数。<sup>[6](https://web.pdx.edu/~newsomj/uvclass/ho_mixed.pdf)</sup><sup> • </sup><sup>[3](http://www.csun.edu/~ata20315/psy420/Mixed%20Designs.pdf)</sup> 在R中，裂区方差分析通过 `aov(RT ~ Age*Angle + Error(Subject/Angle))` 或 `ezANOVA()` 运行，后者还会返回球形性检验。<sup>[5](https://cfiaccon.github.io/Lab_Tutorial_9.pdf)</sup><sup> • </sup><sup>[1](https://crossley.github.io/book_stats/mixed-design-anova.html)</sup> 现代替代方案是用 `lme4` 拟合线性混合模型，通常通过 `lmerTest` 获取p值，<sup>[13](https://journalofcognition.org/articles/409/files/677bae8c05389.pdf)</sup><sup> • </sup><sup>[14](https://cran.r-project.org/web/packages/lme4/vignettes/lmer.pdf)</sup> 或通过 `afex`。<sup>[8](https://mirrors.ibiblio.org/CRAN/web/packages/afex/vignettes/introduction-mixed-models.pdf)</sup> 在SAS中，对于这类设计，推荐使用带REML的PROC MIXED而非PROC GLM，因为它能处理缺失的重复测量并提供随机被试效应的BLUP，同时推荐使用Kenward-Roger选项。<sup>[15](https://www.tcpharm.org/DOIx.php?id=10.12793%2Ftcp.2014.22.2.78)</sup>

正态性适用于被试内各水平上的个案平均值，方差齐性适用于组间因素的每个水平（用Levene检验检查），独立性适用于组间误差项；球形性用Mauchly检验在组间因素各水平上的平均方差-协方差矩阵上检验。<sup>[3](http://www.csun.edu/~ata20315/psy420/Mixed%20Designs.pdf)</sup> 组间协方差矩阵的齐性用Box的M检验检查。<sup>[9](https://www.alexanderdemos.org/ANOVA12.html)</sup> 当Mauchly检验显著时，Greenhouse-Geisser和Huynh-Feldt的ε校正会调整用于计算p值的自由度，因为偏离球形性会膨胀自由度大于1的检验的I类错误率。<sup>[2](https://lhbikos.github.io/ReCenterPsychStats/Mixed.html)</sup><sup> • </sup><sup>[16](https://www.psychology.mcmaster.ca/bennett/psy710/notes/mw12.pdf)</sup> 还有一种不要求球形性的多元方法可用。<sup>[2](https://lhbikos.github.io/ReCenterPsychStats/Mixed.html)</sup>

## 起源

裂区设计起源于农业，其中整区是大块田地，裂区是其中的较小地块；这一结构后来因便利而被工程领域和重复测量所采用，在重复测量中被试被“裂分”为多个时间区段。<sup>[17](https://www.stat.purdue.edu/~bacraig/notes514/topic21a.pdf)</sup> 在心理学中，R.H. Baayen、D.J. Davidson和D.M. Bates于2008年在《记忆与语言杂志》上推进了以被试和项目交叉随机效应进行混合效应建模的转向，<sup>[18](https://doi.org/10.1016/j.jml.2007.12.005)</sup> 这建立在Herbert H. Clark 1973年在《言语学习与言语行为杂志》上对“语言作为固定效应谬误”的批判之上。<sup>[19](https://doi.org/10.1016/s0022-5371%2873%2980014-3)</sup>

## 变体

命名的变体包括裂-裂区设计，其中裂区单元被进一步裂分；以及条区（交叉）设计，用于两种处理都需要大实验单元的情形。<sup>[17](https://www.stat.purdue.edu/~bacraig/notes514/topic21a.pdf)</sup> Maxwell和Delaney区分了“重复测量”的三种用途：用于提高功效的随机区组、对每个被试进行多个不同测验、以及无处理变化的纵向测量。<sup>[20](https://jse.amstat.org/v18n1/festing.pdf)</sup> 交叉试验是一种被试内变体，每个被试按顺序接受多种处理；它们不能用于会不可逆地改变被试的治愈性处理。<sup>[21](https://www.sciencedirect.com/science/article/abs/pii/S0169716107270154)</sup> 当加入第二个随机因素（如刺激）时，Judd、Westfall和Kenny区分了C设计（被试与条件交叉）和N设计（被试嵌套在条件水平内）。<sup>[22](https://www.annualreviews.org/content/journals/10.1146/annurev-psych-122414-033702)</sup>

## 应用

混合设计在重复观测与随机分组相遇之处是标准做法：心理学中的前测-后测实验设计和非等价对照组设计，<sup>[6](https://web.pdx.edu/~newsomj/uvclass/ho_mixed.pdf)</sup> 随机临床试验（其中显著的时间×处理交互作用是期望的结果），<sup>[2](https://lhbikos.github.io/ReCenterPsychStats/Mixed.html)</sup> 农业和工程裂区实验，<sup>[17](https://www.stat.purdue.edu/~bacraig/notes514/topic21a.pdf)</sup> 以及交叉生物等效性研究（其中被试为随机，序列、周期和处理为固定）。<sup>[15](https://www.tcpharm.org/DOIx.php?id=10.12793%2Ftcp.2014.22.2.78)</sup> 功效需求高于常见做法：对于 \( d = 0.4 \)、80%功效的2×2裂区设计，频率派F检验需要约150名被试来检验被试间主效应（\( r = .5 \)），55名检验重复测量主效应，200名检验交互作用。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC6640316/)</sup> 交互作用的效应量约为主效应的一半，因此所需样本量要乘以四。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC6640316/)</sup> 基于仿真的工具包括Superpower R包以及Daniël Lakens和Aaron R. Caldwell的Shiny应用，于2021年在《心理科学方法与实践进展》上介绍，可处理最多三个被试内或被试间因素的方差分析设计。<sup>[23](https://doi.org/10.1177/2515245920951503)</sup>

## 局限与替代方案

主要失效模式是伪重复：将被试内因素或交互作用排除在随机效应结构之外，会把相依观测当作独立观测，高估自由度并膨胀I类错误。<sup>[24](https://eprints.whiterose.ac.uk/id/eprint/212798/7/scandola-tidoni-2024-reliability-and-feasibility-of-linear-mixed-models-in-fully-crossed-experimental-designs.pdf)</sup> 最大模型在有限样本量下常产生奇异拟合（方差接近零，相关为±1）；补救办法是先移除相关，再移除方差最低的最高阶随机效应，或使用贝叶斯正则化；当每个被试每个单元格只有一个观测时，最高阶随机斜率与残差误差完全混淆，必须移除。<sup>[8](https://mirrors.ibiblio.org/CRAN/web/packages/afex/vignettes/introduction-mixed-models.pdf)</sup> 缺失数据有利于混合模型：方差分析程序要么丢弃含缺失数据的个案，要么完全失败，而混合模型程序可处理不平衡数据。<sup>[16](https://www.psychology.mcmaster.ca/bennett/psy710/notes/mw12.pdf)</sup> 当Box的M检验及相关检验表明协方差假设不成立时，一种建议是完全不运行混合方差分析，而是对每组分别运行单因素重复测量方差分析并做组间检验，代价是无法检验交互作用。<sup>[9](https://www.alexanderdemos.org/ANOVA12.html)</sup> 关于自由度，Michael G. Kenward和James H. Roger（1997年，《生物统计学》）的Kenward-Roger近似在小样本下提供最佳的I类错误控制，Franklin E. Satterthwaite 1941年的方差合成（《心理计量学》）作为内存占用较少的替代方案具有类似的控制效果。<sup>[8](https://mirrors.ibiblio.org/CRAN/web/packages/afex/vignettes/introduction-mixed-models.pdf)</sup><sup> • </sup><sup>[25](https://doi.org/10.2307/2533558)</sup><sup> • </sup><sup>[26](https://doi.org/10.1007/bf02288586)</sup> 已发表的比较在总体优越性上存在分歧：Kenward-Roger混合模型F检验在Welch-James统计量不稳健的小样本中显示出优越的I类错误控制，但无功效优势；<sup>[27](https://journals.sagepub.com/doi/10.1177/0013164403260196)</sup> 然而对于完整且平衡的数据，UNIREP和MULTIREP检验始终能控制实际显著性水平，而当协方差模型设定错误时，混合模型检验的实际显著性水平可能严重偏高。<sup>[28](https://workshop.samplesizeshop.org/wordpress/files/2020/06/Statistical-tests-with-accurate-size-and-power-for-balanced-linear-mixed-models.pdf)</sup> 最大随机效应结构（由Dale J. Barr及其同事于2013年在《记忆与语言杂志》上主张）<sup>[29](https://doi.org/10.1016/j.jml.2012.11.001)</sup> 与简约结构之间的争议仍未解决，反映了两种取向：控制所有潜在随机效应与从数据中获得最佳估计。<sup>[24](https://eprints.whiterose.ac.uk/id/eprint/212798/7/scandola-tidoni-2024-reliability-and-feasibility-of-linear-mixed-models-in-fully-crossed-experimental-designs.pdf)</sup> 同样在2024年，Michele Scandola和Emmanuele Tidoni引入了复杂随机截距（CRI）模型，将分类随机斜率转换为多个随机截距，作为完全交叉设计中模型可靠性与计算可行性之间的折衷，发表于《心理科学方法与实践进展》。<sup>[24](https://eprints.whiterose.ac.uk/id/eprint/212798/7/scandola-tidoni-2024-reliability-and-feasibility-of-linear-mixed-models-in-fully-crossed-experimental-designs.pdf)</sup>

## References

1. [27 Mixed-design ANOVA | Data analysis and statistics for cognitive neuroscience](https://crossley.github.io/book_stats/mixed-design-anova.html)
2. [Chapter 10 Mixed Design ANOVA | ReCentering Psych Stats](https://lhbikos.github.io/ReCenterPsychStats/Mixed.html)
3. [Mixed Designs: Between and Within (Psy 420, Ainsworth, CSUN)](http://www.csun.edu/~ata20315/psy420/Mixed%20Designs.pdf)
4. [6.5 - Introduction to Mixed Models | STAT 502 (Penn State)](https://online.stat.psu.edu/stat502/lesson/6/6.5)
5. [Lab Tutorial 9: Repeated-Measures Factorial ANOVA & Split-Plot ANOVA](https://cfiaccon.github.io/Lab_Tutorial_9.pdf)
6. [Factorial ANOVA for Mixed Designs (Newsom, Portland State)](https://web.pdx.edu/~newsomj/uvclass/ho_mixed.pdf)
7. [How Many Participants Do We Have to Include in Properly Powered Experiments? A Tutorial of Power Analysis with Reference Tables (Brysbaert & Stevens, 2018)](https://pmc.ncbi.nlm.nih.gov/articles/PMC6640316/)
8. [An Introduction to Mixed Models for Experimental Psychology (afex vignette, CRAN)](https://mirrors.ibiblio.org/CRAN/web/packages/afex/vignettes/introduction-mixed-models.pdf)
9. [Mixed ANOVA: Two-way, Graphing & Follow ups](https://www.alexanderdemos.org/ANOVA12.html)
10. [Principles of Model Specification in ANOVA Designs (Computational Brain & Behavior, 2022)](https://link.springer.com/article/10.1007/s42113-022-00132-7)
11. [eNote 7: The Analysis of Split-Plot Experiments (DTU)](http://www2.compute.dtu.dk/courses/02429/enotepdfs/eNote-7.pdf)
12. [The two-way mixed model: A long and winding controversy](https://doi.org/10.7334/psicothema2012.15)
13. [How to Run Linear Mixed Effects Analysis for Pairwise Comparisons? A Tutorial and a Proposal for the Calculation of Standardized Effect Sizes (Journal of Cognition)](https://journalofcognition.org/articles/409/files/677bae8c05389.pdf)
14. [Fitting Linear Mixed-Effects Models using lme4 (Bates et al., CRAN vignette)](https://cran.r-project.org/web/packages/lme4/vignettes/lmer.pdf)
15. [Comparison of SAS PROC GLM and PROC MIXED for crossover studies (Translational and Clinical Pharmacology, 2014)](https://www.tcpharm.org/DOIx.php?id=10.12793%2Ftcp.2014.22.2.78)
16. [Notes on Maxwell & Delaney (Chapter 12: mixed within/between designs)](https://www.psychology.mcmaster.ca/bennett/psy710/notes/mw12.pdf)
17. [STAT 514 Topic 21: Split-plot Designs (Purdue)](https://www.stat.purdue.edu/~bacraig/notes514/topic21a.pdf)
18. [R.H. Baayen, D.J. Davidson, D.M. Bates (2008). Mixed-effects modeling with crossed random effects for subjects and items. Journal of Memory and Language.](https://doi.org/10.1016/j.jml.2007.12.005)
19. [The language-as-fixed-effect fallacy: A critique of language statistics in psychological research (Journal of Verbal Learning and Verbal Behavior, 1973)](https://doi.org/10.1016/s0022-5371%2873%2980014-3)
20. [A design by any other name… (M. F. W. Festing, Journal of Statistical Education, 2010)](https://jse.amstat.org/v18n1/festing.pdf)
21. [Design and Analysis of Cross-Over Trials (Kenward & Jones, Handbook of Statistics chapter)](https://www.sciencedirect.com/science/article/abs/pii/S0169716107270154)
22. [Experiments with More Than One Random Factor: Designs, Analytic Models, and Statistical Power (Judd, Westfall & Kenny, Annual Review of Psychology, 2017)](https://www.annualreviews.org/content/journals/10.1146/annurev-psych-122414-033702)
23. [Daniël Lakens, Aaron R. Caldwell (2021). Simulation-Based Power Analysis for Factorial Analysis of Variance Designs. Advances in Methods and Practices in Psychological Science.](https://doi.org/10.1177/2515245920951503)
24. [Reliability and Feasibility of Linear Mixed Models in Fully Crossed Experimental Designs (Scandola & Tidoni, 2024, accepted manuscript)](https://eprints.whiterose.ac.uk/id/eprint/212798/7/scandola-tidoni-2024-reliability-and-feasibility-of-linear-mixed-models-in-fully-crossed-experimental-designs.pdf)
25. [Michael G. Kenward, James H. Roger (1997). Small Sample Inference for Fixed Effects from Restricted Maximum Likelihood. Biometrics.](https://doi.org/10.2307/2533558)
26. [Franklin E. Satterthwaite (1941). Synthesis of Variance. Psychometrika.](https://doi.org/10.1007/bf02288586)
27. [The Analysis of Repeated Measurements with Mixed-Model Adjusted F Tests (Educational and Psychological Measurement, 64(2), 224-242, 2004)](https://journals.sagepub.com/doi/10.1177/0013164403260196)
28. [Statistical tests with accurate size and power for balanced linear mixed models](https://workshop.samplesizeshop.org/wordpress/files/2020/06/Statistical-tests-with-accurate-size-and-power-for-balanced-linear-mixed-models.pdf)
29. [Dale J. Barr and colleagues (2013). Random effects structure for confirmatory hypothesis testing: Keep it maximal. Journal of Memory and Language.](https://doi.org/10.1016/j.jml.2012.11.001)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/mixed-design-statistics

English original: https://www.edgepedia.org/mixed-design-statistics
