#' Tail Value-at-Risk d'une loi Beta
#' @param a alpha
#' @param b beta
#' @param k kappa doit être entre 0 et 1
#' @export
TVaR_beta <- function(k, a, b)
{
fbeta <- a / (a+b)
ftvar <- 1 / (1-k)
fbeta * ftvar * (1 - pbeta(qbeta(k, a, b), a+1, b))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.