Description Usage Arguments Details
View source: R/QuantAnalysis.R
Value at Risk
1 2 3 4 5 | val_at_risk(
ret,
p = 0.05,
type = c("historical", "modified", "normal", "stable")
)
|
ret |
data.frame containing return time-series |
p |
numeric percentile for VaR tail |
type |
string to specify calculation type: |
type historical
calculates an emperical VaR from the time-series
observations. The other methods are parametrical. modified
uses a
Cornish-Fisher expansion to consider skew and kurtosis. normal
approximates
using a Guassian distribution. stable
approximates using a stable
distribution. See fBasics::stableFit
for more info.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.