Nothing
#' Compute Joe Copula Parameter from Kendall's Tau
#'
#' Computes the Joe copula dependence parameter based on Kendall's tau.
#'
#' @param tau Numeric, Kendall's tau correlation coefficient.
#' @return Numeric, estimated Joe copula parameter.
#' @importFrom copula joeCopula tau
#' @export
joe.theta <- function(tau){
theta.grid <- seq(1, 10, by = 0.001)
theta.grid <- theta.grid[!theta.grid == 1]
theta.joe <- rep(NA, length(theta.grid))
for (i in 1:length(theta.joe)){
theta.joe[i] <- copula::tau(copula::joeCopula(theta.grid[i])) - tau
}
theta_joe <- theta.grid[which.min(abs(theta.joe))]
return(theta_joe)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.