z_score: Z-score

Description Usage Arguments Examples

View source: R/z_score.R

Description

Calculate z-score

Usage

1
z_score(x, x_mean, x_sd)

Arguments

x

Numeric vector

x_mean

Mean of numeric vector (or mean of original data)

x_sd

Standard deviation of numeric vector (or sd of original data)

Examples

1
2
z_score(1:10, mean(1:10), sd(1:10))
z_score(1:10, 20, 5)

fishsciences/DSM2Analysis documentation built on May 14, 2021, 7:58 p.m.