22 July 2019

Setup

What you’ll need

Overview

  • Introduction
  • Using G*Power
  • Advanced power analysis

Introduction to Power Analysis

Why Power Analysis

  • Null Hypothesis Testing
  • Study planning
    • Determine number of subjects required
    • Is it possible to recruit enough participants to reliably identify effects of the anticipated size?
    • What effect size can you reasonably expect to detect reliably?
  • Provides rough estimates
    • Helps to ensure feasibility
    • Treat as ball park estimate not precise number

Problems with low powered studies

  • What happens if power is low?
  • May miss real effects
  • If results are significant, risk of overestimating effect size is increased

Low power and large effect sizes

Problems with low powered studies

  • What happens if power is low?
  • May miss real effects
  • If results are significant, risk of overestimating effect size is increased
  • Increased false discovery rate (but false positive rate doesn’t change)

Low power and false positives

  • Risk of false positive result for individual study not affected by power.
  • BUT low powered studies as a whole, produce higher proportion of false positive results.

Low power and false positives

Low power and false positives

Low power and false positives

What do you need?

  • Research hypothesis
    • Study design
    • Analysis plan
      • Analysis methods
      • Tests to be carried out
      • Significance threshold
  • Variability of outcome measure
  • Size of effect

How do you know?

  • Power analysis requires information about the data prior to data collection
  • How do you know what effect size to use?

    • Literature review
    • Published data
    • Pilot experiment
    • Practical significance
  • What about variability?

    • Other studies using the same outcome measure
    • Variability in control group
    • Only need a rough estimate

Using G*Power

Getting started

ANOVA Omnibus Test

ANOVA Example 1

  • One-way ANOVA.
  • Factor with 4 levels.
  • Equal group sizes.
  • Expected standard deviation within each group is 2.
  • Expected mean for groups 1 and 2 is 1, 0 for the others.

What is the required sample size if you use \(\alpha = 0.05\) and aim for 80% power?

ANOVA Test for specific effect

ANOVA Example 2

  • 2 \(\times\) 3 ANOVA.
  • Variance explained by effect of interest is 10% of error variance.

What is the required sample size if you use \(\alpha = 0.05\) and aim for 80% power for

  • the main effect of the two level factor?
  • the interaction between the two factors?

Linear regression

Linear Regression Example

  • Multiple regression.
  • Determine sample size for single effect of interest.
  • Variance explained by predictor of interest is 10% of residual variance.

What is the required sample size if you use \(\alpha = 0.05\) (in a two-tailed test) and aim for 80% power?

Repeated Measures ANOVA

Repeated Measures Example

  • Treatment and Control group.
  • Measure before and after intervention.
  • Variance explained by intervention effect is 10% of within group variance.

What is the required sample size if you use \(\alpha = 0.05\) and aim for 80% power?

Advanced power analysis

What about other study designs?

  • How to calculate power for methods not covered by GPower?
  • Find a specialised tool that supports power analysis for the analysis method you intend to use.
  • If in doubt, simulate.

Path analysis

Mixed Models

  • GPower supports simple repeated measures ANOVA designs.
  • More complex models best handled with simulation.
  • simR supports simulation from lme4 models.

How to use simulation for power analysis?

  • Use existing data to fit model of interest.
  • Adjust effect and sample size as desired.
  • Repeatedly simulate datasets from model and determine proportion of these for which effect of interest is significant.
  • Also workes without data, but need to guess all parameters.
  • Detailed example available online.