pSceptical {ReplicationSuccess}R Documentation

Computes the sceptical P-value

Description

The sceptical P-value is computed based on the test statistic of the original and the replication study and the corresponding variance ratio.

Usage

pSceptical(po=NULL, pr=NULL, to=p2t(po, alternative=alternative),
tr=p2t(pr, alternative=alternative), c, alternative="two.sided")

Arguments

po

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

pr

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

to

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

tr

A vector of test statistics from replication 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.

alternative

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

Value

The sceptical P-value.

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

pSceptical(po=0.01, pr=0.02, c=2)
pSceptical(po=0.02, pr=0.01, c=1/2)
pSceptical(po=0.01, pr=0.01, c=2, alternative="one.sided")

[Package ReplicationSuccess version 0.1-1 Index]