# pBox: Computes Box's tail probability In ReplicationSuccess: Design and Analysis of Replication Studies

## Description

`pBox` computes Box's tail probabilities based on the z-values of the original and the replication study, the corresponding variance ratio, and the significance level.

## Usage

 ```1 2 3``` ```pBox(zo, zr, c, level = 0.05, alternative = c("two.sided", "one.sided")) zBox(zo, zr, c, level = 0.05, alternative = c("two.sided", "one.sided")) ```

## Arguments

 `zo` Numeric vector of z-values from the original studies. `zr` Numeric vector of z-values from replication studies. `c` Numeric 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` Numeric vector of significance levels. Default is 0.05. `alternative` Either "two.sided" (default) or "one.sided". Specifies whether two-sided or one-sided Box's tail probabilities are computed.

## Value

`pBox` returns Box's tail probabilities.

`zBox` returns the z-values used in `pBox`.

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), 183, 431-448. doi: 10.1111/rssa.12493

## Examples

 ```1 2 3 4 5``` ```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 July 16, 2021, 9:08 a.m.