# NOT RUN {
# }
# NOT RUN {
## example with a stress with \code{credit_data} data set:
data("credit_data")
## two stresses in VaR
model_stress <- stress_VaR(credit_data, alpha = c(0.9, 0.95), q_ratio = 1.1, k =1)
plot_weights(model_stress, xCol = "L", wCol = 1:2)
## additional stress on VaR and ES
model_stress <- stress_VaR_ES(model_stress, alpha = 0.9, q_ratio = 1.1, s_ratio = 1.2, k =1)
plot_weights(model_stress, xCol = "L", wCol = "all", n = 1000, x_limits = c(0, 3500),
y_limits = c(0, 10))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab