Learn R Programming

NNS (version 0.5.6)

UPM.VaR: UPM VaR

Description

Generates an upside value at risk (VaR) quantile based on the Upper Partial Moment ratio

Usage

UPM.VaR(percentile, degree, x)

Arguments

percentile

numeric [0, 1]; The percentile for right-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 above.

Examples

Run this code
# NOT RUN {
set.seed(123)
x <- rnorm(100)

## For 5% quantile, right-tail
UPM.VaR(0.05, 0, x)
# }

Run the code above in your browser using DataLab