R/powerEdgington.R
powerEdgington.Rd
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
)
Numeric vector of z-values from original studies.
Numeric vector of original one-sided p-values
Numeric vector of ratios of replication to original weight.
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.
One-sided significance level. Default is 0.025.
Either "conditional" (default) or "predictive".
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
.
The power with Edgington's method
Either zo
or po
must be specified.
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
powerEdgington(po = 0.025, level = 0.025, c = 1.4)
#> [1] 0.502331