Improving the transparency of power analyses with Metacheck

Cristian Mesquida

Power

  • false positive rate: the probability a test concludes there is an effect when there is no effect; Type I Error Rate
  • alpha : the false positive rate we accept for a test
  • false negative rate: the probability a test concludes there is no effect when there is one; Type II Error Rate
  • beta: the false negative rate we accept for a test
  • true positive rate: the probability a test concludes there is an effect when there is one
  • power: the true positive rate (1-beta), given a test, effect, sample size, and alpha

Power analysis

Studies designed with high power are more informative:

  • Higher probability of detecting the effect size of interest when it exists (i.e., higher true positive rate)

  • A non-significant result is more informative because it is less likely to be due to insufficient power. For example, a non-significant result from a study designed with 90% power is more informative than one from a study designed with 50% power

Types of Power Analysis

  • A Priori: calculates the required sample size to achieve a pre-specified power given a pre-specified effect size

  • Sensitivity (Effect Size): calculates the smallest effect size required to detect a pre-specified sample size with a pre-specified power

  • Sensitivity (Power): calculates power given a pre-specified effect size and sample size

  • Post Hoc: calculates the power associated with the observed effect size and the sample size actually obtained

Current issues in power analyses

Reporting

  • power type: a priori, power/sample size sensitivity, post hoc
  • power: value between alpha and 100%
  • sample size: number of subjects/items
  • effect size: numeric value
  • effect size metric: e.g., Cohen’s \(d\), \(r\), \(\eta_{p}^{2}\), raw
  • statistical test: full specification
  • alpha: 0-1, often assumed to be 0.05
  • software: e.g., G*Power, Superpower, simulation

How would you write up this power analysis?

pwr::pwr.t.test(          
  power = 0.80,           
  d = 0.5,                
  sig.level = 0.01,       
  type = "two.sample",    
  alternative = "greater" 
)

     Two-sample t test power calculation 

              n = 81.65515
              d = 0.5
      sig.level = 0.01
          power = 0.8
    alternative = greater

NOTE: n is number in *each* group

Model Reporting Example

We conducted an a priori analysis to determine the sample size with 80% power to detect the smallest effect size of interest (SESOI), which was a Cohen’s d of 0.5 determined by a cost-benefit analysis of the intervention. We used the pwr package (Champely, 2020) for an independent samples t-test, assuming equal variance and using a one-tailed prediction, with a critical alpha of 0.01. This determined that we would need 82 subjects in each group.

The Reality

A sample size of 22 participants was predetermined to yield a power of 80% and to detect an effect of comparable size to previous studies using similar independent and dependent measures (CITE).

The Reality

We decided to obtain a sample size that would allow us to detect a within-subjects difference of at least a medium effect size with 80% power, using a two-tailed t-test. A power analysis using G*Power (Version 3.1.9.3; Faul et al., 2007) indicated that this required a sample size of 34.

The solutions

  • Develop reporting guidelines
  • Increase awareness through better training
  • Adherence to reporting guidelines
  • Automation

Metacheck

  • It performs automated checks on manuscripts and repositories
  • Manuscripts: stat_effect_size, stat_p_nonsig, marginal, power, etc.
  • Repositories: repo_check, code_check, data_check, etc.

Checking for power analysis

The power module can help researchers report all components of a power analysis.

library(metacheck)
module_run(paper, "power")

Regex-based approach

It detects the type of power analysis using regular expressions (i.e., regex) only

papers <- papers_load("psychsci")         # Load Psychological Science articles
llm_use(FALSE)                            # Set to FALSE by default
res <- module_run(papers[100], "power")   # Run the power module

res$table[, c(                            # Select relevant columns
  "section_type", 
  "power_type"
  )] |> 
  flextable()

section_type

power_type

method

unknown

LLM-based approach

An LLM is used to identify and extract the reported components of the power analysis

llm_use(TRUE)                           # Set to TRUE to enable LLM
llm_model("ollama/qwen2.5:3b")          # Specify LLM model
res <- module_run(papers[110], "power") # Run the power module
res$summary_table |> 
  flextable()

paper_id

power_n

power_complete

power_statistical_test

power_sample_size

power_alpha_level

power_power

power_effect_size

power_effect_size_metric

power_software

0956797620984464

2

2

2

2

2

2

2

2

2

First match

# Select relevant columns
res$table[1, c("power_type", "statistical_test", "sample_size", "alpha_level", "power", "effect_size", "effect_size_metric", "software")] |> 
  flextable()

power_type

statistical_test

sample_size

alpha_level

power

effect_size

effect_size_metric

software

apriori

unpaired t-test

36

0.05

0.8

0.5

Cohen's d

G*Power Version 3.1.9.2

[…], we used a conservative effect size (d) of 0.5, an alpha of .05, and power of .8 for our sample-size computation (G*Power Version 3.1.9.2; Faul et al., 2007). The estimated sample size was 34 participants, but we used 36 […], which yielded a power estimate of .83.

Second match

# Select relevant columns
res$table[2, c("power_type", "statistical_test", "sample_size", "alpha_level", "power", "effect_size", "effect_size_metric", "software")] |> 
  flextable()

power_type

statistical_test

sample_size

alpha_level

power

effect_size

effect_size_metric

software

apriori

unpaired t-test

48

0.004

0.86

0.6

Cohen's d

G*Power

[…], we used a medium effect size (d) of 0.6, an alpha of .004 (Bonferroni corrected for the current study), and power of .8 for our sample-size computation (G*Power Version 3.1.9.2; Faul et al., 2007). The estimated sample size was 33 participants, but to fit the counterbalancing, we recruited 48, which yielded a power estimate of .86.

Limitations of the LLM-based approach

Even LLMs struggle to identify information with inconsisting reporting

Two groups of 48 participants […].

Sample size was determined using […].

A two-level factor manipulating fixation placement was added to create a 2 (initial fixation position: background, foreground) × 2 (presentation duration) × 2 (scene type: normal, chimera) × 3 (target condition: foreground, background, inconsistent control) within-subjects design. 

We Could Do Better

Only 11% of 1295 power analyses from 1937 Psychological Science papers published between 2014 and 2026 have complete reporting.

Component Percent Missing
power type 0%
power 15%
sample size 19%
effect size 32%
effect size metric 28%
statistical test 22%
alpha 67%
software 71%

Preliminary analysis using Metacheck, from Mesquida, Lakens & DeBruine (in prep).

The schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://scienceverse.org/schema/power.json",
  "title": "Power Analyses",
  "description": "A power analysis.",
  "type": "object",
  "properties": {
    "text": {
      "description": "The specific text that contains all of the information used to determine this object's properties.",
      "type": ["string", "null"]
    },
    
    "power_type": {
      "description": " ... ",
      "type": ["string", "null"],
      "enum": ["apriori", "sensitivity", "posthoc", null]
    },

    "statistical_test": {
      "description": "The statistical test used. Use null if unclear.",
      "type": ["string", "null"],
      "enum": [
        "paired t-test",
        "unpaired t-test",
        "one-sample t-test",
        "1-way ANOVA",
        "2-way ANOVA",
        ...
        "other",
        null
      ]
... 
    }

Validation

  • Created an over-inclusive ground-truth dataset using 250 articles from Psychological Science
  • Manually coded:
    • Whether each matched statement was a power analysis
    • power type, power,sample size, effect size, effect size metric, statistical test, alpha, software

Validation metrics

Component Agree Accuracy
power type 165 80%
statistical test 159 77%
sample size 173 84%
alpha 201 97%
power 194 94%
effect size metric 193 93%
effect size 189 91%
software 192 93%

Our approach to Validation

  • Treat validation as a FAIR workflow
  • Repeat validation after every release or update
  • Transparently report validation metrics

Metacheck team

Reach out

Interested in developing new modules?

Get in touch: c.mesquida.caldentey@tue.nl

Thank you!


https://github.com/scienceverse/talks/tree/main/2026-forrt-ai-conf

References

Bakker, Marjan, Coosje L. S. Veldkamp, Olmo R. Van Den Akker, et al. 2020. “Recommendations in Pre-Registrations and Internal Review Board Proposals Promote Formal Power Analyses but Do Not Increase Sample Size.” PLOS ONE 15 (7): e0236079. https://doi.org/10.1371/journal.pone.0236079.
Mesquida, Cristian, Jennifer Murphy, Joe Warne, and Daniël Lakens. 2025. Prevalence, Reporting Practices, and Methodological Quality of a Priori Power Analyses in Sports and Exercise Science Research. July. https://doi.org/10.51224/SRXIV.575.
Schulz, Kenneth F., and David A. Grimes. 2005. “Sample Size Calculations in Randomised Trials: Mandatory and Mystical.” The Lancet 365 (9467): 13481353. https://doi.org/10.1016/S0140-6736(05)61034-3.
Thibault, Robert T., Emmanuel A. Zavalis, Mario Malički, and Hugo Pedder. 2024. An Evaluation of Reproducibility and Errors in Published Sample Size Calculations Performed Using g*power. https://doi.org/10.1101/2024.07.15.24310458.