LPM.ratio: Lower Partial Moment RATIO

Description Usage Arguments Value Author(s) References Examples

View source: R/Partial_Moments.R

Description

This function generates a standardized univariate lower partial moment for any degree or target.

Usage

1
LPM.ratio(degree, target, variable)

Arguments

degree

integer; (degree = 0) is frequency, (degree = 1) is area.

target

numeric; Typically set to mean, but does not have to be. (Vectorized)

variable

a numeric vector.

Value

Standardized LPM of variable

Author(s)

Fred Viole, OVVO Financial Systems

References

Viole, F. and Nawrocki, D. (2013) "Nonlinear Nonparametric Statistics: Using Partial Moments" http://amzn.com/1490523995

Examples

1
2
3
4
5
6
set.seed(123)
x<-rnorm(100)
LPM.ratio(0,mean(x),x)

## Continuous CDF
LPM.ratio(1,sort(x),x)

NNS documentation built on Oct. 1, 2017, 1:02 a.m.