# NOT RUN {
set.seed(0)
x <- as.data.frame(cbind(
"normal" = rnorm(1000),
"gamma" = rgamma(1000, shape = 2)))
res <- stress(type = "VaR", x = x,
alpha = 0.9, q_ratio = 1.05)
summary(res)
# }
Run the code above in your browser using DataLab