Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/powerSignificance.R
The power for significance is computed based on the result of the original study, the corresponding variance ratio and the design prior.
1 2 | powerSignificance(zo, c = 1, level = 0.025, designPrior = "conditional",
alternative = "one.sided", h = 0, shrinkage = 0)
|
zo |
A vector of z-values from original studies. |
c |
The ratio of the variances 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 |
Significance level. Default is 0.025. |
designPrior |
Either |
alternative |
Either |
h |
The relative between-study heterogeneity, i.e. the ratio of the heterogeneity
variance to the variance of the original effect estimate.
Default is |
shrinkage |
A number in [0,1].
Defaults to |
This extends the 'replication probability', the probability of repeating a statistically significant result by Goodman (1992), to the case of possibly unequal sample sizes (see Senn (2002)), possible between study heterogeneity and shrinkage (see Pawel and Held (2020)).
The probability that a replication study yields a significant effect estimate in the specified direction. An error is returned if it is impossible to obtain the specified power.
Leonhard Held, Samuel Pawel
Goodman, S. N. (1992). A comment on replication, p-values and evidence, Statistics in Medicine, 11, 875–879. https://dx.doi.org/10.1002/sim.4780110705
Senn, S. (2002). Letter to the Editor, Statistics in Medicine, 21, 2437–2444.
Held, L. (2020). A new standard for the analysis and design of replication studies (with discussion). Journal of the Royal Statistical Society: Series A (Statistics in Society). 183(2):431 - 448. https://doi.org/10.1111/rssa.12493
Pawel, S., Held, L. (2020). Probabilistic forecasting of replication studies. PLoS ONE 15(4):e0231416. https://doi.org/10.1371/journal.pone.0231416
Held, L., Micheloud, C. & Pawel, S. (2020). The assessment of replication success based on relative effect size. https://arxiv.org/abs/2009.07782
sampleSizeSignificance
, powerSignificanceInterim
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | powerSignificance(zo = p2z(0.005), c = 2)
powerSignificance(zo = p2z(0.005), c = 2, designPrior = "predictive")
powerSignificance(zo = p2z(0.005), c = 2, alternative = "two.sided")
powerSignificance(zo = -3, c = 2, designPrior = "predictive",
alternative = "less")
powerSignificance(zo = p2z(0.005), c = 1/2)
powerSignificance(zo = p2z(0.005), c = 1/2, designPrior = "predictive")
powerSignificance(zo = p2z(0.005), c = 1/2, alternative = "two.sided")
powerSignificance(zo = p2z(0.005), c = 1/2, designPrior = "predictive",
alternative = "two.sided")
powerSignificance(zo = p2z(0.005), c = 1/2, designPrior = "predictive",
alternative = "greater", h = 0.5, shrinkage = 0.5)
powerSignificance(zo = p2z(0.005), c = 1/2, designPrior = "EB",
alternative = "two.sided", h = 0.5)
# power as function of original p-value
po <- seq(0.0001, 0.06, 0.0001)
plot(po,
powerSignificance(zo = p2z(po), designPrior = "conditional"),
type = "l", ylim = c(0, 1), lwd = 1.5, las = 1, ylab = "Power",
xlab = expression(italic(p)[o]))
lines(po,
powerSignificance(zo = p2z(po), designPrior = "predictive"),
lwd = 2, lty = 2)
lines(po,
powerSignificance(zo = p2z(po), designPrior = "EB"),
lwd = 1.5, lty = 3)
legend("topright", legend = c("conditional", "predictive", "EB"),
title = "Design prior", lty = c(1, 2, 3), lwd = 1.5, bty = "n")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.