pBox: Computes Box's tail probability

Description Usage Arguments Value Author(s) References Examples

View source: R/pBox.R

Description

Box's tail probability is computed based on the z-values of the original and the replication study, the corresponding variance ratio and the significance level.

Usage

1
pBox(zo, zr, c, level = 0.05, alternative = "two.sided")

Arguments

zo

A vector of z-values from original studies.

zr

A vector of z-values from replication studies.

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

Significance level. Default is 0.05.

alternative

either "one.sided" or "two.sided". Defaults to "two.sided". Specifies if one-sided or two-sided Box's tail probability is computed.

Value

Box's tail probability.

Author(s)

Leonhard Held

References

Box, G.E.P. (1980). Sampling and Bayes' inference in scientific modelling and robustness (with discussion). Journal of the Royal Statistical Society, Series A, 143, 383-430.

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). https://doi.org/10.1111/rssa.12493

Examples

1
2
3
4
pBox(zo = p2z(0.01), zr = p2z(0.02), c = 2)
pBox(zo = p2z(0.02), zr = p2z(0.01), c = 1/2)
pBox(zo = p2z(0.02, alternative = "one.sided"), zr = p2z(0.01, alternative = "one.sided"), 
     c = 1/2, alternative = "one.sided")

ReplicationSuccess documentation built on Dec. 2, 2020, 3 p.m.