View source: R/quantile_risk.R
| quantile_risk | R Documentation |
fars_density ObjectComputes the conditional quantile (e.g., 5th percentile) from a simulated skew-t distribution, The result corresponds to the risk measure (e.g., Growth-at-Risk, Growth-in-Stress etc.).
quantile_risk(density, qtau = 0.05)
density |
An object of class |
qtau |
A numeric value between 0 and 1 indicating the quantile to extract (e.g., 0.05 for the 5th percentile). Default is 0.05. |
A numeric vector of conditional quantiles (one observation for each time period).
quantiles <- matrix(rnorm(500), ncol = 5)
fars_density <- compute_density(quantiles, seed = 42)
GaR <- quantile_risk(fars_density, qtau = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.