sampleSizeSignificance {ReplicationSuccess} | R Documentation |
The relative sample size to achieve significance is computed based on the test statistic of the original study, the power and the design prior.
sampleSizeSignificance(po=NULL, to=p2t(po, alternative=alternative), power, level=0.05, designPrior="conditional", alternative="two.sided")
po |
A vector of P-values from original studies, default is |
to |
A vector of test statistics from original studies. Is calculated from |
power |
The power to achieve replication success. |
level |
Significance level. |
designPrior |
either |
alternative |
either |
The relative sample size to achieve significance. If larger that 1000 then Inf is returned.
Leonhard Held
Held, L. (2019). A new standard for the analysis and design of replication studies (with discussion). To appear in Journal of the Royal Statistical Society, Series A. https://arxiv.org/abs/1811.10287
sampleSizeSignificance(po=0.005, power=0.8) sampleSizeSignificance(po=0.005, power=0.8, designPrior="predictive") sampleSizeSignificance(po=0.005, power=0.8, alternative="one.sided") sampleSizeSignificance(po=0.005, power=0.8, designPrior="predictive", alternative="one.sided")