powerReplicationSuccess {ReplicationSuccess}R Documentation

Computes the power for replication success

Description

The power for replication success is computed based on the result of the original study, the corresponding variance ratio and the design prior.

Usage

powerReplicationSuccess(po=NULL, to=p2t(po, alternative=alternative),
c=1, level=0.05, designPrior="conditional", alternative="two.sided")

Arguments

po

A vector of P-values from original studies, default is NULL

to

A vector of test statistics from original studies. Is calculated from po, if necessary.

c

A 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

Replication success level. Default is 0.05.

designPrior

either "conditional" or "predictive". Defaults to "conditional".

alternative

either "one.sided" or "two.sided". Defaults to "two.sided". Specifies if the P-value is one-sided or two-sided. If the P-value is one-sided, then power is based on a one-sided assessment of replication success.

Value

The power for replication success.

Author(s)

Leonhard Held

References

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

Examples

powerReplicationSuccess(po=0.005, c=2)
powerReplicationSuccess(po=0.005, c=2, designPrior="predictive")
powerReplicationSuccess(po=0.005, c=2, alternative="one.sided")
powerReplicationSuccess(po=0.005, c=2, designPrior="predictive", alternative="one.sided")

powerReplicationSuccess(po=0.005, c=1/2)
powerReplicationSuccess(po=0.005, c=1/2, designPrior="predictive")
powerReplicationSuccess(po=0.005, c=1/2, alternative="one.sided")
powerReplicationSuccess(po=0.005, c=1/2, designPrior="predictive", alternative="one.sided")


[Package ReplicationSuccess version 0.1-1 Index]