You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

R中2×2混合设计ANOVA的偏Eta平方获取及效应对应IV识别

How to Get Partial Eta Squared and Identify Effects in ezANOVA

Great job setting up your 2×2 mixed ANOVA with ezANOVA! Let’s break down how to extract partial eta squared values and map each effect to your independent variables (IVs).

1. Extracting Partial Eta Squared

When you run ezANOVA with detailed = TRUE, the output already includes partial eta squared in the p2 column of the main ANOVA results table. To access this directly:

  • The core ANOVA results are stored in results$ANOVA. You can print a clean table of effect names and their partial eta squared values with this code:
    # Show only effect names and partial eta squared
    results$ANOVA[, c("Effect", "p2")]
    

Each row in this subset corresponds to an effect, and the p2 value is the partial eta squared for that effect.

2. Mapping Effects to Your IVs

Your design has two key factors:

  • Between-subjects: Language (group-level variable)
  • Within-subjects: Condition (repeated measure across participants)

Here’s how each row in results$ANOVA maps to your variables:

  • Row labeled Language: Main effect of your between-subjects IV (Language)
  • Row labeled Condition: Main effect of your within-subjects IV (Condition)
  • Row labeled Language:Condition: Interaction effect between the two IVs
  • Rows starting with Error are the error terms for each effect—you don’t need these for interpreting your main hypotheses.

Example Output Breakdown

If your results$ANOVA looks like this:

EffectDFnDFdFpp2
(Intercept)118245.67<0.0010.932
Language1184.230.0540.190
Condition11812.560.0020.412
Language:Condition1183.110.0950.148
Error(Language)18NANANANA
Error(Condition)18NANANANA

You can immediately see:

  • Partial eta squared for Language: 0.190
  • Partial eta squared for Condition: 0.412
  • Partial eta squared for their interaction: 0.148

Bonus: Manual Calculation (If Needed)

If you ever want to compute partial eta squared yourself (though ezANOVA handles this for you), use this formula:

partial_eta_squared = SS_effect / (SS_effect + SS_error)

Where SS_effect is the sum of squares for the effect (found in the SSn column) and SS_error is the sum of squares for the corresponding error term (found in the SSd column).


内容的提问来源于stack exchange,提问作者R is DooDoo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 04:14:26