LPM: Lower Partial Moment

View source: R/RcppExports.R

LPMR Documentation

Lower Partial Moment

Description

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

Usage

LPM(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. data.frame or list type objects are not permissible.

Value

LPM of variable

Author(s)

Fred Viole, OVVO Financial Systems

References

Viole, F. and Nawrocki, D. (2013) "Nonlinear Nonparametric Statistics: Using Partial Moments" https://www.amazon.com/dp/1490523995/ref=cm_sw_su_dp

Examples

set.seed(123)
x <- rnorm(100)
LPM(0, mean(x), x)

NNS documentation built on Nov. 28, 2023, 1:10 a.m.