f_VaR {atRisk}R Documentation

Value-at-Risk

Description

The function allows to calculate Value-at-Risk for a given distribution. It takes as parameters alpha (risk level), a distribution and the parameters associated with this distribution. For example, for a normal distribution, the user must enter the mean and the standard deviation. Currently, the function can calculate the Value-at-Risk for the normal distribution and for the skew-t distribution (Azzalini and Capitianio, 2003)

Usage

f_VaR(alpha, type_function, params)

Arguments

alpha

Numeric argument for Expected-Shortfall, between 0 and 1

type_function

String argument : "gaussian" for normal distribution or "skew-t" for t-student distribution

params

Numeric vector containing parameters of the distribution

Value

Numeric value for the Value-at-Risk given the distribution and the alpha risk

References

Azzalini, Adelchi, and Antonella Capitanio. "Distributions generated by perturbation of symmetry with emphasis on a multivariate skew t‐distribution." Journal of the Royal Statistical Society: Series B (Statistical Methodology) 65.2 (2003): 367-389.

Azzalini, Adelchi, and Maintainer Adelchi Azzalini. "Package ‘sn’." The skew-normal and skew-t distributions (2015): 1-3.

Examples

f_VaR(0.95, "gaussian", params=c(0,1))


[Package atRisk version 0.1.0 Index]