panic_copula | R Documentation |
This function generates a large dimensional panic copula that can be further used for stress-testing and panic-aware portfolio optimization.
panic_copula( x, n = 10000, panic_cor = 0.99, panic_prob = 0.02, dist = c("normal", "t") )
x |
A rectangular (non-tidy) data structure. |
n |
An |
panic_cor |
A numeric value for the correlation in panic markets. |
panic_prob |
A numeric value with the probability in which panic markets can be triggered. |
dist |
A |
An object of the panic
class.
x <- diff(log(EuStockMarkets)) panic_copula(x = x, n = 20, panic_cor = 0.99, panic_prob = 0.02)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.