sampleSizeReplicationSuccess {ReplicationSuccess} | R Documentation |
The relative sample size for replication success is computed based on the test statistic of the original study, the power and the design prior.
sampleSizeReplicationSuccess(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 |
Replication success level. |
designPrior |
either |
alternative |
either |
The relative sample size for replication success. 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
sampleSizeReplicationSuccess(po=0.005, power=0.8) sampleSizeReplicationSuccess(po=0.005, power=0.8, designPrior="predictive") sampleSizeReplicationSuccess(po=0.005, power=0.8, alternative="one.sided") sampleSizeReplicationSuccess(po=0.005, power=0.8, designPrior="predictive", alternative="one.sided")