Learn R Programming

ReplicationSuccess (version 1.3.3)

pEdgington: Computes Edgington's p-value

Description

The combined p-value with Edgington's method is computed based on the one-sided p-values (or the corresponding the z-values) of the original and replication study, and the ratio of the weight of the replication study over the weight of the original study

Usage

pEdgington(zo = NULL, zr = NULL, po = NULL, pr = NULL, r = 1)

Value

Edgington's p-value

Arguments

zo

A vector of z-values from original studies.

zr

A vector of z-values from replication studies.

po

A vector of one-sided original p-values.

pr

A vector of one-sided replication p-values.

r

Numeric vector of ratios of replication to original weight

Author

Charlotte Micheloud, Leonhard Held, Samuel Pawel

Details

Either zo and zr, or po and pr, must be specified.

References

Held, L., Pawel, S., Micheloud, C. (2024). The assessment of replicability using the sum of p-values. Royal Society Open Science. 11(8):11240149. tools:::Rd_expr_doi("10.1098/rsos.240149")

Examples

Run this code
## examples from paper
pEdgington(po = 0.026, pr = 0.001)
pEdgington(po = 0.024, pr = 0.024)

## using z-values
pEdgington(zo = 1.91, zr = 1.95)
## using combination of z-value and p-value
pEdgington(zo = 1.91, pr = 0.024)

Run the code above in your browser using DataLab