zt: Z-score

View source: R/misc_functions.R

ztR Documentation

Z-score

Description

zt returns the z-score (number of standard deviations from the mean) of the input given a mean and variance

Usage

zt(obs, mean, sd, absval = T)

Arguments

obs

(numeric) value or vector of values

mean

(numeric) the mean that should be used for calculation of z

sd

(numeric) standard deviation for calculation of z

absval

(boolean) should the absolute value of the z-score be returned?

Value

(numeric) a vector of equal length to the input

Examples

zt(1, 1, 1)
zt(0, 1, 1)
zt(10, 1, 1)
zt(1:5, 1, 0.3)

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