powered by
Generates a value at risk (VaR) quantile based on the Lower Partial Moment ratio.
LPM.VaR(percentile, degree, x)
Returns a numeric value representing the point at which "percentile" of the area of x is below.
"percentile"
x
numeric [0, 1]; The percentile for left-tail VaR (vectorized).
integer; (degree = 0) for discrete distributions, (degree = 1) for continuous distributions.
(degree = 0)
(degree = 1)
a numeric vector.
Fred Viole, OVVO Financial Systems
Viole, F. and Nawrocki, D. (2013) "Nonlinear Nonparametric Statistics: Using Partial Moments" (ISBN: 1490523995)
if (FALSE) { set.seed(123) x <- rnorm(100) ## For 5th percentile, left-tail LPM.VaR(0.05, 0, x) }
Run the code above in your browser using DataLab