std_: Alternative Standardization Methods

std_R Documentation

Alternative Standardization Methods

Description

Alternative standardization using median, IQR and mad.

Usage

std_IQR(x, na.rm = TRUE, ...)

std_mad(x, na.rm = TRUE, ...)

Arguments

x

numeric vector

na.rm

logical scalar, see functions quantile, median and mad. Default TRUE

...

additional parameters of functions quantile and/or mad

Value

Standardize using median and IQR

Function std_IQR returns a numeric vector of the same length as x.

Standardize using median and mad

Function std_mad returns a numeric vector of the same length as x.

Examples

std_IQR(rnorm(20))
std_mad(rnorm(20))


Qindex documentation built on April 4, 2025, 2:14 a.m.