Learn R Programming

Qindex (version 0.1.6)

std_: Alternative Standardization Methods

Description

Alternative standardize using median, IQR and mad.

Usage

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

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

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.

Arguments

x

numeric vector

na.rm

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

...

additional parameters of quantile and/or mad

Examples

Run this code
std_IQR(rnorm(20))
std_mad(rnorm(20))

Run the code above in your browser using DataLab