| LPM.VaR | R Documentation |
Generates a value at risk (VaR) quantile based on the Lower Partial Moment ratio.
LPM.VaR(percentile, degree, x)
percentile |
numeric [0, 1]; The percentile for left-tail VaR. |
degree |
integer; |
x |
a numeric vector. |
Returns the type-7 empirical quantile (degree = 0), whose strict or inclusive sample tail fraction may differ from percentile because of interpolation or ties, or the threshold with percentile of the directional deviation area below it (degree > 0).
Fred Viole, OVVO Financial Systems
Viole, F. and Nawrocki, D. (2013) "Nonlinear Nonparametric Statistics: Using Partial Moments" (ISBN: 1490523995, 2nd edition: https://ovvo-financial.github.io/NNS/book/)
## Not run:
set.seed(123)
x <- rnorm(100)
## For 5th percentile, left-tail
LPM.VaR(0.05, 0, x)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.