The power with Edgington's method is computed based on the result of the original study (z-value or one-sided p-value), the corresponding variance ratio, and the ratio of the weight of the replication study over the weight of the original study

powerEdgington(
  zo = NULL,
  po = NULL,
  r = 1,
  c = 1,
  level = 0.025,
  designPrior = "conditional",
  shrinkage = 0
)

Arguments

zo

Numeric vector of z-values from original studies.

po

Numeric vector of original one-sided p-values

r

Numeric vector of ratios of replication to original weight.

c

Numeric vector of variance ratios of the original and replication effect estimates. This is usually the ratio of the sample size of the replication study to the sample size of the original study.

level

One-sided significance level. Default is 0.025.

designPrior

Either "conditional" (default) or "predictive".

shrinkage

Numeric vector with values in [0,1). Defaults to 0. Specifies the shrinkage of the original effect estimate towards zero, e.g., the effect is shrunken by a factor of 25% for shrinkage = 0.25.

Value

The power with Edgington's method

Details

Either zo or po must be specified.

References

Held, L., Pawel, S., Micheloud, C. (2024). The assessment of replicability using the sum of p-values. Royal Society Open Science. 11(8):11240149. doi:10.1098/rsos.240149

Author

Charlotte Micheloud, Leonhard Held, Samuel Pawel

Examples

powerEdgington(po = 0.025, level = 0.025, c = 1.4)
#> [1] 0.502331