zt_p: Standardized normal p-value

View source: R/misc_functions.R

zt_pR Documentation

Standardized normal p-value

Description

zt_p returns p(x) by mapping x to a normal distribution with mean equal to zero and standard deviation equal to one using its z-score

Usage

zt_p(obs, mean, sd)

Arguments

obs

(numeric) value or vector of values

mean

(numeric) the mean of the gaussian being compared against

sd

(numeric) standard deviation of the gaussian being compared against

Value

(numeric) a p-value between zero and ~0.399

Examples

zt_p(1, 1, 1)
zt_p(0, 1, 1)
zt_p(1:5, 1, 1)

lculibrk/Ploidetect documentation built on May 18, 2023, 5:53 p.m.