m_score: Calculate the m-score for each element in a numeric vector

Description Usage Arguments Examples

View source: R/m_score.R

Description

The m-score is calculated by the following formula: For each element i in vector x calculate (i - median(x))/mad(x). This function returns a vector of m-scores corresponding to the input vector.

Usage

1

Arguments

x

A numeric vector.

Examples

1
2
3
4
5
6
7
## Not run: 

m_score(1:10)
m_score(rnorm(100))


## End(Not run)

seankross/halcyon documentation built on May 29, 2019, 4:55 p.m.