Description Usage Arguments Value
Estimate the VaR of a portfolio using the historical simulation approach for specified confidence levels. The holding period is implied by the P/L data passed to the function. This function uses the quantile, rather than the method used in Measuring Market Risk - that is approximating the pdf by drawing lines through the midpoints of a histogram.
1 | var_historical(x, conf = 0.95)
|
x |
a vector of P/L data |
conf |
the confidence level |
VaR measure (numeric)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.