Learn R Programming

thisutils (version 0.3.1)

wilkinsonp: Wilkinson's P-value

Description

Wilkinson's P-value

Usage

wilkinsonp(p, r = 1, alpha = 0.05, log.p = FALSE)

Arguments

p

A vector of P-values.

r

The number of studies to include in the P-value calculation.

alpha

The significance level.

log.p

Whether to return the log of the P-value.

Examples

Run this code
p <- c(0.01, 0.02, 0.03, 0.04, 0.05)
wilkinsonp(p)
wilkinsonp(p, r = 2)
wilkinsonp(p, alpha = 0.01)
wilkinsonp(p, log.p = TRUE)

Run the code above in your browser using DataLab