LPM.VaR: LPM VaR

View source: R/LPM_UPM_VaR.R

LPM.VaRR Documentation

LPM VaR

Description

Generates a value at risk (VaR) quantile based on the Lower Partial Moment ratio.

Usage

LPM.VaR(percentile, degree, x)

Arguments

percentile

numeric [0, 1]; The percentile for left-tail VaR (vectorized).

degree

integer; (degree = 0) for discrete distributions, (degree = 1) for continuous distributions.

x

a numeric vector.

Value

Returns a numeric value representing the point at which "percentile" of the area of x is below.

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

## Not run: 
set.seed(123)
x <- rnorm(100)

## For 5th percentile, left-tail
LPM.VaR(0.05, 0, x)

## End(Not run)

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