Learn R Programming

NNS (version 11.3)

NNS.gravity: NNS gravity

Description

Alternative central tendency measure more robust to outliers.

Usage

NNS.gravity(x, discrete = FALSE)

Value

Returns a numeric value representing the central tendency of the distribution.

Arguments

x

vector of data.

discrete

logical; FALSE (default) for discrete distributions.

Author

Fred Viole, OVVO Financial Systems

Examples

Run this code
if (FALSE) {
set.seed(123)
x <- rnorm(100)
NNS.gravity(x)
}

Run the code above in your browser using DataLab