Skip to contents

Converts z-scores to two-tailed p-values under the normal distribution.

Usage

funnel_pvalue(z)

Arguments

z

Numeric vector of z-scores

Value

Numeric vector of p-values

Examples

z <- c(-2, -1, 0, 1, 2)
funnel_pvalue(z)
#> [1] 0.04550026 0.31731051 1.00000000 0.31731051 0.04550026